我有一个通过SSH连接的基于Centos 6的VPS。最近想安装python 2.7.2,我勇敢地跑了:
yum remove python
这显然删除了yum本身正在编写或依赖于python。
现在我不知道该怎么办并使事情变得更糟,我是一个完整的Linux新手(命令行或其他方式)。
运行rpm -iv http://centos.mirrors.hoobly.com/6.0/os/x86_64/Packages/python-2.6.5-3.el6.x86_64.rpm
给出:
Retrieving http://centos.mirrors.hoobly.com/6.0/os/x86_64/Packages/python-2.6.5-3.el6.x86_64.rpm
Preparing packages for installation...
package python-2.6.5-3.el6.x86_64 is already installed
以及它的x86_64服务器,因为“ uname -a”没有问题,它给出了:
Linux xxxxxx 2.6.32-71.29.1.el6.x86_64 #1 SMP Mon Jun 27 19:49:27 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
还有一件事:ls /usr/bin/pyth* -la
给出:
lrwxrwxrwx 1 root root 6 Dec 4 20:31 python2 -> python
-rwxr-xr-x 2 root root 4864 Nov 12 2010 python2.6
-rwxr-xr-x 2 root root 4864 Nov 12 2010 python;4edbd894
谢谢,我今天也看到了同样的事情。保持冷静,永不运行yum擦除python:keepcalmandcarryon.com/creator/?shortcode=qCsMlpyc
—
阿伦·