How to fix 'ModuleNotFoundError: No module named 'apt_pkg'?

前端 未结 4 1709
眼角桃花
眼角桃花 2021-02-05 10:11

I\'m running code sudo apt update and fetch error

ModuleNotFoundError: No module named \'apt_pkg\'.

Please, help me s

4条回答
  •  轮回少年
    2021-02-05 10:42

    Just reinstalled python3-apt and the error disappeared

    sudo apt remove python3-apt
    

    restart and then install,

    sudo apt install python3-apt
    

提交回复
热议问题