python-apt - Python interface to libapt-pkg

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Main amd64
Package name python-apt
Package version 1.6.0
Package architecture amd64
Package type deb
Installed size 663 B
Download size 144.06 KB
Official Mirror
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_1.6.3ubuntu1_amd64.deb 1.6.3ubuntu1 amd64 Ubuntu Updates Main
python-apt_1.6.3ubuntu1_i386.deb 1.6.3ubuntu1 i386 Ubuntu Updates Main
python-apt_1.6.0_i386.deb 1.6.0 i386 Ubuntu Main
python-apt - - -


Name Value
dirmngr -
gnupg -
gnupg << 2
libapt-inst2.0 >= 1.4~beta3
libapt-pkg5.0 >= 1.4~beta3
libc6 >= 2.14
libgcc1 >= 1:3.0
libstdc++6 >= 5.2
python << 2.8
python >= 2.7~
python-apt-common -
python:any >= 2.7.5-5~
python:any << 2.8


Name Value
python2.7-apt -


Type URL
Binary Package python-apt_1.6.0_amd64.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-04-18 - Julian Andres Klode <>
python-apt (1.6.0) unstable; urgency=medium
* Final release, no further changes.
2018-04-13 - Julian Andres Klode <>
python-apt (1.6.0~rc3) unstable; urgency=medium
* Revert change to make apt.Cache subclass of dict
* Fix get_changelog() to correctly decode non-unicode changelogs
* Try to work around memory corruption in PackageRecords.*_hash
* apt/ Protect against race with gpg when removing tmpdir
(Closes: #871585)
* Document Architecture: all handling in Package.{fullname,architecture()}
(Closes: #863193)
* python/ Fix invalid read in TagFileNext
* Raise ValueError if objects passed to DepCache are from different cache
(LP: #1737441)
* DepCache: Check that candidate we are setting belongs to package
* debian/gbp.conf: Default branch is master now
2018-03-23 - Julian Andres Klode <>
python-apt (1.6.0~rc2) unstable; urgency=medium
* Add some weird python3-distutils build-depends (Closes: #893837)
* Document apt_pkg.SourceRecordsFile
2018-03-23 - Julian Andres Klode <>
python-apt (1.6.0~rc1) unstable; urgency=medium
[ Michael Vogt ]
* add info how to run the tests
* Fix the remaining pep8 erorrs
* README: add intro how to use python-apt with mypy
* tests/old: update to py3
* apt: make Version.fetch_binary() less noisy
* README: make markdown and add info about building/testing
* apt: add support for pep484 (type hints)
* fix tests
* python: add pkgsrcrecord.Files.{hashes,size,path,type} getters
* python: stop using deprecated hash access (and drive by indent fixes)
[ Julian Andres Klode ]
* pkgsrcrecords: Fix off-by-one error in OR group handling
* data/templates/ Add bionic template
* apt/ Fix pep8
* Switch travis to use Docker based tests
* tests: Make more reliable
2017-04-23 - Julian Andres Klode <>
python-apt (1.4.0~beta3) unstable; urgency=medium
* apt.auth: Fix check of fingerprint length
* data/templates/ Add artful template
* Debian template: Adopt MatchUri to match base, switch BaseUri to CDN
(Closes: #859672)
* Update translation template
2017-01-22 - Julian Andres Klode <>
python-apt (1.4.0~beta2) unstable; urgency=medium
[ Julian Andres Klode ]
* templates: Debian: Add stretch
* Skip os-release test for now (Closes: #851039)
[ Martin Pitt ]
* data/templates/ Add zesty template
2017-01-05 - Julian Andres Klode <>
python-apt (1.4.0~beta1) unstable; urgency=medium
[ Harald Sitter ]
* add fancy os-release support to pick up its ID_LIKE feature
[ Julian Andres Klode ]
* Add optional 'architecture' argument to parse_src_depends()
* Allow keyword arguments for parse_depends() and parse_src_depends()
* Migrate python-apt priority from standard to optional
* Bump version number, we require APT 1.4 series for the architecture
thing above.
2016-09-01 - Julian Andres Klode <>
python-apt (1.1.0~beta5) unstable; urgency=medium
NOTE: apt.auth is about to be deprecated, do not use it. It will
be removed in a later version.
* Fix gpg breakage (Closes: #835465)
- Use --fixed-list-mode for apt-key gpg invocations.
Thanks to Daniel Kahn Gillmor for the initial patch
- test_auth: Normalize public key blocks before comparing
-  Adjust dependencies for apt.auth on gnupg and dirmngr
- Work around broken debfile multiarch test cases
2016-07-16 - Julian Andres Klode <>
python-apt (1.1.0~beta4) unstable; urgency=medium
* Fix test failures causing FTBFS (Closes: #830995)
- tests/ Set allow-insecure
- tests: Completely reset config environment in setUp

See Also

Package Description
python-asn1crypto_0.24.0-1_all.deb Fast ASN.1 parser and serializer (Python 2)
python-attr-doc_17.4.0-2_all.deb documentation for the attrs Python library
python-attr_17.4.0-2_all.deb Attributes without boilerplate (Python 2)
python-automat_0.6.0-1_all.deb Self-service finite-state machines for the programmer on the go
python-automaton-doc_1.14.0-0ubuntu1_all.deb friendly state machines - doc
python-automaton_1.14.0-0ubuntu1_all.deb friendly state machines - Python 2.7
python-babel-doc_2.4.0+dfsg.1-2ubuntu1_all.deb tools for internationalizing Python applications - documentation
python-babel-localedata_2.4.0+dfsg.1-2ubuntu1_all.deb tools for internationalizing Python applications - locale data files
python-babel_2.4.0+dfsg.1-2ubuntu1_all.deb tools for internationalizing Python applications - Python 2.x
python-barbican_6.0.0-0ubuntu1_all.deb OpenStack Key Management Service - Python files
python-barbicanclient_4.6.0-0ubuntu1_all.deb OpenStack Key Management API client - Python 2.x
python-bcrypt_3.1.4-2_amd64.deb password hashing library for Python
python-blinker-doc_1.4+dfsg1-0.1_all.deb Documentation for the blinker signaling library
python-blinker_1.4+dfsg1-0.1_all.deb Fast, simple object-to-object and broadcast signaling library
python-bs4-doc_4.6.0-1_all.deb error-tolerant HTML parser for Python - documentation