gpt4 book ai didi

linux - yum 安装失败并损坏了原始 yum

转载 作者:太空宇宙 更新时间:2023-11-04 04:14:06 26 4
gpt4 key购买 nike

我尝试使用命令 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>

因为我尝试重新安装yum,但是安装到一半就失败了,所以糟糕的是我破坏了系统中原来的yum。任何人都可以帮助我恢复 yum 或重新安装它,我将不胜感激。

谢谢!

最佳答案

如果你想卸载你可以执行 rpm -e yum

然后

安装它使用:

rpm -ivh yum-(版本).rpm

如果 yum 在本地安装中工作正常,但无法访问 Red Hat 网络,请验证是否安装了以下软件包。如果没有,请安装它们:

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

关于linux - yum 安装失败并损坏了原始 yum,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17665790/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com