Install Pritunl on a VPS with ubuntu 24.04

Hi all!

I have used Pritunl since 2020 on a ubuntu 20.04, however, when I try to install on a ubuntu 24.04 I get stuck with errors from mongodb_uri etc…

Can anyone point me a tutorial to install on a ubuntu 24.04 without this errors?

It’s for a private use for my family menbers…

Many thanks in advance!

pleeeeeeeaaaaase anyone?!?!?!?

:smirk: :melting_face: :melting_face:

please, anyone? on ubuntu 20.04 it’s strait forward… but on ubuntu 22.04 or 24.04 there is several errors regarding mongodb database… I just installed from sracth…

The installation for 24.04 is in the installation documentation. If there is an error setting the MongoDB URI the database is likely not running. Run sudo systemctl status mongod to verify it is running.

sudo tee /etc/apt/sources.list.d/mongodb-org.list << EOF
deb [ signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.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/stable/apt noble main
EOF

sudo apt --assume-yes install gnupg

curl -fsSL https://www.mongodb.org/static/pgp/server-8.0.asc | sudo gpg -o /usr/share/keyrings/mongodb-server-8.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
1 Like

Many many thanks!!!

Don’t know what happen, but I followed step-by-step and everything worked!!!

5 stars @zach

But last week I tried every step and had no sucess…

Now, everything is up and running!!!