1.删除

sudo apt-get remove --purge python-apt

2.重装

sudo apt-get install -f -y python-apt

3.进去

cd /usr/lib/python3/dist-packages/

4.查看

ll | grep apt_pkg

5.修改

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