且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

意外apt-get删除python后如何恢复

更新时间:2022-05-06 23:21:36

哈利路亚.

sudo apt-get install --reinstall python python-chardet python-colorama python-distlib python-django python-django-tables2 python-six python-html5lib python-lxml python-minimal python-pkg-resources python-setuptools python-urllib3 python-requests python-pip python-virtualenv

sudo apt-get install --reinstall python-dnspython

sudo apt autoremove

sudo apt-get -f install

在互联网最深处进行了一整天的冒险之后,这些命令为我工作了.

After a whole day of adventures in the deepest pits of internet, these commands worked for me.

python-dnspython和samba仍然不见了,--reinstall python-dnspython也将samba插入了. Autoremove删除了不必要的依赖项.

python-dnspython and samba was still missing after the first command, --reinstall python-dnspython pulled samba in as well. Autoremove removed the needless dependencies.