简体   繁体   English

yum安装失败并损坏了原始的yum

[英]yum install failed and corrupted the original yum

I was trying to install yum-3.4.3 using commands make && make install, but it failed with showing the following log: 我试图使用命令make && make install安装yum-3.4.3,但是由于显示以下日志而失败:

infra-bld4:/tmp/hxu2/yum-3.4.3> make
for d in rpmUtils yum etc docs po; do make PYTHON=python -C $d; [ $? = 0 ] || exit 1 ; done
make-3.79.1-p7[1]: Entering directory `/tmp/hxu2/yum-3.4.3/rpmUtils'
echo "Nothing to do"
Nothing to do
make-3.79.1-p7[1]: Leaving directory `/tmp/hxu2/yum-3.4.3/rpmUtils'
make-3.79.1-p7[1]: Entering directory `/tmp/hxu2/yum-3.4.3/yum'
echo "Nothing to do"
Nothing to do
make-3.79.1-p7[1]: Leaving directory `/tmp/hxu2/yum-3.4.3/yum'
make-3.79.1-p7[1]: Entering directory `/tmp/hxu2/yum-3.4.3/etc'
echo "Nothing to do"
Nothing to do
make-3.79.1-p7[1]: Leaving directory `/tmp/hxu2/yum-3.4.3/etc'
make-3.79.1-p7[1]: Entering directory `/tmp/hxu2/yum-3.4.3/docs'
echo "Nothing to do"
Nothing to do
make-3.79.1-p7[1]: Leaving directory `/tmp/hxu2/yum-3.4.3/docs'
make-3.79.1-p7[1]: Entering directory `/tmp/hxu2/yum-3.4.3/po'
msgfmt -o ca.mo ca.po -c
msgfmt: ca.po: field `Language-Team' still has initial default value
msgfmt: found 1 fatal error
make-3.79.1-p7[1]: *** [ca.mo] Error 1
make-3.79.1-p7[1]: Leaving directory `/tmp/hxu2/yum-3.4.3/po'
make-3.79.1-p7: *** [subdirs] Error 1
infra-bld4:/tmp/hxu2/yum-3.4.3> 

Because I tried to re-install the yum, but the installation failed half way, so bad thing is that I corrupted the original yum in the system. 因为我尝试重新安装yum,但是安装失败了一半,所以不好的事情是我损坏了系统中的原始yum。 Anybody can help me recover the yum or re-install it will be highly appreciated. 任何人都可以帮助我恢复yum或重新安装它,将不胜感激。

Thanks! 谢谢!

if you want to uninstall you can do rpm -e yum 如果要卸载,可以执行rpm -e yum

then 然后

Install it using: 使用以下方法安装:

rpm -ivh yum-(version).rpm rpm -ivh yum-(version).rpm

If yum is working fine for local installations, but it's not able to access Red Hat Network, verify if the following packages are installed. 如果yum适用于本地安装,但无法访问Red Hat Network,请验证是否安装了以下软件包。 If not, install them: 如果没有,请安装它们:

rhnsd
yum-rhn-plugin
yum-security
rhn-check
rhn-setup
rhn-setup-gnome
yum-downloadonly
rhn-client-tools
rhn-virtualization-common
rhn-virtualization-host
pirut
yum-updatesd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM