See the Security and Bug Fixes Section - Grub EFI Install Updates Fix Sticky


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SOLVED : Update returned some errors
#5
I have recently installed python3.9

I tried re-running update and it returns with the same error

Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 8, in <module>
    from CommandNotFound.db.creator import DbCreator
  File "/usr/lib/python3/dist-packages/CommandNotFound/db/creator.py", line 12, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Reading package lists...
E: Problem executing scripts APT::Update:Tongueost-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

I'd would be lying if I said I understood in detail the update process, but it looks like, for some
reason a python script, creator.py, is run at some point and in line 12 of that file, trys to  import
a module called apt_pkg which fails.

So I have to figure out what all this is.  :012:

Thanks for your help. I will report back. Currently doing tax returns so
it may be a couple of days.
Reply


Messages In This Thread
SOLVED : Update returned some errors - by noweare - 03-28-2022, 07:59 PM
Re: SOLVED : Update returned some errors - by noweare - 03-29-2022, 01:12 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)