LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Arch (https://www.linuxquestions.org/questions/arch-29/)
-   -   Can't install ProtonVPN package from AUR (https://www.linuxquestions.org/questions/arch-29/can%27t-install-protonvpn-package-from-aur-4175712770/)

AKM512 05-29-2022 05:41 PM

Can't install ProtonVPN package from AUR
 
I tried to follow these instructions on the Arch Wiki and install this package from the AUR, but I can't install the official ProtonVPN client:
Code:

[austin@archlinux ~]$ git clone https://aur.archlinux.org/protonvpn.git
Cloning into 'protonvpn'...
remote: Enumerating objects: 8, done.
remote: Counting objects: 100% (8/8), done.
remote: Compressing objects: 100% (8/8), done.
remote: Total 8 (delta 0), reused 8 (delta 0), pack-reused 0
Receiving objects: 100% (8/8), done.
[austin@archlinux ~]$ cd protonvpn/
[austin@archlinux protonvpn]$ makepkg -si
==> Making package: protonvpn 1.0.0-2 (Sun 29 May 2022 03:34:10 PM PDT)
==> Checking runtime dependencies...
==> Installing missing dependencies...
[sudo] password for austin:
error: target not found: protonvpn-cli
error: target not found: protonvpn-gui
==> ERROR: 'pacman' failed to install missing dependencies.
==> Missing dependencies:
  -> protonvpn-cli
  -> protonvpn-gui
==> Checking buildtime dependencies...
==> ERROR: Could not resolve all dependencies.

Has anyone else had a similar problem?

teckk 05-29-2022 08:53 PM

This is the PKGBUILD for that
https://aur.archlinux.org/cgit/aur.g...LD?h=protonvpn
Quote:

Missing dependencies:
-> protonvpn-cli
-> protonvpn-gui
Yup, those aren't in the repo.

You may want to try this one
https://aur.archlinux.org/cgit/aur.g...=protonvpn-gui
https://aur.archlinux.org/packages?K=protontechag&SeB=m

https://github.com/ProtonVPN/linux-app
https://github.com/ProtonVPN/linux-a.../protonvpn_gui

ondoho 05-30-2022 12:23 AM

Quote:

Originally Posted by AKM512 (Post 6357411)
I tried to follow [URL="https://wiki.archlinux.org/title/ProtonVPN#Official_ProtonVPN_Client"]...
Code:

==> Missing dependencies:
  -> protonvpn-cli
  -> protonvpn-gui


The package depends on other packages that re not available in Archlinux' repos, most likely in the AUR. So you have to build/install those first, then try again:
https://aur.archlinux.org/packages?K=protonvpn
Also look at the comments for these packages, if you run into further problems: https://aur.archlinux.org/packages/protonvpn

AKM512 05-30-2022 01:01 AM

Quote:

Originally Posted by ondoho (Post 6357459)
The package depends on other packages that re not available in Archlinux' repos, most likely in the AUR. So you have to build/install those first, then try again:
https://aur.archlinux.org/packages?K=protonvpn
Also look at the comments for these packages, if you run into further problems: https://aur.archlinux.org/packages/protonvpn

Forgive me, I'm relatively new to Arch; where would I find those other packages in the AUR? Are they the same as the two dependencies
Code:

protonvpn-cli
and
Code:

protonvpn-gui
? Thanks.

teckk 05-30-2022 08:01 AM

That's why I posted the PKGBUILD

Code:

pkgdesc="Official ProtonVPN metapackage that installs protonvpn-gui and protonvpn-cli, maintained by the ProtonVPN team."

depends=("protonvpn-cli" "protonvpn-gui")

Looks like you are going to have to build them. And then install them. Or get it and install it.

Here is protonvpn_gui
https://github.com/ProtonVPN/linux-a.../protonvpn_gui
Looks like a bunch of python.
https://aur.archlinux.org/cgit/aur.g...=protonvpn-gui

protonvpn-cli
https://aur.archlinux.org/cgit/aur.g...=protonvpn-cli
https://aur.archlinux.org/packages/protonvpn-cli

You might want to contact the maintainer for more instructions. Also look at the comments.

Quote:

zeroconf commented on 2022-05-26 21:13 (UTC) (edited on 2022-05-26 21:59 (UTC) by zeroconf)
Finally solved!

Firstly, remove all with dependencies:
...

AKM512 05-30-2022 04:01 PM

Quote:

Originally Posted by ondoho (Post 6357459)
The package depends on other packages that re not available in Archlinux' repos, most likely in the AUR. So you have to build/install those first, then try again:
https://aur.archlinux.org/packages?K=protonvpn
Also look at the comments for these packages, if you run into further problems: https://aur.archlinux.org/packages/protonvpn

Does this mean I need to uninstall the failed
Code:

protonvpn
and
Code:

protonvpn-gui
packages first? If I need to uninstall them, can I use
Code:

pacman -R $pkgname
like this thread suggests, or do I need to use something different?

EDIT: Using pacman as described on the ArchWiki here doesn't seem to work.

Code:

[austin@archlinux ~]$ sudo pacman -Rs protonvpn
[sudo] password for austin:
error: target not found: protonvpn
[austin@archlinux ~]$


ondoho 05-30-2022 10:45 PM

Quote:

Originally Posted by AKM512 (Post 6357622)
Does this mean I need to uninstall the failed
Code:

protonvpn
and
Code:

protonvpn-gui
packages first?

Your OP does not state that you already installed protonvpn-gui.
Quote:

If I need to uninstall them, can I use
Code:

pacman -R $pkgname

Yes.

Quote:

Originally Posted by AKM512 (Post 6357411)
I tried to follow these instructions on the Arch Wiki and install this package from the AUR

There are no installation instructions in that chapter - it literally just says "Install the metapackage protonvpn[AUR]".
In cases like this, you need to search the arch wiki on how to install AUR packages, and how dependencies on the AUR work. Tip: there is a page named "AUR" on the arch wiki. It says: " If the package depends on other AUR packages, you will need to manually install them first."
It really is as simple as that.

All in all you need to understand that the AUR is not Archlinux' package management.
It's all explained on Arch wiki.

Timothy Miller 05-30-2022 10:57 PM

Just did the same thing, had no issues whatsoever.
Code:

yay -Rcsn protonvpn
yay -S protonvpn

Worked perfectly fine.

ondoho 05-30-2022 11:15 PM

Quote:

Originally Posted by Timothy Miller (Post 6357672)
Just did the same thing, had no issues whatsoever.
Code:

yay -Rcsn protonvpn
yay -S protonvpn

Worked perfectly fine.

That's because you're using an AUR helper with dependency resolving.
There's nothing wrong with that, but ArchLinux recommends to do it manually with makepkg - at least at first, to understand what the AUR is and how it works, which is what OP is doing.

Again: the AUR is not ArchLinux package management. Neither is yay.
While the AUR is growing, it is imperial to understand how it ties in with pacman.

Timothy Miller 05-31-2022 10:12 AM

Quote:

Originally Posted by ondoho (Post 6357680)
That's because you're using an AUR helper with dependency resolving.
There's nothing wrong with that, but ArchLinux recommends to do it manually with makepkg - at least at first, to understand what the AUR is and how it works, which is what OP is doing.

Again: the AUR is not ArchLinux package management. Neither is yay.
While the AUR is growing, it is imperial to understand how it ties in with pacman.


That's not the point, point is that if it worked, it means there's no issues with any of the packages. OP just needs to uninstall all the old packages that have issues, and install the new packages in the correct order.

AKM512 05-31-2022 10:54 AM

Quote:

Originally Posted by ondoho (Post 6357669)
Your OP does not state that you already installed protonvpn-gui.

Yes.



There are no installation instructions in that chapter - it literally just says "Install the metapackage protonvpn[AUR]".
In cases like this, you need to search the arch wiki on how to install AUR packages, and how dependencies on the AUR work. Tip: there is a page named "AUR" on the arch wiki. It says: " If the package depends on other AUR packages, you will need to manually install them first."
It really is as simple as that.

All in all you need to understand that the AUR is not Archlinux' package management.
It's all explained on Arch wiki.

Okay, I don't think they're installed because:

Code:

[austin@archlinux ~]$ sudo pacman -R protonvpn
[sudo] password for austin:
error: target not found: protonvpn
[austin@archlinux ~]$ sudo pacman -R $protonvpn
error: no targets specified (use -h for help)
[austin@archlinux ~]$ sudo pacman -R protonvpn-gui
error: target not found: protonvpn-gui
[austin@archlinux ~]$

So, I'll try installing them in order, and see if that works.

TheExplorer 03-14-2023 02:01 PM

I don't know if you managed to compile/run ProtonVPN, but I chose an easier way out: downloaded their .ovpn config, installed openvpn and:

Quote:

sudo openvpn config.ovpn
Much easier, less headache. Sorry for bumping an old thread.


All times are GMT -5. The time now is 07:28 AM.