How To Install python-apt-dbg on Ubuntu 20.04

In this tutorial we learn how to install python-apt-dbg on Ubuntu 20.04. python-apt-dbg is Python interface to libapt-pkg (debug extension) Python interface to libapt-pkg (debug extension) Python interface to libapt-pkg (debug extension)

Introduction

In this tutorial we learn how to install python-apt-dbg on Ubuntu 20.04.

What is python-apt-dbg

python-apt-dbg 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 the extension built for the Python debug interpreter. Build-Ids: cb11b460909adc6d28b50ba2fd725ad461e71014 d93bedc6e89fbb47b978ee906885ed390c823177

Package: python-apt-dbg Architecture: amd64 Version: 2.0.0ubuntu0.20.04.3 Multi-Arch: allowed Priority: extra Section: universe/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: 4556 Provides: python2.7-apt-dbg Depends: python2-dbg (« 2.8), python2-dbg (>= 2.7~), python2-dbg:any (« 2.8), python2-dbg:any (>= 2.7~), python-apt (= 2.0.0ubuntu0.20.04.3), libapt-pkg6.0 (>= 1.9.11~), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2) Filename: pool/universe/p/python-apt/python-apt-dbg_2.0.0ubuntu0.20.04.3_amd64.deb Size: 1742692 MD5sum: 48ca08e55319671a6c0e1eedfef1857e SHA1: 33735317597232ac41836cd4cf0bdf3466258bf0 SHA256: f1e3e7f2630c659f7cf2856c3102c0b6acbda5de12677f962518e46a7d7bfaf0 SHA512: 949a3c74cb22d61543f59317e533e35111f7c59c7527c504d7be1bd569f82dc91db97197de9c6ba13cafe575dbb960b021739c2a80ab7291ac5c9e1902a7d615 Description-en: Python interface to libapt-pkg (debug extension) 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 the extension built for the Python debug interpreter. Build-Ids: e077330dbf004a28b69279e74f42b47168488891 fa9aaa8adfd4a7367b34f1a4e6492d2aaf6be2f1

Package: python-apt-dbg Architecture: amd64 Version: 2.0.0 Multi-Arch: allowed Priority: extra Section: universe/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: 4542 Provides: python2.7-apt-dbg Depends: python2-dbg (« 2.8), python2-dbg (>= 2.7~), python2-dbg:any (« 2.8), python2-dbg:any (>= 2.7~), python-apt (= 2.0.0), libapt-pkg6.0 (>= 1.9.11~), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2) Filename: pool/universe/p/python-apt/python-apt-dbg_2.0.0_amd64.deb Size: 1735976 MD5sum: 7a96eee96ed7716f5e9c9ece74d8118b SHA1: b3d06d522d6287250e346de65bf10aae8b178ef3 SHA256: de37d846a6402867a5a31860b70d2c01b3cc080d446f749e510a256f9a01fda9 Description-en: Python interface to libapt-pkg (debug extension) 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 the extension built for the Python debug interpreter. Build-Ids: 1f31f2f7d816f88d82e099c5b43a69da3863c669 9a129624dbffb936f0a43fa95c6bdda1ad9d0fda

There are three methods to install python-apt-dbg 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-dbg 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-dbg using apt-get by running the following command:

sudo apt-get -y install python-apt-dbg

Install python-apt-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install python-apt-dbg using apt by running the following command:

sudo apt -y install python-apt-dbg

Install python-apt-dbg 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-dbg using aptitude by running the following command:

sudo aptitude -y install python-apt-dbg

How To Uninstall python-apt-dbg on Ubuntu 20.04

To uninstall only the python-apt-dbg package we can use the following command:

sudo apt-get remove python-apt-dbg

Uninstall python-apt-dbg And Its Dependencies

To uninstall python-apt-dbg 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-dbg

Remove python-apt-dbg Configurations and Data

To remove python-apt-dbg configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge python-apt-dbg

Remove python-apt-dbg configuration, data, and all of its dependencies

We can use the following command to remove python-apt-dbg configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge python-apt-dbg

References

Summary

In this tutorial we learn how to install python-apt-dbg package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.