python-apt - Python interface to libapt-pkg

Property Value
Distribution Ubuntu 14.04 LTS (Trusty Tahr)
Repository Ubuntu Updates Main i386
Package filename python-apt_0.9.3.5ubuntu3_i386.deb
Package name python-apt
Package version
Package release -
Package architecture i386
Package type deb
Category python
Homepage -
License -
Maintainer Ubuntu Developers <>
Download size 134.93 KB
Installed size 606.00 KB
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.


Package Version Architecture Repository
python-apt_0.9.3.5ubuntu3_amd64.deb amd64 Ubuntu Updates Main
python-apt_0.9.3.5_i386.deb i386 Ubuntu Main
python-apt_0.9.3.5_amd64.deb amd64 Ubuntu Main
python-apt - - -


Name Value
libapt-inst1.5 >= 0.8.11
libapt-pkg4.12 >= 0.9.11
libc6 >= 2.4
libgcc1 >= 1:4.1.1
libstdc++6 >= 4.4.0
python << 2.8
python >= 2.7
python-apt-common -
python:any >= 2.7.1-0ubuntu2


Name Value
python2.7-apt -


Type URL
Binary Package python-apt_0.9.3.5ubuntu3_i386.deb
Source Package python-apt

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-apt deb package:
    # sudo apt-get install python-apt




2018-07-10 - Julian Andres Klode <>
python-apt ( trusty-proposed; urgency=medium
* DepCache: Check that candidate we are setting belongs to package
* Raise CacheMismatchError if objects passed to DepCache are from different cache
(LP: #1737441); also includes the following regression fixes from bionic:
- apt.Cache: Remap objects when reopening cache (LP: 1773316 in bionic+), incl. regression fixes:
+ Add more extensive test cases for cache remapping
+ Regression fix: Do not override __hash__ in apt.package.Package (LP: 1780099 in bionic+)
* CI / pre-build / data changes:
- Replace broken travis CI integration with current docker-based one
- utils/ Get data from salsa (for pre-build hook)
- debian/control: Point to salsa instead of anonscm
- debian/gbp.conf: Point to ubuntu/trusty branch
- Updated mirror list
2015-12-02 - Brian Murray <>
python-apt ( trusty-proposed; urgency=medium
* Do not only look at Release files, but look at InRelease files as well.
Change the code to open Release and InRelease files with
apt_pkg.open_maybe_clear_signed_file() which will ignore the signature if
it exists. (LP: #1503979)
* tests/ update for gnupg 1.4.18 (Closes: #755342)
2015-01-06 - Brian Murray <>
python-apt ( trusty-proposed; urgency=medium
* Rebuild to get updated mirror files. (LP: #1397578)
2014-04-02 - Julian Andres Klode <>
python-apt ( unstable; urgency=medium
* utils/ Drop, its unused and broken
* doc/source/ Do not use 'u' and 'r' prefixes together
* tests: Drop some more Python 2.6 cruft
* debian/control: Drop X{B,S}-Python-Version and use X-Python-Version
* debian/pycompat: Drop, it's not used anymore
* python/ Ignore missing 'encoding' attribute in file objects
* apt/ Do not shadow _
2014-03-20 - Julian Andres Klode <>
python-apt ( unstable; urgency=medium
* python/ Fix InstallProgress to set child_pid (LP: #1177720)
* python/ Remove invalid checks for mixedCase methods
* utils/get_*_mirrors*.py: Ensure failure if no mirrors were read
* utils/get_*_mirrors*.py: Use sys.stderr.write instead of print
* Support all compressors for data.tar/control.tar (Closes: #718330)
* Revert "aptsources/ ensure that our sources are opened with UTF-8"
(Closes: #742118)
2014-03-15 - Julian Andres Klode <>
python-apt ( unstable; urgency=medium
[ Steve Langasek ]
* aptsources/ ensure that our sources are opened with UTF-8
encoding, regardless of the current locale, and handle the sources lines
as Unicode internally for consistency between python2 and python3.
LP: #1069019.
[ Brian Murray ]
* Fix pep8 error.
2014-03-10 - Julian Andres Klode <>
python-apt ( unstable; urgency=high
* Revert "* apt/" (rootdir change) (Closes: #741251) (LP: #1288171)
We cannot reset the configuration when rootdir is specified in
apt.Cache(). This reopens: #728274.
2014-02-22 - Julian Andres Klode <>
python-apt ( unstable; urgency=medium
* debian/rules: Do not run dh_sphinxdoc -a
2014-02-22 - Julian Andres Klode <>
python-apt (0.9.3) unstable; urgency=medium
* doc/source/ Python 3 support
* debian/rules: Use dh_sphinxdoc integration
* utils/ Drop, not working anymore.
* python/generic.h: Fix MkPyNumber to work if char is unsigned.
* data: Add Tanglu distribution information
* debian/python3-apt-dbg.files: Fix pattern for kFreeBSD
* tests/ Disable, uses system state (FTBFS on ppc64)
* tests/data/aptsources/sources.list.testDistribution: Add tanglu
* tests/ Fix comment to conform to PEP8

See Also

Package Description
python-aptdaemon.gtk3widgets_1.1.1-1ubuntu5.2_all.deb Python 2 GTK+ 3 widgets to run an aptdaemon client
python-aptdaemon_1.1.1-1ubuntu5.2_all.deb Python 2 module for the server and client of aptdaemon
python-avahi_0.6.31-4ubuntu1.3_i386.deb Python utility package for Avahi
python-babel-doc_1.3+dfsg.1-2ubuntu2_all.deb tools for internationalizing Python applications - documentation
python-babel-localedata_1.3+dfsg.1-2ubuntu2_all.deb tools for internationalizing Python applications - locale data files
python-babel_1.3+dfsg.1-2ubuntu2_all.deb tools for internationalizing Python applications - Python 2.x
python-bzrlib.tests_2.6.0+bzr6593-1ubuntu1.6_all.deb distributed version control system - testsuite
python-bzrlib_2.6.0+bzr6593-1ubuntu1.6_i386.deb distributed version control system - python library
python-ceilometer_2014.1.5-0ubuntu2_all.deb ceilometer python libraries
python-ceph_0.80.11-0ubuntu1.14.04.4_i386.deb Python libraries for the Ceph distributed filesystem
python-cinder_2014.1.5-0ubuntu2.2_all.deb Cinder Python libraries
python-cinderclient_1.0.8-0ubuntu2_all.deb python bindings to the OpenStack Volume API
python-crypto-doc_2.6.1-4ubuntu0.3_all.deb cryptographic algorithms and protocols for Python (documentation)
python-crypto_2.6.1-4ubuntu0.3_i386.deb cryptographic algorithms and protocols for Python
python-cupshelpers_1.4.3+20140219-0ubuntu2.6_all.deb Python modules for printer configuration with CUPS