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 InRelease Hit: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_pkg ModuleNotFoundError: No module named 'apt_pkg' Reading package lists... Done 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