Package Details: python2-apt 1.4.0~beta3-1

Git Clone URL: (read-only)
Package Base: python-apt
Description: Python binding of libapt-pkg
Upstream URL:
Licenses: GPL2
Submitter: JonnyJD
Maintainer: dylan (HaaTa)
Last Packager: dylan
Votes: 10
Popularity: 0.346151
First Submitted: 2014-06-11 08:37
Last Updated: 2017-05-04 02:54

Pinned Comments

dylan commented on 2017-04-07 00:55

The apt package was updated to 1.4 so I've finally updated this package to 1.4. Sorry for the delay.

Latest Comments

dylan commented on 2017-05-04 02:55


unixfox commented on 2017-05-03 21:26

Unfortunately the ressource isn't found:
curl: (22) The requested URL returned error: 404 Not Found
==> ERREUR : Erreur lors du téléchargement de

dylan commented on 2017-04-07 00:55

The apt package was updated to 1.4 so I've finally updated this package to 1.4. Sorry for the delay.

dylan commented on 2017-04-05 22:40


The latest version of this package builds just fine with apt >= 1.4. The only problem is that the latest apt version in the aur is 1.3.2. Therefore I won't be able to update this package until the apt aur package is updated to 1.4 or above.

apt 1.4 is only in debian testing/unstable so I don't think there's a rush to update python-apt. [1]

TL;DR: I'm going to keep this package's version inline with the version of apt in the aur.


dylan commented on 2017-04-05 22:29

Thanks for the archive link @jdtournier, I've updated the source link so at least the package actually builds and installs now.

jdtournier commented on 2017-04-03 10:00

In case it helps: the current version (1.1.0~beta5) is no longer hosted on the Debian FTP repo, but the same file can be found from the Ubuntu archives. I just modified the 'source' line to:


and it worked fine.

It looks like you'll need to also update apt to version 1.4.0 before python-apt 1.4.0 will compile, so maybe this fix is good enough for now?

guest73 commented on 2017-03-26 20:26

The problem is back now
Failure while downloading

There is not python-apt_1.1.0~beta5.tar.xz, I can see only python-apt_1.4.0~beta2.tar.xz. I think an update is needed.

cellisten commented on 2017-03-17 15:46

I can confirm the problem, haven't figured out a solution though.

dylan commented on 2017-03-09 02:42

I'm getting an error when I try to build the newest version of python-apt (1.4.0~beta2). Here's the terminal output:

Any help is appreciated.

dylan commented on 2017-03-09 00:33

I'm updating the package to 1.4.0~beta2, sorry for the delay.

dylan commented on 2017-01-29 02:19

This PKGBUILD works if the version is changed to '1.1.0~beta5'. Could the maintainer please update the PKGBUILD?

aninstance commented on 2017-01-13 20:32

Remains un-updated, as per flag of 2016-09-19:

Failure while downloading

JonnyJD commented on 2016-08-28 12:56

Well, the actual problem wasn't the sha, but a broken apt build.
Anyways, updated now, since apt is fixed since yesterday.

The real shame is that Debian removes the source files that often..
So prepare for this package to break with 404 as soon as beta5 or similar is out.

dmp1ce commented on 2016-08-28 11:31

This package needs to be updated to 1.1.0~beta4.

The sha256sum is 19c6939c34e1ecae2a5932e9c112eb275d89b4f46bebfa58f08383d87f7353d8 if you are doing this manually.

HaaTa commented on 2016-04-01 19:53

@JonnyJD: Cool, just updated the pkg. Made sure to update the minimum apt version as well.

JonnyJD commented on 2016-04-01 19:10

@HaaTa: I added you. If the beta fixes things you can just update the package to that version.

HaaTa commented on 2016-04-01 18:10

I guess I could maintain the package (as I need it for some work related things). Though I'm not sure how often the package will change as Ubuntu currently uses the beta in their stable release.
Also, I'm not sure I can guarantee the python2 package will be working as I won't be using it.

JonnyJD commented on 2016-03-30 06:29

In case we have to run beta in order to work with recent apt:
anybody willing to maintain this then?
With me the package would be constantly out of date I guess.

JonnyJD commented on 2016-03-30 06:11

hm, possibly a problem with an apt version that is "too new" (I am running ATM).
I might have time to check this with updated apt later today.

HaaTa commented on 2016-03-30 01:03

I'm getting compiler errors with The beta doesn't have these issues.

ython/apt_pkgmodule.h:193:34: error: 'indexRecords' was not declared in this scope
PyObject* PyIndexRecords_FromCpp(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/apt_pkgmodule.h:193:48: error: expected primary-expression before 'const'
PyObject* PyIndexRecords_FromCpp(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/apt_pkgmodule.h:193:60: error: expected primary-expression before 'bool'
PyObject* PyIndexRecords_FromCpp(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/apt_pkgmodule.h:193:82: error: expected primary-expression before '*' token
PyObject* PyIndexRecords_FromCpp(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/apt_pkgmodule.h:193:83: error: 'Owner' was not declared in this scope
PyObject* PyIndexRecords_FromCpp(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/apt_pkgmodule.h:193:88: error: expression list treated as compound expression in initializer [-fpermissive]
PyObject* PyIndexRecords_FromCpp(indexRecords* const &obj, bool Delete, PyObject *Owner);
In file included from python/apt_pkgmodule.h:211:0,
from python/
python/python-apt.h:111:37: error: expected ';' at end of member declaration
PyObject* (*indexrecords_fromcpp)(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/python-apt.h:111:51: error: expected ')' before '*' token
PyObject* (*indexrecords_fromcpp)(indexRecords* const &obj, bool Delete, PyObject *Owner);
python/python-apt.h:112:5: error: 'indexRecords' does not name a type
indexRecords*& (*indexrecords_tocpp)(PyObject *self);

JonnyJD commented on 2016-03-29 05:28

Thanks, I use the from jessie.
The beta version is in preparation for stretch and will change rapidly (and possibly break).

HaaTa commented on 2016-03-29 01:23

Versioning seems to have changed. seems to be the latest stable version.

JonnyJD commented on 2015-02-12 11:36

I prepared a split package for the Python 2 and 3 version.
Before I can upload there will be a short time between the merge of python2-apt into python-apt and me uploading the split package to AUR.
You can get the split package build here already:

JonnyJD commented on 2015-02-12 01:21

Or rather, I only updated the python 3 version..

JonnyJD commented on 2015-02-12 01:20

Oh, I updated the package a week ago in the repository, but forgot to upload it to AUR :-/

tofubanditx commented on 2015-02-11 19:47

python-apt_0.9.3.8.tar.xz does not exist anymore. I had it fetch and install python-apt_0.9.3.11.tar.xz instead, and so far so good.

JonnyJD commented on 2015-02-04 23:28

I updated the package to the latest version.

While most python modules are architecture independent, some include compiled code, which is the case here.
$ file /usr/lib/python*/site-packages/apt_*.so

These are not architecture independent and part of python*-apt.

eomarjee commented on 2015-02-03 13:52

Please change to arch=('any')

JonnyJD commented on 2014-06-11 08:40

The distutils-extra makedep is not necessarily needed, but it builds the locales so I re-added it.
The apt problem seems to be due to me making changes while compiling so I updated to now.

I created

JonnyJD commented on 2014-06-11 07:41

I updated to for now. This also removes python2-distutils-extra and python2-debian as makedeps. needs apt 1.0.4, which again seems to need other updates/fixes.
I'll fix that later on, hopefully today.

From the changelog it sounds like Python 3 support was added. I'll add another package after I fixed the rest; unless somebody else creates it ;-)

saturn_knight commented on 2014-06-11 04:20

python-apt_0.9.1.tar.gz is no longer available.
Updating to python-apt_0.9.3.6 with md5sum adade1c69bd21c9741194d9f3cb387cb works.
python_apt_0.9.3.7 is also available for download but fails to compile.

piquer commented on 2013-11-14 09:07

python-apt_0.8.9.1.tar.gz is not available anymore on the debian ftp. Using 0.9.1 with md5sum 2b59d6f4b06bdaaa14c52fd5f9a19f9a works.