Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum https://forum.linuxiarze.pl

[Solved] Can't install Protonvpn

Started by lonegunmen, May 07, 2021, 01:03:27 AM

Previous topic - Next topic

lonegunmen

I'm using SparkyLinux 5.15 LXQt 64bit version. I went to the Protonvpn website and was using the installation directions here: https://protonvpn.com/support/official-linux-client/

When I went to do step #1 wget -q -O - https://repo.protonvpn.com/debian/public_key.asc | sudo apt-key add -
it completed correctly.

Then I tried to do step #2 sudo add-apt-repository 'deb https://repo.protonvpn.com/debian unstable main'
and it gave an error "sudo: add-apt-repository: command not found".

So I installed the package "software-properties-common" via Synaptic and ran the step #2 command again except it ended with this error message:

$ sudo add-apt-repository 'deb https://repo.protonvpn.com/debian unstable main'
Traceback (most recent call last):
  File "/usr/bin/add-apt-repository", line 95, in <module>
    sp = SoftwareProperties(options=options)
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
    self.reload_sourceslist()
  File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
    self.distro.get_sources(self.sourceslist)   
  File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 93, in get_sources
    (self.id, self.codename))
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Sparky/sid


This is where I'm stuck. It won't add the new repository so I can install protonvpn. I could have sworn I saw the protonvpn-cli app in the APTus program, but I guess I was mistaken because it's not there. Is there anyway to fix this issue, so I can install protonvpn?

xingjiapeng

probably you can try to add
deb https://repo.protonvpn.com/debian unstable main
into /etc/apt/sources.list or a list file in /etc/apt/sources.list.d/

lonegunmen

Quote from: xingjiapeng on May 07, 2021, 03:19:44 PM
probably you can try to add
deb https://repo.protonvpn.com/debian unstable main
into /etc/apt/sources.list or a list file in /etc/apt/sources.list.d/

I actually tried this method a short while after making my post above. It will technically work and will allow you to install the protonvpn app, but unfortunately it still didn't work. Everytime I tried to connect with the protonvpn command line app, it would connect and then immediately disconnect. This was on a fresh install, so instead of trying to unscrew this mess, I ended up just reinstalling again and decided to do something better to use protonvpn.

With a new install of SparkyLinux 5.15 64bit LXQt version, I couldn't find any Network Manager GUI interface. Just that useless nm-tray icon near the clock. The "Edit connections" option doesn't even work with that pre-installed network icon, so if you mis-typed your password or need to change it, you're out of luck.  Why was this set-up this way? Anyway, I decided to do a little homework and install an actual functioning Network Manager GUI interface that also replaces that useless pre-installed nm-tray icon with networkmanager-applet icon. This way you could change wifi passwords, or even use protonvpn ovpn configuration file or some other vpn ovpn configuration file easily. So here is a quick rundown of what I did.

Open terminal and install these packages one at a time:

sudo apt-get install network-manager-gnome
sudo apt-get install network-manager-openvpn
sudo apt-get install network-manager-openvpn-gnome


After installing these packages, I logged out and then logged back in, and that should make the new networkmanager-applet icon appear on the panel bar near the clock. It will appear as if you have two network connection icons. Now we need to turn off the old nm-tray icon, since we don't need it anymore.

Go to Menu-->Preferences-->LXQt Settings-->Sessions Setting-->Autostart
uncheck nm-tray and close out, and then logged out and logged back in and now only the new networkmanager-applet icon should be the only network connection icon showing.

You will now have Advanced Network Configuration option in the menu now too.
Go to Menu-->Preferences-->Advanced Network Configuration

This is where you can make wifi password changes, import your vpn ovpn (such as protonvpn) configuration file, etc. Be sure to use your Openvpn username and password when you are filling in the username and password settings after importing your vpn ovpn file. Also, it may ask you to type a password in order to protect the keyring for the vpn, I just used my Openvpn password since it was easy to remember. Basically, you just import the ovpn file, type in your Openvpn username & password, a window opens asking for a keyring password (just use your openvpn password) and that should be it, I think. Save and close out of Advanced Network Configuration window. Now click on that new network connection icon near the clock, lower right hand side and a little menu should pop up, choose "VPN Connections" and your newly created vpn entry should be there. Just click the square box next to it, and it should connect to your vpn and show a little lock added to the connection icon in the tray. I tested for DNS leaks and didn't find any, so it worked great. To disconnect from vpn, just uncheck that same box next to your vpn entry and it should disconnect.

Hopefully this will help someone out there, I tried to remember each step.

budking

#3
Thank you very much for this work.

I have installed the (gnome)-Networ-manager packages that allow ProtonVPN to connect to OpenVPN. (It dosen't works by default...)

If you want to add the repo of ProtonVPN, you can simply install the package manually from the ProtonVPN Download Page.
[Download the Proton VPN DEB package] https://repo.protonvpn.com/debian/dists/stable/main/binary-all/protonvpn-stable-release_1.0.3-2_all.deb]
-> Package Installer (repo inserted by installing this package manuell)
Then: sudo apt update -> sudo apt install protonvpn
After that: Follow the introduction from lonegunmen

@lonegunmen
I'am happy to get this solution from you. I never had to do this by myself, but with yours way it was easy to run ProtonVPN correctly. :-)

ProtonVPN with SparkyLinux: done!

Example:
If you want to install something manuell you have to download *.deb package. For Example: freetube io. There you can to download freetube.deb and can to do install manuell with Package Installer. If you want to update this, download the latest version (you get a info in freetube) and easy install the new version to update.
Example End.

View the most recent posts on the forum