After a nala upgrade this morning installed a new kernel I rebooted. I tried to remove the older kernel once I was back up but nala is failing. Unfortunately I didn't get a good look at what was being installed/updated. It was a short list though.
root@hp8470p:/home/dan# nala upgrade
Traceback (most recent call last):
File "/usr/bin/nala", line 5, in <module>
from nala.__main__ import main
File "/usr/lib/python3/dist-packages/nala/__main__.py", line 31, in <module>
import nala.fetch as _fetch # pylint: disable=unused-import
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/nala/fetch.py", line 60, in <module>
from nala.downloader import print_error
File "/usr/lib/python3/dist-packages/nala/downloader.py", line 70, in <module>
from nala.error import ExitCode, FileDownloadError
File "/usr/lib/python3/dist-packages/nala/error.py", line 38, in <module>
from nala.debfile import NalaBaseDep, NalaDebPackage, NalaDep
File "/usr/lib/python3/dist-packages/nala/debfile.py", line 32, in <module>
from apt.debfile import DebPackage
File "/usr/lib/python3/dist-packages/apt/debfile.py", line 28, in <module>
import apt_inst
ImportError: /usr/lib/python3/dist-packages/apt_inst.cpython-311-x86_64-linux-gnu.so: undefined symbol: PyAptWarning
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058657
python-apt is broken, please be patient with an update!
apt update and apt full-upgrade still working!
Edit @eiriefisher Sorry I changed the headline!
Apology not needed. The title should reflect the bug propery.
Looking at the logs it does confirm that a python update is the cause.
Well, I downgraded python3-apt and nala works again.
For those who need nala desperately, https://snapshot.debian.org/package/python-apt/2.7.0/#python3-apt_2.7.0:2b:b1
But be careful with that axe, [...], it can kill your pet.
Quote from: hendrikL on 2023/12/15, 09:07:51
Well, I downgraded python3-apt and nala works again.
For those who need nala desperately, https://snapshot.debian.org/package/python-apt/2.7.0/#python3-apt_2.7.0:2b:b1
But be careful with that axe, [...], it can kill your pet.
Thanx for this info. I don't think this axe is sharp enough to kill the pet. Anyway I don't really see a reason to downgrade. Apt is doing the job pretty well until the bug is fixed.
python3-apt got a fix, so nala works again, and definitely other programs too!
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058657#39
apt policy python3-apt
python3-apt:
Installed: 2.7.3
Candidate: 2.7.3
With the next mirror sync, it should be there.
Quote from: hendrikL on 2023/12/21, 21:53:41
python3-apt got a fix, so nala works again, and definitely other programs too!
Thanks for the notification. I'll take python-apt off "hold".