# Python3-distutils removed in Ubuntu Noble Numbat 24.04

**URL:** <https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989>\
**Category:** Pritunl VPN\
**Created:** [April 15, 2024, 9:32am UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989 "2024-04-15T09:32:34Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dunnymeister](https://forum.pritunl.com/user_avatar/forum.pritunl.com/dunnymeister/32/804_2.png) [@Dunnymeister](https://forum.pritunl.com/u/Dunnymeister)\
**Post date:** [April 15, 2024, 9:32am UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/1 "2024-04-15T09:32:34Z")

</div>

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](https://docs.pritunl.com/docs/installation#other-providers-ubuntu-2204):

```auto
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](https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated).

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

---

<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:** [April 18, 2024, 2:18am UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/2 "2024-04-18T02:18:29Z")

</div>

Once the 24.04 builds are available this will be fixed.

---

<div class="post-metadata">

**Author:** ![flavin](https://forum.pritunl.com/user_avatar/forum.pritunl.com/flavin/32/819_2.png) [@flavin](https://forum.pritunl.com/u/flavin)\
**Post date:** [April 28, 2024, 3:30pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/3 "2024-04-28T15:30:17Z")

</div>

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

---

<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:** [April 30, 2024, 9:23pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/4 "2024-04-30T21:23:12Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![qeepcologne](https://forum.pritunl.com/user_avatar/forum.pritunl.com/qeepcologne/32/823_2.png) [@qeepcologne](https://forum.pritunl.com/u/qeepcologne)\
**Post date:** [May 6, 2024, 12:37pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/5 "2024-05-06T12:37:16Z")

</div>

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

> <https://serverfault.com/questions/250224/how-do-i-get-apt-get-to-ignore-some-dependencies>

via remove  
DEBIAN/control Depends: python3-distutils

---

<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:** [May 8, 2024, 10:26pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/6 "2024-05-08T22:26:52Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![luizm](https://forum.pritunl.com/user_avatar/forum.pritunl.com/luizm/32/880_2.png) [@luizm](https://forum.pritunl.com/u/luizm)\
**Post date:** [July 8, 2024, 2:03pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/7 "2024-07-08T14:03:48Z")

</div>

Hello

Any news about this update?

---

<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 11, 2024, 10:34pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/8 "2024-07-11T22:34:57Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![qeepcologne](https://forum.pritunl.com/user_avatar/forum.pritunl.com/qeepcologne/32/823_2.png) [@qeepcologne](https://forum.pritunl.com/u/qeepcologne)\
**Post date:** [August 2, 2024, 2:09pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/9 "2024-08-02T14:09:58Z")

</div>

still not working or updated (pritunl\_1.32.3897.75-0ubuntu1~noble\_amd64.deb) in unstable

---

<div class="post-metadata">

**Author:** ![julienvienne](https://forum.pritunl.com/user_avatar/forum.pritunl.com/julienvienne/32/935_2.png) [@julienvienne](https://forum.pritunl.com/u/julienvienne)\
**Post date:** [August 28, 2024, 2:31pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/10 "2024-08-28T14:31:34Z")

</div>

According to the compatibility matrix [here](https://www.mongodb.com/docs/manual/administration/production-notes/#std-label-prod-notes-supported-platforms), 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 ?

---

<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 29, 2024, 4:44am UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/11 "2024-08-29T04:44:21Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![jpasher-work](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/j/a698b9/32.png) [@jpasher-work](https://forum.pritunl.com/u/jpasher-work)\
**Post date:** [September 10, 2024, 11:16pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/12 "2024-09-10T23:16:28Z")

</div>

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.

> **[Percona Server for MongoDB](https://www.percona.com/mongodb/software/percona-server-for-mongodb)**
>
> Percona Server for MongoDB is a free, enhanced, fully compatible MongoDB software alternative for MongoDB Community Server with enterprise-grade features.

---

<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:** [September 12, 2024, 12:22pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/13 "2024-09-12T12:22:36Z")

</div>

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.

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

```

---

<div class="post-metadata">

**Author:** ![jpasher-work](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/j/a698b9/32.png) [@jpasher-work](https://forum.pritunl.com/u/jpasher-work)\
**Post date:** [September 12, 2024, 4:46pm UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/14 "2024-09-12T16:46:42Z")

</div>

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.

---

<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:** [September 14, 2024, 1:19am UTC](https://forum.pritunl.com/t/python3-distutils-removed-in-ubuntu-noble-numbat-24-04/1989/15 "2024-09-14T01:19:35Z")

</div>

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.
