Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] Nala broken due to python-apt udpate  (Read 3565 times)

Offline eriefisher

  • User
  • Posts: 266
[EN] Nala broken due to python-apt udpate
« on: 2023/12/14, 13:43:54 »
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.
Code: [Select]
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
« Last Edit: 2023/12/14, 18:44:19 by hendrikL »

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 933
Re: Nala broken, due to python-apt update
« Reply #1 on: 2023/12/14, 13:57:39 »
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!
« Last Edit: 2023/12/14, 14:12:42 by hendrikL »

Offline eriefisher

  • User
  • Posts: 266
Re: Nala broken due to python-apt udpate
« Reply #2 on: 2023/12/14, 14:51:35 »
Apology not needed. The title should reflect the bug propery.

Looking at the logs it does confirm that a python update is the cause.
« Last Edit: 2023/12/14, 18:44:38 by hendrikL »

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 933
Re: Nala broken due to python-apt udpate
« Reply #3 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.

Offline Fellfrosch

  • User
  • Posts: 43
Re: Nala broken due to python-apt udpate
« Reply #4 on: 2023/12/15, 11:01:33 »
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.

Offline hendrikL

  • Administrator
  • User
  • *****
  • Gravatar
  • Posts: 933
Re: Nala broken due to python-apt udpate
« Reply #5 on: 2023/12/21, 21:53:41 »
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

Code: [Select]
apt policy python3-apt
python3-apt:
  Installed: 2.7.3
  Candidate: 2.7.3

 With the next mirror sync, it should be there.
« Last Edit: 2023/12/21, 21:56:59 by hendrikL »

Offline Pip

  • User
  • Posts: 164
Re: Nala broken due to python-apt udpate
« Reply #6 on: 2023/12/22, 07:51:32 »
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".