Pritunl cannot be installed on Ubuntu 22.04 (Jammy)

Here’s how i’m trying to install pritunl:

gpg --options /dirmngr.conf --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
gpg --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A > /usr/share/keyrings/pritunl.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/pritunl.gpg] <redacted>stable/apt jammy main' > /etc/apt/sources.list.d/pritunl.list
apt-get update -q
apt-get install -y pritunl
#8 47.28 + gpg --options /dirmngr.conf --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
#8 47.28 gpg: directory '/root/.gnupg' created
#8 47.28 gpg: keybox '/root/.gnupg/pubring.kbx' created
#8 48.75 gpg: key 8E6DA8B4E158C569: 3 duplicate signatures removed
#8 48.75 gpg: /root/.gnupg/trustdb.gpg: trustdb created
#8 48.76 gpg: key 7AE645C0CF8E292A: public key "Pritunl <contact@pritunl.com>" imported
#8 48.76 gpg: Total number processed: 1
#8 48.76 gpg:               imported: 1
#8 48.77 + gpg --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A
#8 48.77 + echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/pritunl.gpg] <redacted>stable/apt jammy main'
#8 48.77 + apt-get update -q
#8 49.17 Get:1 <redacted>/stable/apt jammy InRelease [2419 B]
#8 49.29 Hit:2 <redacted>ubuntu jammy InRelease
#8 49.32 Get:3 <redacted>/stable/apt jammy/main amd64 Packages [1205 B]
#8 49.52 Hit:4 <redacted>ubuntu jammy-updates InRelease
#8 49.67 Hit:5 <redacted>ubuntu jammy-backports InRelease
#8 50.18 Hit:6 <redacted>ubuntu jammy-security InRelease
#8 50.29 Fetched 3624 B in 1s (2457 B/s)
#8 50.29 Reading package lists...
#8 50.85 + apt-get install -y pritunl
#8 50.89 Reading package lists...
#8 51.43 Building dependency tree...
#8 51.55 Reading state information...
#8 51.60 Some packages could not be installed. This may mean that you have
#8 51.60 requested an impossible situation or if you are using the unstable
#8 51.60 distribution that some required packages have not yet been created
#8 51.60 or been moved out of Incoming.
#8 51.60 The following information may help to resolve the situation:
#8 51.60
#8 51.60 The following packages have unmet dependencies:
#8 51.69  pritunl : Depends: pritunl-ndppd but it is not installable
#8 51.69 E: Unable to correct problems, you have held broken packages.

This is due to the pritunl-ndppd package not being available in Jammy. You can see that its missing in this file, yet is a “required” dependency.

  • stable/apt/dists/jammy/main/binary-amd64/Packages

On this page Repositories it says that Jammy is supported under the “stable” banner. Unfortunately, it seems impossible to install pritunl on Ubuntu 22.04.

Also, in the unstable repository, the pritunl-ndppd is available but pritunl is removed. The install does not finish successfully.

#8 62.55 E: Unable to locate package pritunl

You can see that this package is available on focal (ubuntu 20.04), however:

  • stable/apt/dists/focal/main/binary-amd64/Packages

I was able to get it installed by including both the stable and unstable repos, but that doesn’t seem ideal. Here’s what I added to /etc/apt/sources.list.d/

echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/pritunl.gpg] <redacted>unstable/apt jammy main' > /etc/apt/sources.list.d/pritunl-unstable.list
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/pritunl.gpg] <redacted>stable/apt jammy main' > /etc/apt/sources.list.d/pritunl-stable.list

I had to include <redacted> in my “links” because the forum only allows 2 links per post for new users. Let me know if you need any clarification.

The full Ubuntu 22.04 build is currently only available in the unstable repository. MongoDB is not available on Ubuntu 22.04, it currently isn’t possible to run Pritunl on 22.04 unless the MongoDB server is hosted on another server.

Hi, Has there been an update on this because 20.04 is coming to End of Life at the end of 2024?

There shouldn’t be any issues with 22.04, verify the correct repository is used. Below is the installation for 22.04.

sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list << EOF
deb https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse
EOF

sudo tee /etc/apt/sources.list.d/pritunl.list << EOF
deb https://repo.pritunl.com/stable/apt jammy main
EOF

sudo apt --assume-yes install gnupg
wget -qO- https://www.mongodb.org/static/pgp/server-6.0.asc | sudo tee /etc/apt/trusted.gpg.d/mongodb-org-6.0.asc
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys 7568D9BB55FF9E5287D586017AE645C0CF8E292A
gpg --armor --export 7568D9BB55FF9E5287D586017AE645C0CF8E292A | sudo tee /etc/apt/trusted.gpg.d/pritunl.asc
sudo apt update
sudo apt --assume-yes install pritunl mongodb-org
sudo systemctl start pritunl mongod
sudo systemctl enable pritunl mongod

“Unable to locate package pritunl”
ubuntu 24.04
stable repository

Nicolas, just use the unstable repository :slight_smile:

Pritunl for 24.04 is still in the unstable repository. The release can’t be moved to the stable repository because it has an issue with the DNS search domain configuration. The current codebase isn’t ready for a new release until all the refactor PyMongo v4 code has been tested.

Unless the MongoDB database is running on a different server Ubuntu 24.04 should not be used. There are no MongoDB builds for 24.04 until the upcoming MongoDB v8 release. Pritunl for 24.04 should be ready by then.