![]() |
SOLVED : Update returned some errors - Printable Version +- Linux Lite Forums (https://www.linuxliteos.com/forums) +-- Forum: Software - Support (https://www.linuxliteos.com/forums/forumdisplay.php?fid=5) +--- Forum: Updates (https://www.linuxliteos.com/forums/forumdisplay.php?fid=46) +--- Thread: SOLVED : Update returned some errors (/showthread.php?tid=8210) |
SOLVED : Update returned some errors - noweare - 03-28-2022 Hello, I am getting an error during updating. If any of you all could shed some light on it that would be great. Thanks Joe =========================== Install Updates Error log =========================== Install Updates could not fetch the package cache information lists. Go to https://www.linuxliteos.com/forums/ and paste the log below into a new or existing thread for assistance. ============ Log =========== Hit:1 https://dl.google.com/linux/chrome/deb stable InRelease Hit:2 http://ppa.launchpad.net/deadsnakes/ppa/ubuntu focal InRelease Hit:3 http://security.ubuntu.com/ubuntu focal-security InRelease Hit:4 http://archive.canonical.com/ubuntu focal InRelease Hit:5 http://repo.linuxliteos.com/linuxlite emerald InRelease Hit:6 http://ppa.launchpad.net/kicad/kicad-6.0-releases/ubuntu focal InRelease Hit:7 http://ppa.launchpad.net/mosquitto-dev/mosquitto-ppa/ubuntu focal InRelease Hit:8 http://us.archive.ubuntu.com/ubuntu focal InRelease Hit:9 http://us.archive.ubuntu.com/ubuntu focal-updates InRelease Hit:10 http://us.archive.ubuntu.com/ubuntu focal-backports InRelease Hit:11 http://packages.microsoft.com/repos/code stable InRelease 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: ![]() E: Sub-process returned an error code Re: SOLVED : Update returned some errors - firenice03 - 03-28-2022 [member=9459]noweare[/member] Give it another go.. Mine all passed - perhaps something temporary Code: Reading package lists... Re: SOLVED : Update returned some errors - noweare - 03-29-2022 I think I might have something wrong with my python package. I don't understand what you mean by saying that it worked for you so it should work for me. Re: SOLVED : Update returned some errors - firenice03 - 03-29-2022 [member=9459]noweare[/member] I am assuming you haven't made any changes for python and are running the updates as normal. As it was several hours later when I ran and all my default python passed via the same lib files - my hope was something temporary with the repo itself. Have you tried rerunning by chance? If it still errors there may be something underlying.. . If you have updated or installed a specific version of python, perhaps reinstalling.. Code: sudo apt install --reinstall pythonXXXX Or - if it does reoccur - you can try... https://stackoverflow.com/questions/56218562/how-to-fix-modulenotfounderror-no-module-named-apt-pkg https://askubuntu.com/questions/1242009/modulenotfounderror-no-module-named-apt-pkg-appears-in-various-commands Re: SOLVED : Update returned some errors - noweare - 03-29-2022 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: ![]() 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. Re: SOLVED : Update returned some errors - firenice03 - 03-29-2022 [member=9459]noweare[/member] I would start with the reinstall of the 3.9 (see command in previous) If still fails - then those 2 links suggest an uninstall/clean/reinstall (short and skinny) - you'll want to change commands according to your version.. Re: SOLVED : Update returned some errors - Moltke - 03-29-2022 Read here https://stackoverflow.com/questions/13708180/python-dev-installation-error-importerror-no-module-named-apt-pkg There are two solutions proposed there: 1. Create a symlink: Code: cd /usr/lib/python3/dist-packages 2. Install pkg python-apt: Code: sudo apt install pythin-apt Re: SOLVED : Update returned some errors - noweare - 03-30-2022 Hello Molte, I came back to post the solution and found your response which is what i found and yes it also worked for me too. ! (The first one) Thanks And thank you too, firenice03 |