刚装的Redhat9,没有选择任何安装包。
在安装YUM时附属包出错:
[root@net root]# rpm -q yum
package yum is not installed
[root@net root]# rpm -ivh yum-2.0.4-1.
yum-2.0.4-1.noarch.rpm yum-2.0.4-1.rh.fr.i386.rpm
[root@net root]# rpm -ivh yum-2.0.4-1.rh.fr.i386.rpm
warning: yum-2.0.4-1.rh.fr.i386.rpm: V3 DSA signature: NOKEY, key ID e42d547b
error: Failed dependencies:
libxml2-python is needed by yum-2.0.4-1.rh.fr
[root@net root]# rpm -ivh yum-2.0.4-1.noarch.rpm
error: Failed dependencies:
libxml2-python is needed by yum-2.0.4-1
解决办法:
先安装libxml2-python即可解决。
rpm -ivh libxml2-python-2.6.8-1.i386.rh9.rpm
rpm -ivh yum-2.0.4-1.rh.fr.i386.rpm
注意:rpm -ivh yum-2.0.4-1.rh.fr.i386.rpm --nodeps --force可以安装成功,但是解决不了yum的问题,yum install gcc会报错。
阅读(6943) | 评论(0) | 转发(0) |