在我们的一台 rhel 7.6 服务器上进行 yum 更新期间,我们收到以下错误
--> Finished Dependency Resolution
Error: Package: libtirpc-devel-0.2.4-0.6.el7.x86_64 (installed)
Requires: libtirpc = 0.2.4-0.6.el7
Removing: libtirpc-0.2.4-0.6.el7.x86_64 (@anaconda/7.2)
libtirpc = 0.2.4-0.6.el7
Updated By: libtirpc-0.2.4-0.15.el7.x86_64 (uaans75-repo)
libtirpc = 0.2.4-0.15.el7
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
这是这个问题的两个解决方案
第一个解决方案是将有问题的 rpm 排除为
yum update --exclude=libtirpc --exclude=rpcbind --exclude=nfs-utils
或使用跳过破碎的
yum update --skip-broken
关于第一个建议,我认为我们可以在 yum 更新后安装非更新 rpm
所以我的问题是
什么是首选解决方案?(排除 rpm 或使用跳过损坏?)
--skip-broken将跳过所有未解决的依赖项。同时--exclude将排除特定包的更新。这里的问题是你没有正确的依赖包 libtirpc-devel。
尝试找到正确的存储库。
但是如果你不费心安装这个包,我建议使用--exclude,只要你能控制你在做什么并避免包冲突。