Control: severity -1 important On Mon, Nov 25, 2024 at 06:59:49PM -0800, Otto Kekäläinen wrote: > Source: python-apt > Version: 2.9.1 > Severity: serious > > Seems the latest version of python-apt has some serious regressions as > https://tracker.debian.org/pkg/python-apt shows wide-spread > autopkgtest failures. > > In a clean Debian unstable container a simple installation is failing with: > > Hit:1 http://deb.debian.org/debian sid InRelease > Get:2 http://deb.debian.org/debian sid/main all Contents (deb) [43.5 MB] > Get:3 http://deb.debian.org/debian sid/main amd64 Contents (deb) [15.8 MB] > Traceback (most recent call last): > File "/usr/lib/cnf-update-db", line 3, in <module> > import apt_pkg > ImportError: > /usr/lib/python3/dist-packages/apt_pkg.cpython-312-x86_64-linux-gnu.so: > undefined symbol: > _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEmmPKcm, > version APTPKG_6.0 > Fetched 59.3 MB in 13s (4620 kB/s) > Reading package lists... > E: Problem executing scripts APT::Update::Post-Invoke-Success 'if > /usr/bin/test -w /var/lib/command-not-found/ -a -e > /usr/lib/cnf-update-db; then /usr/lib/cnf-update-db > /dev/null; fi' > E: Sub-process returned an error code > Error: error building at STEP "RUN apt-get install -q --yes > command-not-found && apt-get update -q": error while running > runtime: exit status 100 > > Please take a look what is going on.
apt has migrated since then, so the tests are passing now. We still have a bug in APT where it flip flops the symbols but I also don't want to force remove the symbols now, but I'm enqueuing this for the transition to libapt-pkg7.0. It's worth noting this does not affect bookworm->trixie updates at all right now due to libapt-pkg6.0t64 being a new package and having the right symbols in testing. It's plausible that any new APT upload removes the symbols again so this is all very fragile but it's the best we got for now I'm afraid except for adding Depends: ibapt-pkg6.0t64 (= ${apt:Version}). -- debian developer - deb.li/jak | jak-linux.org - free software dev ubuntu core developer i speak de, en