Quantcast
Channel: Active questions tagged update-manager - Ask Ubuntu
Viewing all articles
Browse latest Browse all 224

ModuleNotFoundError: No module named 'apt_pkg' on Ubuntu 22.04

$
0
0

I currently using ubuntu 22.04, when I do 'sudo apt update', always appear error like this :

$ sudo apt update Hit:1 https://dl.google.com/linux/chrome/deb stable InReleaseHit:2 http://repo.mysql.com/apt/ubuntu jammy InRelease                         Hit:3 https://repo.protonvpn.com/debian stable InRelease                       Hit:4 http://id.archive.ubuntu.com/ubuntu jammy InRelease                      Hit:5 http://id.archive.ubuntu.com/ubuntu jammy-updates InRelease              Hit:6 http://id.archive.ubuntu.com/ubuntu jammy-backports InRelease            Hit:7 http://security.ubuntu.com/ubuntu jammy-security InRelease               Hit:8 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease   Traceback (most recent call last):  File "/usr/lib/cnf-update-db", line 3, in     import apt_pkgModuleNotFoundError: No module named 'apt_pkg'Reading package lists... DoneE: 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

Viewing all articles
Browse latest Browse all 224

Trending Articles