How to Install and Uninstall python-apt Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: May 14,2024

1. Install "python-apt" package

In this section, we are going to explain the necessary steps to install python-apt on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install python-apt

2. Uninstall "python-apt" package

Please follow the step by step instructions below to uninstall python-apt on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove python-apt $ sudo apt autoclean && sudo apt autoremove

3. Information about the python-apt package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: python-apt
Architecture: amd64
Version: 1.1.0~beta1ubuntu0.16.04.12
Multi-Arch: allowed
Priority: optional
Section: python
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: APT Development Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 651
Provides: python2.7-apt
Depends: python (<< 2.8), python (>= 2.7~), python:any (>= 2.7.5-5~), libapt-inst2.0 (>= 1.2.28~), libapt-pkg5.0 (>= 1.2.28~), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), python-apt-common
Recommends: lsb-release, iso-codes, xz-utils
Suggests: python-apt-dbg, python-apt-doc
Breaks: apt-forktracer (<< 0.3), apt-listchanges (<< 2.85), apt-p2p (<< 0.1.6), apt-xapian-index (<< 0.25), aptdaemon (<< 1.1.1+bzr982-0ubuntu14.2), aptoncd (<< 0.1.98+bzr117), bcfg2 (<< 1.0.1), bzr-builddeb (<< 2.4), computer-janitor (<< 1.14.1-1+), debdelta (<< 0.41+), debpartial-mirror (<< 0.2.98), debsecan (<< 0.4.15), gdebi (<< 0.6.1), germinate (<< 1.21), gnome-codec-install (<< 0.4.5), mini-dinstall (<< 0.6.28), packagekit-backend-apt (<= 0.4.8-0ubuntu4), python-cdd (<< 0.0.10), python-dogtail (<< 0.6.1-3.1+), python-software-properties (<< 0.70.debian-1+), rebuildd (<< 0.3.9), software-center (<< 1.1.21debian2), tla-buildpackage (<< 0.9.14), ubuntu-dev-tools (<< 0.93debian1), unattended-upgrades (<< 0.42debian2), update-manager (<< 0.200.2-1), update-notifier (<< 0.99.3debian9), wajig (<< 2.0.46)
Filename: pool/main/p/python-apt/python-apt_1.1.0~beta1ubuntu0.16.04.12_amd64.deb
Size: 146934
MD5sum: d42b6ff629a52723999864a2a6970a84
SHA1: 20ab4a06bc434a1ce798cb92b64265d8b93dcf29
SHA256: 9b3b38375907276fcd4779b06ead659e66bda50c6e456ed11cf1836214c53538
SHA512: 2b95f34104a8738bce0a605091e6f4014cf2e16ebe2256f2af42e9dce8aa19727ecd49d8cc55cd19308002af9b6c0e39e1b73542aa9c35712703013be9796295
Description-en: Python interface to libapt-pkg
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, such as:
.
- Access to the APT configuration system
- Access to the APT package information database
- Parsing of Debian package control files, and other files with a
similar structure
.
The included 'aptsources' Python interface provides an abstraction of
the sources.list configuration on the repository and the distro level.
Description-md5: 2b295efc7c4e39a13486f5a6990ce22b
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, lubuntu-desktop, ubuntu-sdk, ubuntukylin-desktop
Supported: 5y

Package: python-apt
Architecture: amd64
Version: 1.1.0~beta1ubuntu0.16.04.11
Multi-Arch: allowed
Priority: optional
Section: python
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: APT Development Team
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 651
Provides: python2.7-apt
Depends: python (<< 2.8), python (>= 2.7~), python:any (>= 2.7.5-5~), libapt-inst2.0 (>= 1.2.28~), libapt-pkg5.0 (>= 1.2.28~), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), python-apt-common
Recommends: lsb-release, iso-codes, xz-utils
Suggests: python-apt-dbg, python-apt-doc
Breaks: apt-forktracer (<< 0.3), apt-listchanges (<< 2.85), apt-p2p (<< 0.1.6), apt-xapian-index (<< 0.25), aptdaemon (<< 1.1.1+bzr982-0ubuntu14.2), aptoncd (<< 0.1.98+bzr117), bcfg2 (<< 1.0.1), bzr-builddeb (<< 2.4), computer-janitor (<< 1.14.1-1+), debdelta (<< 0.41+), debpartial-mirror (<< 0.2.98), debsecan (<< 0.4.15), gdebi (<< 0.6.1), germinate (<< 1.21), gnome-codec-install (<< 0.4.5), mini-dinstall (<< 0.6.28), packagekit-backend-apt (<= 0.4.8-0ubuntu4), python-cdd (<< 0.0.10), python-dogtail (<< 0.6.1-3.1+), python-software-properties (<< 0.70.debian-1+), rebuildd (<< 0.3.9), software-center (<< 1.1.21debian2), tla-buildpackage (<< 0.9.14), ubuntu-dev-tools (<< 0.93debian1), unattended-upgrades (<< 0.42debian2), update-manager (<< 0.200.2-1), update-notifier (<< 0.99.3debian9), wajig (<< 2.0.46)
Filename: pool/main/p/python-apt/python-apt_1.1.0~beta1ubuntu0.16.04.11_amd64.deb
Size: 147068
MD5sum: 370b424e4eeb9dba9f19c1569a4b7086
SHA1: bb80abcf5edeba7788e6a063229467e9aa50f40b
SHA256: 54283ffc0ab61002c36c956d3693fb547c6fb0711a68c390c9175f1b5229b838
SHA512: f0a657193dd969a49f30dde2731076f0d3c7ed50098104fad2f176a88c60a99d5ba7219d2b7920d17322ff28bcc86422cd9558ab30ff5831f0cbeb03e1049b09
Description-en: Python interface to libapt-pkg
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, such as:
.
- Access to the APT configuration system
- Access to the APT package information database
- Parsing of Debian package control files, and other files with a
similar structure
.
The included 'aptsources' Python interface provides an abstraction of
the sources.list configuration on the repository and the distro level.
Description-md5: 2b295efc7c4e39a13486f5a6990ce22b
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, lubuntu-desktop, ubuntu-sdk, ubuntukylin-desktop
Supported: 5y

Package: python-apt
Priority: optional
Section: python
Installed-Size: 616
Maintainer: Ubuntu Developers
Original-Maintainer: APT Development Team
Architecture: amd64
Version: 1.1.0~beta1build1
Provides: python2.7-apt
Depends: python (<< 2.8), python (>= 2.7~), python:any (>= 2.7.5-5~), libapt-inst2.0 (>= 1.1~exp9), libapt-pkg5.0 (>= 1.1~exp9), libc6 (>= 2.14), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), python-apt-common
Recommends: lsb-release, iso-codes, xz-utils
Suggests: python-apt-dbg, python-apt-doc
Breaks: apt-forktracer (<< 0.3), apt-listchanges (<< 2.85), apt-p2p (<< 0.1.6), apt-xapian-index (<< 0.25), aptdaemon (<< 0.11+bzr343-1~), aptoncd (<< 0.1.98+bzr117), bcfg2 (<< 1.0.1), bzr-builddeb (<< 2.4), computer-janitor (<< 1.14.1-1+), debdelta (<< 0.41+), debpartial-mirror (<< 0.2.98), debsecan (<< 0.4.15), gdebi (<< 0.6.1), germinate (<< 1.21), gnome-codec-install (<< 0.4.5), mini-dinstall (<< 0.6.28), packagekit-backend-apt (<= 0.4.8-0ubuntu4), python-cdd (<< 0.0.10), python-dogtail (<< 0.6.1-3.1+), python-software-properties (<< 0.70.debian-1+), rebuildd (<< 0.3.9), software-center (<< 1.1.21debian2), tla-buildpackage (<< 0.9.14), ubuntu-dev-tools (<< 0.93debian1), unattended-upgrades (<< 0.42debian2), update-manager (<< 0.200.2-1), update-notifier (<< 0.99.3debian9), wajig (<< 2.0.46)
Filename: pool/main/p/python-apt/python-apt_1.1.0~beta1build1_amd64.deb
Size: 138818
MD5sum: 81e9b1a7723bc5de6671c97e3bb27c12
SHA1: 1d5360c6fe7284c3535b94ad5af00eabb2217048
SHA256: c62fc960dbf74e3ed26882c09fc8fd54085fcfa7879c5677ba55fd94e5e924f0
Description-en: Python interface to libapt-pkg
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, such as:
.
- Access to the APT configuration system
- Access to the APT package information database
- Parsing of Debian package control files, and other files with a
similar structure
.
The included 'aptsources' Python interface provides an abstraction of
the sources.list configuration on the repository and the distro level.
Description-md5: 2b295efc7c4e39a13486f5a6990ce22b
Multi-Arch: allowed
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, lubuntu-desktop, ubuntu-sdk, ubuntukylin-desktop