小编poo*_*994的帖子

删除了python二进制文件,使用apt-get无法恢复,我该怎么办?

好。是的。想要重新开始,因为我有依赖性混淆,所以我运行了“whereis python”并从字面上删除了所有出现的文件和目录。然后当我去运行 apt-get install python 时,我当然会遇到很多错误。有没有办法在 ubuntu 上重新安装 python 而不只是进行干净的擦拭?

这是尝试安装 python 二进制文件的输出:

root@ubuntu14-server:/home/kpoole# apt-get install python
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python is already the newest version.
The following packages were automatically installed and are no longer required:
libexpat1-dev libpython-dev libpython2.7-dev
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
15 not fully installed or removed.
After this operation, 0 B of additional disk …
Run Code Online (Sandbox Code Playgroud)

python apt dpkg

13
推荐指数
1
解决办法
3万
查看次数

标签 统计

apt ×1

dpkg ×1

python ×1