FAQs
-
Symptom
The message "ImportError: No module named apt_pkg" is displayed when an unidentifiable command is executed on the Linux server.
-
Possible Causes
There is a compatibility issue of python3-apt.
-
Solution
Reinstall python3-apt.
sudo apt-get remove python3-apt sudo apt-get install python3-apt