Installing Pritunl VPN Client on Rocky Linux 9

Hello Community.

Am on a fresh Rocky Linux 9 installation. I use Pritunl VPN Client to help me SSH into my servers via Proxmox Virtual Environment.

I have tried to install Pritunl Client by following their guide on official documentation . I am unable to import the key.tmp with this error

error: key.tmp: key 1 import failed.

The mongodb, Pritunl, CRB and epel repos are enabled correctly under dnf repolist.

Under Rocky Linux 8.6 , i have not problem with key import. Could it a Rocky Linux 9 issue ?

Kindly advice.

Could be similar to this like with zoom: Cannot import Zoom's gpg key

1 Like

This works . Am so grateful sir.

1 Like

This is how i did it.

  1. sudo dnf update.
  2. sudo tee /etc/yum.repos.d/pritunl.repo << EOF
    [pritunl]
    name=Pritunl Stable Repository
    baseurl=Index of /stable/yum/fedora/36/
    gpgcheck=1
    enabled=1
    EOF
  3. gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
  4. sudo update-crypto-policies --set LEGACY
  5. sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
  6. sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
  7. gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > key.tmp; sudo rpm --import key.tmp; rm -f key.tmp
  8. sudo dnf install pritunl-client-electron

Thank you sir for shedding some light. Am now all systems go.

2 Likes

If you encounter the error below after step number 5,

Pritunl Stable Repository                       0.0  B/s |   0  B     00:00    
Error: Failed to download metadata for repo 'pritunl': Cannot download repomd.xml: Empty mirrorlist and no basepath specified!

Please run the following command:

sudo rm -r /var/cache/dnf 

Then re-issue the command

sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm

An update :

sudo dnf update
sudo tee /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]
name=Pritunl Stable Repository
baseurl=Index of /stable/yum/fedora/37/
gpgcheck=1
enabled=1
EOF

The repo for Oracle Linux also worked.

sudo tee /etc/yum.repos.d/pritunl.repo << EOF
[pritunl]
name=Pritunl Repository
baseurl=https://repo.pritunl.com/stable/yum/oraclelinux/8/
gpgcheck=1
enabled=1
EOF
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
sudo update-crypto-policies --set LEGACY
sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
sudo dnf -y install https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm
gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > key.tmp; sudo rpm --import key.tmp; rm -f key.tmp
sudo dnf install pritunl-client-electron