How to Install or Uninstall libpython3-all-dev Ubuntu 22.04

Updated: October 22, 2022

The package currently depends on libpython3.9-dev, in the future, dependencies on jython (Python for a JVM) and ironpython (Python for Mono) may be added. In this tutorial, I will show you how to install libpython3-all-dev on Ubuntu 22.04.

Software Requirement

  • Operating system: Ubuntu 22.04 is needed for libpython3-all-dev to work
  • Privileges: Make sure that you can run the sudo commands line.

Prerequisites to install libpython3-all-dev on Ubuntu 22.04

Install libpython3-all-dev Ubuntu 22.04

libpython3-all-dev is one of the popular ways on Ubuntu now so that this tutorial will show you some ways to install it. Choose the one that you think is easy and you can follow.

Install libpython3-all-dev using APT

This is one of the most popular methods for installing Ubuntu packages since it is simple to understand, even if you are a Linux novice. Following these steps to install libpython3-all-dev on your Ubuntu 22.04.

Step 1: Update the APT database to fetch new packages from Ubuntu. Launching the terminal and entering the following Linux command:

sudo apt update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install libpython3-all-dev Ubuntu by pasting this command into the terminal and executing it.

sudo apt install libpython3-all-dev

Install libpython3-all-dev 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 install aptitude

Then, you can now install libpython3-all-dev, just following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt -y update

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

sudo aptitude install libpython3-all-dev

Uninstall libpython3-all-dev on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a libpython3-all-dev, can be easily uninstalled by anyone.

You can uninstall libpython3-all-dev Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove libpython3-all-dev

If you want to uninstall libpython3-all-dev and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge libpython3-all-dev


In this guide, I showed you ways to install libpython3-all-dev on Ubuntu 22.04 and ways to uninstall libpython3-all-dev too. Please contact me if you require any assistance. I’d be delighted to respond.