Software - Support > Other

TRYING TO INSTALL BRAVE°

(1/1)

trinidad:
One of the browser updates (likely brave) is using a hook to the wrong version of python. "/usr/lib/cnf-update-db" is a python 3 script. I think jammy uses python 3.10 as default but that may have changed since its first release. Before messing with update-alternatives I would disable the brave ppa and maybe deadsnakes too and try running updates. Again the error is caused by a hook calling for a version of python that is not correctly enabled (linked).
Paste "/usr/lib/cnf-update-db" into google and read up on the problem.

TC 

stevef:
One (or more) of the system files that the update script needs may have been lost.

Do you have any system backups made with the 'System Restore Utility' (Timeshift) that were made before the problem started ?

If so, this should allow you to restore the system files to the previous working state.

F R G:

--- Quote from: stevef on March 14, 2023, 07:29:03 AM ---May be a problem with python loading a module which is very odd.
Was the system working and updating ok and then something changed ?
Can you explain what happened ?
Was it installing Brave ?

--- End quote ---

well what Im looking its that I cant install anything into my device now this error appair when I try to install some files from a packages soo maybe I need to reset my device any advice?? also this is the new error

===========================
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 the Software - Support - Updates section for assistance.

============ Log ===========

Obj:1 http://archive.canonical.com/ubuntu jammy InRelease
Obj:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Obj:3 http://repo.linuxliteos.com/linuxlite fluorite InRelease
Obj:4 https://deb.nodesource.com/node_18.x jammy InRelease
Des:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Obj:6 http://packages.microsoft.com/repos/code stable InRelease
Obj:7 https://deb.opera.com/opera-stable stable InRelease
Obj:8 https://brave-browser-apt-release.s3.brave.com stable InRelease
Des:9 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
Des:10 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Obj:11 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 3, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Descargados 336 kB en 2s (202 kB/s)
Leyendo lista de paquetes...
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


stevef:
May be a problem with python loading a module which is very odd.
Was the system working and updating ok and then something changed ?
Can you explain what happened ?
Was it installing Brave ?

F R G:
===========================
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 the Software - Support - Updates section for assistance.

============ Log ===========

Obj:1 http://repo.linuxliteos.com/linuxlite fluorite InRelease
Obj:2 http://us.archive.ubuntu.com/ubuntu jammy InRelease
Obj:3 http://archive.canonical.com/ubuntu jammy InRelease
Obj:4 http://packages.microsoft.com/repos/code stable InRelease
Des:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]
Obj:6 https://brave-browser-apt-release.s3.brave.com stable InRelease
Obj:7 http://security.ubuntu.com/ubuntu jammy-security InRelease
Obj:8 https://deb.opera.com/opera-stable stable InRelease
Obj:9 https://deb.nodesource.com/node_18.x jammy InRelease
Obj:10 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease
Des:11 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease [107 kB]
Traceback (most recent call last):
  File "/usr/lib/cnf-update-db", line 3, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
Descargados 226 kB en 15s (15.2 kB/s)
Leyendo lista de paquetes...
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

any adivice to solve this issue?! thanks...

Navigation

[0] Message Index

Go to full version