How To Install python-apt-common on Ubuntu 20.04
Introduction
In this tutorial we learn how to install python-apt-common
on Ubuntu 20.04.
What is python-apt-common
python-apt-common is:
The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains locales. Task: standard
Package: python-apt-common Status: install ok installed Priority: optional Section: python Installed-Size: 272 Maintainer: Ubuntu Developers [email protected] Architecture: all Source: python-apt Version: 2.0.0ubuntu0.20.04.4 Replaces: python-apt (« 0.7.98+nmu1) Breaks: python-apt (« 0.7.98+nmu1) Enhances: python-apt, python3-apt Description-en: Python interface to libapt-pkg (locales) The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains locales. Original-Maintainer: APT Development Team [email protected]
Package: python-apt-common Architecture: all Version: 2.0.0ubuntu0.20.04.3 Priority: standard Section: python Source: python-apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 272 Breaks: python-apt (« 0.7.98+nmu1) Replaces: python-apt (« 0.7.98+nmu1) Enhances: python-apt, python3-apt Filename: pool/main/p/python-apt/python-apt-common_2.0.0ubuntu0.20.04.3_all.deb Size: 17516 MD5sum: 1b041f83e76e6acc1302a42903ee130f SHA1: da82c48650e615029fe92ba3c425e6c2a2aa1570 SHA256: f742923ab93953ae5243f5cfd6d290c2eb9fc6e1ca8a9551d62ac3989689136a SHA512: 862dfff4ef6aedab18631c640f3a7f923a147a58aa3be0556c235e0107db9786bda8532f1a2f0bd63c013fe79a204777a1185625e8a151e92932c2cc0c3ad445 Description-en: Python interface to libapt-pkg (locales) The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains locales. Task: standard
Package: python-apt-common Architecture: all Version: 2.0.0 Priority: standard Section: python Source: python-apt Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: APT Development Team [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 268 Breaks: python-apt (« 0.7.98+nmu1) Replaces: python-apt (« 0.7.98+nmu1) Enhances: python-apt, python3-apt Filename: pool/main/p/python-apt/python-apt-common_2.0.0_all.deb Size: 17348 MD5sum: 5f92e6e99c38a7163f60486d7c93ef7c SHA1: 8430f3ee1baa5de883cf161285977c22cf6ab37d SHA256: ac6e3eca96472c0e073866ed7328a1bf171763c0d770db9da54433af73a35719 Description-en: Python interface to libapt-pkg (locales) The apt_pkg Python interface will provide full access to the internal libapt-pkg structures allowing Python programs to easily perform a variety of functions.
This package contains locales. Task: standard
There are three methods to install python-apt-common
on Ubuntu 20.04. We can use apt-get
, apt
and aptitude
. In the following sections we will describe each method. You can choose one of them.
Install python-apt-common Using apt-get
Update apt database with apt-get
using the following command.
sudo apt-get update
After updating apt database, We can install python-apt-common
using apt-get
by running the following command:
sudo apt-get -y install python-apt-common
Install python-apt-common Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install python-apt-common
using apt
by running the following command:
sudo apt -y install python-apt-common
Install python-apt-common Using aptitude
If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude
using the following command.
sudo aptitude update
After updating apt database, We can install python-apt-common
using aptitude
by running the following command:
sudo aptitude -y install python-apt-common
How To Uninstall python-apt-common on Ubuntu 20.04
To uninstall only the python-apt-common
package we can use the following command:
sudo apt-get remove python-apt-common
Uninstall python-apt-common And Its Dependencies
To uninstall python-apt-common
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove python-apt-common
Remove python-apt-common Configurations and Data
To remove python-apt-common
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge python-apt-common
Remove python-apt-common configuration, data, and all of its dependencies
We can use the following command to remove python-apt-common
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge python-apt-common
References
Summary
In this tutorial we learn how to install python-apt-common
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.