You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



SOLVED : Update returned some errors

Author (Read 2361 times)

0 Members and 1 Guest are viewing this topic.

Re: SOLVED : Update returned some errors
« Reply #8 on: March 29, 2022, 10:01:40 PM »
 

noweare

  • New to Forums
  • *
  • 28
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel Celeron CPU @ 2.4GHz 1 processor, 2 cores

  • MEMORY: 4Gb

  • VIDEO CARD: 1440 x 900

  • Kernel: 4.x
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
 

Re: SOLVED : Update returned some errors
« Reply #7 on: March 29, 2022, 04:48:27 PM »
 

Moltke

  • Platinum Level Poster
  • **********
  • 1134
    Posts
  • Reputation: 126
  • Linux Lite Member
    • View Profile

  • CPU: amd athlon 64 x2

  • MEMORY: 4Gb

  • VIDEO CARD: amd radeon hd 6750

  • Kernel: 5.x
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: [Select]
cd /usr/lib/python3/dist-packages
sudo ln -s apt_pkg.cpython-{your-version-number}-x86_64-linux-gnu.so apt_pkg.so
Replace {your-version-number} appropriately.
2. Install pkg python-apt:
Code: [Select]
sudo apt install pythin-aptAs far as I read, the solution one seemed to work for most people there. The second one, not sure. I'd create a snapshot of the system before atempting to do any of those. Better safe than sorry.  :55:
Without each others help there ain't no hope for us :)
Need a translation service? https://www.deepl.com/es/translator
 

Re: SOLVED : Update returned some errors
« Reply #6 on: March 29, 2022, 10:24:04 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
@noweare

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..
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: SOLVED : Update returned some errors
« Reply #5 on: March 29, 2022, 09:12:32 AM »
 

noweare

  • New to Forums
  • *
  • 28
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel Celeron CPU @ 2.4GHz 1 processor, 2 cores

  • MEMORY: 4Gb

  • VIDEO CARD: 1440 x 900

  • Kernel: 4.x
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::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

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
« Reply #4 on: March 29, 2022, 08:27:24 AM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
@noweare
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: [Select]
sudo apt install --reinstall pythonXXXXReplace XXX with your version...


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



LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

Re: SOLVED : Update returned some errors
« Reply #3 on: March 28, 2022, 10:14:51 PM »
 

noweare

  • New to Forums
  • *
  • 28
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel Celeron CPU @ 2.4GHz 1 processor, 2 cores

  • MEMORY: 4Gb

  • VIDEO CARD: 1440 x 900

  • Kernel: 4.x
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
« Reply #2 on: March 28, 2022, 07:53:23 PM »
 

firenice03

  • Rockin' the FREE World
  • Global Moderator
  • Platinum Level Poster
  • *****
  • 1848
    Posts
  • Reputation: 284
  • Linux Lite Member
    • View Profile

  • CPU: AMD E2//Atom X5//AMD Phenom II X2

  • MEMORY: 4Gb

  • VIDEO CARD: AMD Mullin Radeon R2//Intel//AMD/ATI RS880

  • Kernel: 5.x
@noweare
 
Give it another go..
Mine all passed - perhaps something temporary




Code: [Select]

Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
The following packages will be upgraded:
  libpython3.8 libpython3.8-dev libpython3.8-minimal libpython3.8-stdlib
  python3.8 python3.8-dev python3.8-minimal
7 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 10.8 MB of archives.
After this operation, 4,096 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-minimal amd64 3.8.10-0ubuntu1~20.04.4 [717 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-minimal amd64 3.8.10-0ubuntu1~20.04.4 [1,899 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-stdlib amd64 3.8.10-0ubuntu1~20.04.4 [1,675 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8 amd64 3.8.10-0ubuntu1~20.04.4 [387 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8 amd64 3.8.10-0ubuntu1~20.04.4 [1,625 kB]
Get:6 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 libpython3.8-dev amd64 3.8.10-0ubuntu1~20.04.4 [3,952 kB]
Get:7 http://us.archive.ubuntu.com/ubuntu focal-updates/main amd64 python3.8-dev amd64 3.8.10-0ubuntu1~20.04.4 [514 kB]
Fetched 10.8 MB in 10s (1,072 kB/s)
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
....
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../libpython3.8-minimal_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up libpython3.8-minimal:amd64 (3.8.10-0ubuntu1~20.04.4) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
...
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../python3.8-minimal_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking python3.8-minimal (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up python3.8-minimal (3.8.10-0ubuntu1~20.04.4) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
....
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../libpython3.8-stdlib_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up libpython3.8-stdlib:amd64 (3.8.10-0ubuntu1~20.04.4) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
...
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../python3.8_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking python3.8 (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up python3.8 (3.8.10-0ubuntu1~20.04.4) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
...
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../libpython3.8_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up libpython3.8:amd64 (3.8.10-0ubuntu1~20.04.4) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
....
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../libpython3.8-dev_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up libpython3.8-dev:amd64 (3.8.10-0ubuntu1~20.04.4) ...
(Reading database ...
(Reading database ... 5%
(Reading database ... 10%
...
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 356889 files and directories currently installed.)
Preparing to unpack .../python3.8-dev_3.8.10-0ubuntu1~20.04.4_amd64.deb ...
Unpacking python3.8-dev (3.8.10-0ubuntu1~20.04.4) over (3.8.10-0ubuntu1~20.04.2) ...
Setting up python3.8-dev (3.8.10-0ubuntu1~20.04.4) ...
Processing triggers for mime-support (3.64ubuntu1) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu9.7) ...
Processing triggers for man-db (2.9.1-1) ...
Processing triggers for desktop-file-utils (0.24-1ubuntu3) ...
LL4.8 UEFI 64 bit ASUS E402W - AMD E2 (Quad) 1.5Ghz  - 4GB - AMD Mullins Radeon R2
LL5.8 UEFI 64 bit Test UEFI Kangaroo (Mobile Desktop) - Atom X5-Z8500 1.44Ghz - 2GB - Intel HD Graphics
LL4.8 64 bit HP 6005- AMD Phenom II X2 - 8GB - AMD/ATI RS880 (HD4200)
LL3.8 32 bit Dell Inspiron Mini - Atom N270 1.6Ghz - 1GB - Intel Mobile 945GSE Express  -- Shelved
BACK LL5.8 64 bit Dell Optiplex 160 (Thin) - Atom 230 1.6Ghz - 4GB-SiS 771/671 PCIE VGA - Print Server
Running Linux Lite since LL2.2
 

SOLVED : Update returned some errors
« Reply #1 on: March 28, 2022, 03:59:26 PM »
 

noweare

  • New to Forums
  • *
  • 28
    Posts
  • Reputation: 0
  • Linux Lite Member
    • View Profile

  • CPU: Intel Celeron CPU @ 2.4GHz 1 processor, 2 cores

  • MEMORY: 4Gb

  • VIDEO CARD: 1440 x 900

  • Kernel: 4.x
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::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
« Last Edit: September 27, 2022, 11:11:52 PM by firenice03 »
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section