# Pritunl cannot be installed on Ubuntu 22.04 (Jammy)

**URL:** <https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246>\
**Category:** Pritunl VPN\
**Created:** [July 13, 2022, 6:55pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246 "2022-07-13T18:55:49Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![bluemind23spectrum](https://forum.pritunl.com/user_avatar/forum.pritunl.com/bluemind23spectrum/32/102_2.png) [@bluemind23spectrum](https://forum.pritunl.com/u/bluemind23spectrum)\
**Post date:** [July 13, 2022, 6:55pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/1 "2022-07-13T18:55:49Z")

</div>

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

```auto
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

```

```auto
#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](https://docs.pritunl.com/docs/repo) 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.

```auto
#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/`

```auto
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.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [July 13, 2022, 10:59pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/2 "2022-07-13T22:59:31Z")

</div>

The full Ubuntu 22.04 build is currently only available in the [**unstable repository**](https://docs.pritunl.com/docs/repo#unstable-repositories). 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.

---

<div class="post-metadata">

**Author:** ![Max-hm](https://forum.pritunl.com/user_avatar/forum.pritunl.com/max-hm/32/387_2.png) [@Max-hm](https://forum.pritunl.com/u/Max-hm)\
**Post date:** [November 18, 2023, 4:52pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/3 "2023-11-18T16:52:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [November 18, 2023, 10:03pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/4 "2023-11-18T22:03:51Z")

</div>

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

```auto
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

```

---

<div class="post-metadata">

**Author:** ![Nicolas](https://forum.pritunl.com/user_avatar/forum.pritunl.com/nicolas/32/27_2.png) [@Nicolas](https://forum.pritunl.com/u/Nicolas)\
**Post date:** [August 25, 2024, 1:22pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/6 "2024-08-25T13:22:33Z")

</div>

“Unable to locate package pritunl”  
ubuntu 24.04  
stable repository

---

<div class="post-metadata">

**Author:** ![lopatoid](https://forum.pritunl.com/user_avatar/forum.pritunl.com/lopatoid/32/904_2.png) [@lopatoid](https://forum.pritunl.com/u/lopatoid)\
**Post date:** [August 27, 2024, 10:43am UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/7 "2024-08-27T10:43:34Z")

</div>

Nicolas, just use the [unstable repository](https://docs.pritunl.com/docs/repo#unstable-repositories) 🙂

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [August 27, 2024, 11:32pm UTC](https://forum.pritunl.com/t/pritunl-cannot-be-installed-on-ubuntu-22-04-jammy/246/8 "2024-08-27T23:32:56Z")

</div>

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.
