我正在CentOS 5.5上安装YUM,并按照以下说明操作:
http://wiki.openvz.org/Install_yum
我的系统是x86_64。
我正在执行以下命令:
rpm -Uvh http://mirror.centos.org/centos-5/5.5/os/x86_64/CentOS/rpm-python-4.4.2.3-18.el5.x86_64.rpm
但是,然后我得到以下错误:
error: Failed dependencies:
popt = 1.10.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.x86_64
rpm = 4.4.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.x86_64
rpm-libs = 4.4.2.3-18.el5 is needed by rpm-python-4.4.2.3-18.el5.x86_64
任何想法如何解决这个问题?
做'干净'给出方法错误
There was a problem importing one of the Python modules required to run yum.
The error leading to this problem was: No module named rpm
Please install a package which provides this module,
or verify that the module is installed correctly.
It's possible that the above module doesn't match the current version of Python,
which is: 2.4.3 (#1, Sep 3 2009, 15:37:37)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)]
更新2
运行rpm -q rpm rpm-libs popt
,它给了我这个:
RPM-4.4.2.3-20.el5_5.1
RPM-库-4.4.2.3-20.el5_5.1
POPT-1.10.2.3-20.el5_5.1
你能确认列出的这些依赖关系是否已经安装(使用这些版本)? 通过提供以下输出:
rpm -q rpm rpm-libs popt
我相信你会得到依赖性错误,因为版本不匹配(你已经安装了这些RPM的旧版本)。 尝试使用相同的rpm命令更新这三个RPM并重试。
可以试试yum clean all,然后尝试安装上面的rpm
为什么没有安装yum的CentOS-5.5机器?
如果你按照这里的说明:
http://wiki.centos.org/TipsAndTricks/BrokenVserver
那么你应该可以得到一个工作的百胜餐饮。
可悲的事实是,像我一样,你购买了一个破碎的服务器。 http://wiki.centos.org/TipsAndTricks/BrokenVserver
您将不得不select支付额外的费用,以便让供应商为您“解锁”,或者像我一样,花费设置费用,并find另一个VPS托pipe服务提供商。 Linode强烈推荐。