Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: [Solved] Can't install Protonvpn  (Read 228 times)

Offline lonegunmen

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
[Solved] Can't install Protonvpn
« on: May 07, 2021, 01:03:27 am »
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
Code: [Select]
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
Code: [Select]
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:

Code: [Select]
$ 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?
« Last Edit: May 10, 2021, 10:18:47 pm by lonegunmen »

Offline xingjiapeng

  • Newbie
  • *
  • Posts: 35
  • Karma: 0
  • I can't find any Chinese Sparkers
Re: Can't install Protonvpn
« Reply #1 on: May 07, 2021, 03:19:44 pm »
probably you can try to add
Code: [Select]
deb https://repo.protonvpn.com/debian unstable maininto /etc/apt/sources.list or a list file in /etc/apt/sources.list.d/

Offline lonegunmen

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Can't install Protonvpn
« Reply #2 on: May 10, 2021, 01:08:40 am »
probably you can try to add
Code: [Select]
deb https://repo.protonvpn.com/debian unstable maininto /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:

Code: [Select]
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.