小编Phi*_*unt的帖子

如何使用 apt-get 在我的 Ubuntu 12.04 服务器上重新安装 python?

因为我完全搞砸了我的 python 安装,所以我手动删除了所有 python 文件,现在正在尝试重新安装它。

当我输入时apt-get install --reinstall python2.7,我收到此错误消息:

0 to upgrade, 0 to newly install, 1 reinstalled, 0 to remove and 0 not to upgrade.
3 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up python-minimal (2.7.3-0ubuntu2.2) ...
/var/lib/dpkg/info/python-minimal.postinst: 4: /var/lib/dpkg/info/python-minimal.postinst: python2.7: not found
dpkg: error processing python-minimal (--configure):
 subprocess installed post-installation script returned error exit status 127
Setting up python2.7 (2.7.3-0ubuntu3.4) ...
/var/lib/dpkg/info/python2.7.postinst: 6: /var/lib/dpkg/info/python2.7.postinst:     
 python2.7: …
Run Code Online (Sandbox Code Playgroud)

python apt

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

标签 统计

apt ×1

python ×1