How To Install python3-apt-dbg on Ubuntu 20.04

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

Introduction

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

What is python3-apt-dbg

python3-apt-dbg is:

The apt_pkg Python 3 interface will provide full access to the internal libapt-pkg structures allowing Python 3 programs to easily perform a variety of functions.

This package contains the extension built for the Python debug interpreter. Build-Ids: 0f313f488f6b6f1a9921e9542514347827fbc5be 18f439ada5ed0fa2c1eac6c8cce9b0da8c359f1b

Package: python3-apt-dbg Architecture: amd64 Version: 2.0.0ubuntu0.20.04.3 Multi-Arch: allowed Priority: extra Section: debug 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: 4785 Provides: python3.8-apt-dbg Depends: python3-dbg (« 3.9), python3-dbg (>= 3.8~), python3-apt (= 2.0.0ubuntu0.20.04.3), libapt-pkg6.0 (>= 1.9.11~), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2) Breaks: python-apt (« 0.7.98+nmu1) Replaces: python-apt (« 0.7.98+nmu1) Filename: pool/main/p/python-apt/python3-apt-dbg_2.0.0ubuntu0.20.04.3_amd64.deb Size: 1805460 MD5sum: 45a3e8e510a1be2b280cb438515b1f2d SHA1: 26a4b486449a97cd89db1e650c12a9f37ee35ea8 SHA256: c703a605ff6e51d15ce8575d05d434875f5e1afde1211dfcd4261840d077eb0b SHA512: 5f189f19b1bf7af03c196d78ade9b701cf3f29a90946fc662a1ecb74daacfd75360784e4498468eabba2a8742b8448c701cc093616cb5c127e253f56f3c41278 Description-en: Python 3 interface to libapt-pkg (debug extension) The apt_pkg Python 3 interface will provide full access to the internal libapt-pkg structures allowing Python 3 programs to easily perform a variety of functions.

This package contains the extension built for the Python debug interpreter. Build-Ids: 7e97819c919533ed96ad3c5f3f506e5ae6898963 b8728ae59b14f2c46cadca7c92898ac4fdc385f0

Package: python3-apt-dbg Architecture: amd64 Version: 2.0.0 Multi-Arch: allowed Priority: extra Section: debug 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: 4761 Provides: python3.8-apt-dbg Depends: python3-dbg (« 3.9), python3-dbg (>= 3.8~), python3-apt (= 2.0.0), libapt-pkg6.0 (>= 1.9.11~), libc6 (>= 2.14), libgcc-s1 (>= 3.0), libstdc++6 (>= 5.2) Breaks: python-apt (« 0.7.98+nmu1) Replaces: python-apt (« 0.7.98+nmu1) Filename: pool/main/p/python-apt/python3-apt-dbg_2.0.0_amd64.deb Size: 1798868 MD5sum: fb1189c61b7ccb92aa4f3c2d9cdf7219 SHA1: caca057e65e27a4ba4fe4d9ae3b283f7c41e05fd SHA256: fe1c52308a2e040febe8ce9721bd8a6cb75adc9d92eaacd9978d887e9b84e342 Description-en: Python 3 interface to libapt-pkg (debug extension) The apt_pkg Python 3 interface will provide full access to the internal libapt-pkg structures allowing Python 3 programs to easily perform a variety of functions.

This package contains the extension built for the Python debug interpreter. Build-Ids: 20232acb58dc420c9cc19e9a6fa3ea69f52e95e0 f3a5c778f479273579927904975c90b5058fbc3d

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

sudo apt-get -y install python3-apt-dbg

Install python3-apt-dbg Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install python3-apt-dbg

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

sudo aptitude -y install python3-apt-dbg

How To Uninstall python3-apt-dbg on Ubuntu 20.04

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

sudo apt-get remove python3-apt-dbg

Uninstall python3-apt-dbg And Its Dependencies

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

Remove python3-apt-dbg Configurations and Data

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

sudo apt-get -y purge python3-apt-dbg

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

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

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

References

Summary

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