Python3-distutils removed in Ubuntu Noble Numbat 24.04

I updated our Ubuntu VM running pritunl server to Ubuntu Noble Numbat 24.04. Pritunl was not starting and I could not locate the service, and so I attempted to reinstall it.

I receive the following error when following the guide for installing pritunl:

The following packages have unmet dependencies:
 pritunl : Depends: python3-distutils but it is not installable

Noble Numbat comes with python 3.12 and distutils is removed in this version.

What options do I have for getting back to a working setup?

Once the 24.04 builds are available this will be fixed.

is there an estimation when will be available the build for 24.04?

Over the next few days the software will be updated for Ubuntu 24.04. Currently only the client is available for 24.04 in the stable repository.

1 Like

if you need a workaround, just download and repack the package like described here:

via remove
DEBIAN/control Depends: python3-distutils

There are no MongoDB builds available for 24.04, servers should not be upgraded until both Pritunl and MongoDB 24.04 support is available.

Hello

Any news about this update?

I have updated the package spec, this will be included in the next build.

still not working or updated (pritunl_1.32.3897.75-0ubuntu1~noble_amd64.deb) in unstable

According to the compatibility matrix here, it is not sure MongoDB 7.0 will be ported on ubuntu 24.04.
Any chance to migrate pritunl server on MongoDB 8.0 which is already supported ?

Pritunl will already support MongoDB 8, the PyMongo library has also been refactored to the latest v4 release. This will further improve compatibility with future MongoDB releases. Currently there are no MongoDB releases for 24.04.

Is the Pritunl package in the unstable repo only there because of the MongoDB issue, or does it have other stability issues? Keeping it out because of that also kind of hinders a setup that runs Pritunl on 24.04 but a separate database server on 22.04 (or any other distro). There’s also the Docker container route.

I personally use the Percona build of MongoDB, as they tend to have much wider support for different Ubuntu releases and MongoDB versions.

It’s in the unstable repository because there is another issue with DNS search domains introduced in that release. If it were moved to stable it would cause problems with all the distributions. A new release can’t be done currently because the pyMongo v4 refactoring hasn’t been fully tested.

I’ve never tested Percona but many of the MongoDB API compabiltle database are missing capped collections and tailable cursors. This is used for the inter-host messaging and events in Pritunl.

I did test the Pritunl 24.04 build and MongoDB 22.04 build on Ubuntu 24.04 and there were no issues. Below is the commands to install Pritunl on Ubuntu 24.04.

sudo tee /etc/apt/sources.list.d/mongodb-org.list << EOF
deb [ signed-by=/usr/share/keyrings/mongodb-server-7.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse
EOF

sudo tee /etc/apt/sources.list.d/openvpn.list << EOF
deb [ signed-by=/usr/share/keyrings/openvpn-repo.gpg ] https://build.openvpn.net/debian/openvpn/stable noble main
EOF

sudo tee /etc/apt/sources.list.d/pritunl.list << EOF
deb [ signed-by=/usr/share/keyrings/pritunl.gpg ] https://repo.pritunl.com/unstable/apt noble main
EOF

sudo apt --assume-yes install gnupg

curl -fsSL https://www.mongodb.org/static/pgp/server-7.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-7.0.gpg --dearmor --yes
curl -fsSL https://swupdate.openvpn.net/repos/repo-public.gpg | sudo gpg -o /usr/share/keyrings/openvpn-repo.gpg --dearmor --yes
curl -fsSL https://raw.githubusercontent.com/pritunl/pgp/master/pritunl_repo_pub.asc | sudo gpg -o /usr/share/keyrings/pritunl.gpg --dearmor --yes
sudo apt update
sudo apt --assume-yes install pritunl openvpn mongodb-org wireguard wireguard-tools

sudo ufw disable

sudo systemctl start pritunl mongod
sudo systemctl enable pritunl mongod

I’m a little confused. You said the build in the unstable repo has an “issue with DNS search domains introduced in that release”, but then you said you did a test with that build on Ubuntu 24.04 and there were no issues. Do you mean there were no issues outside of that DNS search domain issue? I ended up installing Pritunl unstable on Ubuntu 24.04 with Percona MongoDB 5 (we’re upgrading from a older machine, so minimizing the version changes right now), and my initial basic tests seemed fine (web interface worked and I could connect via OpenVPN and properly route traffic). I’m not sure how the DNS search domain issue might affect it.

A quick note on the Percona builds. From my understanding, they are not just “API compatible” builds. They are actually based on the MongoDB source code with some enterprise related enhancements.

Yes there is no issues other than the DNS search domain. This option is labeled DNS Search Domain in the server settings, this option will not work on that release.