python3.6 下提示No module named "apt_pkg"的解决方法

sudo apt install python3-apt

cd /usr/lib/python3/dist-packages

sudo cp apt_pkg.cpython-35m-x86_64-linux-gnu.so apt_pkg.cpython-36m-x86_64-linux-gnu.so

推荐阅读更多精彩内容