全新安装RHEL 6.1 – yum无法更新

尝试使用yum更新某些RHEL 6.1 64位服务器时遇到一些错误。 我尝试了全新安装的操作系统,然后运行yum -y升级,并收到了我在生产服务器上遇到的同样的错误。

我试过yum -y upgrade --skip-brokenrpm -Va --nofiles --nodigest ,都没有帮助。

我想这个问题可能是我们在卫星服务器上丢失了一个软件包,但是我不确定。 任何帮助将不胜感激。

 --> Processing Dependency: /bin/sed for package: redhat-lsb-4.0-3.el6.x86_64 --> Processing Dependency: /bin/sed for package: policycoreutils-2.0.83-19.8.el6_0.x86_64 --> Processing Dependency: /bin/sed for package: groff-1.18.1.4-21.el6.x86_64 --> Processing Dependency: /bin/sed for package: initscripts-9.03.23-1.el6.x86_64 --> Finished Dependency Resolution Skip-broken could not solve problems Error: Package: initscripts-9.03.23-1.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Requires: /bin/sed Removing: sed-4.2.1-5.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Not found Updated By: sed-4.2.1-7.el6.x86_64 (rhel-x86_64-server-fastrack-6) Not found Error: Package: redhat-lsb-4.0-3.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Requires: /bin/sed Removing: sed-4.2.1-5.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Not found Updated By: sed-4.2.1-7.el6.x86_64 (rhel-x86_64-server-fastrack-6) Not found Error: Package: groff-1.18.1.4-21.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Requires: /bin/sed Removing: sed-4.2.1-5.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Not found Updated By: sed-4.2.1-7.el6.x86_64 (rhel-x86_64-server-fastrack-6) Not found Error: Package: policycoreutils-2.0.83-19.8.el6_0.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Requires: /bin/sed Removing: sed-4.2.1-5.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Not found Updated By: sed-4.2.1-7.el6.x86_64 (rhel-x86_64-server-fastrack-6) Not found You could try running: rpm -Va --nofiles --nodigest 

我遇到了同样的问题,并能够通过手动更新sed软件包来解决:

 rpm -Uvh ftp://ftp.ntua.gr/pub/linux/scientificlinux/6.1/x86_64/updates/fastbugs/sed-4.2.1-7.el6.x86_64.rpm 

安装之后,我能够运行yum -y update而没有任何问题。

这有点奇怪,输出说:

 Error: Package: initscripts-9.03.23-1.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Requires: /bin/sed Removing: sed-4.2.1-5.el6.x86_64 (@anaconda-RedHatEnterpriseLinux-201105101844.x86_64/6.1) Not found Updated By: sed-4.2.1-7.el6.x86_64 (rhel-x86_64-server-fastrack-6) Not found 

…这意味着yum想要从sed-4.2.1-5升级到sed-4.2.1-7,但它认为如果这样做,那么较新的包不提供/ bin / sed …所以一堆东西都失败了,因为它们完全依赖于这个path。

这可能是事实,但是对于Red Hat而言,这似乎是一个非常奇怪的错误。

总的来说,我从来没有需要 – 为RHEL跳过…所以我有点怀疑,如果你有一些奇怪的回购。 设置(即fastrack,但没有别的)。

我会运行“yum repolist”,看看它说了什么,然后放下–skip-broken,看看有什么说的。

跑:

 yum search sed yum update -y *sed package from search* 

确保在/etc/yum.repos.d/reponame.repo中启用了更新回购。