Traceback (most recent call last):
File "/usr/lib/command-not-found", line 28, in <module>
from CommandNotFound import CommandNotFound
File "/usr/lib/python3/dist-packages/CommandNotFound/CommandNotFound.py", line 19, in <module>
from CommandNotFound.db.db import SqliteDatabase
File "/usr/lib/python3/dist-packages/CommandNotFound/db/db.py", line 5, in <module>
import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'
When you see this error after upgrading/installing python3.10 on Ubuntu, do the following:
cd /usr/lib/python3/dist-packages
cp apt_pkg.cpython-38-x86_64-linux-gnu.so apt_pkg.so
No comments :
Post a Comment