Ways to Install or Uninstall n2n Ubuntu 22.04

Updated: September 20, 2022

n2n is an open source VPN application which utilizes a Peer-to-peer architecture for network membership and routing. In this tutorial, I will show you how to install n2n on Ubuntu 22.04.


  • OS: n2n needs Ubuntu 22.04 to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install n2n on Ubuntu 22.04

Install n2n Ubuntu 22.04

n2n is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one you believe is simple and easy to follow.

Install n2n using APT

This is a popular method for installing any Ubuntu packages because it is simple to understand, even if you are a Linux beginner. Following these instructions to install n2n on your Ubuntu 22.04.

Step 1: Obtain new packages from Ubuntu by updating the APT database. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. You can now install n2n Ubuntu by executing this command in the terminal.

sudo apt -y install n2n

Install n2n using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

Then, you can now install n2n, just following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt-get update

Step 2: Start installing the packages on Ubuntu 22.04. After updating the system, you can install n2n Ubuntu by executing this command in the terminal.

sudo aptitude install n2n

Uninstall n2n on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a n2n.

If you installed n2n using APT or Aptitude, you could uninstall n2n on Ubuntu by following this step:

sudo apt remove --auto-remove n2n

You can also execute this command if you want to uninstall n2n and remove its data and dependencies:

sudo apt autoremove --purge n2n


In this tutorial, I showed you ways to install n2n on Ubuntu 22.04 and some ways to uninstall n2n too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.