如何修复我的 RHEL 5.3 机器上的 yum 错误

如何修复我的 RHEL 5.3 机器上的 yum 错误

当我尝试在 RHEL 5.3 Linux 机器上安装任何软件包时,都会出现错误。我之前使用 yum 安装了 mc(午夜指挥官),但最近它开始失败。

我该如何修复它?

谢谢你,

我在下面插入了一个会话日志。

[root@anjanb ~]# yum install multitail
Repository engineering-update is listed more than once in the configuration
Repository engineering-install is listed more than once in the configuration
Repository emergency-update is listed more than once in the configuration
Repository emergency-install is listed more than once in the configuration
emergency-install                                        |  951 B     00:00
primary.xml.gz                                           |  215 B     00:00
emergency-desktop-update                                 |  951 B     00:00
primary.xml.gz                                           |  222 B     00:00
emergency-desktop-install                                |  951 B     00:00
primary.xml.gz                                           |  223 B     00:00
emergency-engineering-update                             |  951 B     00:00
primary.xml.gz                                           |  226 B     00:00
emergency-engineering-install                            |  951 B     00:00
primary.xml.gz                                           |  227 B     00:00
engineering-install                                      |  951 B     00:00
primary.xml.gz                                           |  157 B     00:00
engineering-update                                       | 1.1 kB     00:00
primary.xml.gz                                           | 6.3 kB     00:00
engineering-update                                             41/41
desktop-install                                          |  951 B     00:00
primary.xml.gz                                           |  157 B     00:00
workstation                                              | 1.3 kB     00:00
primary.xml.gz                                           | 265 kB     00:00
workstation                                                    1205/1205
base                                                     | 1.3 kB     00:00
primary.xml.gz                                           | 614 kB     00:00
base                                                           1953/1953
desktop-update                                           | 1.1 kB     00:00
primary.xml.gz                                           |  36 kB     00:00
desktop-update                                                 142/142
cisco-linux-common                                       | 1.1 kB     00:00
primary.xml.gz                                           | 5.3 kB     00:00
cisco-linux-common                                             18/18
vt                                                       | 1.3 kB     00:00
primary.xml.gz                                           | 8.8 kB     00:00
vt                                                             40/40
emergency-update                                         | 1.1 kB     00:00
primary.xml.gz                                           |  82 kB     00:00
emergency-update                                               190/190
cisco-linux-desktop                                      | 1.1 kB     00:00
primary.xml.gz                                           |  18 kB     00:00
cisco-linux-desktop                                            62/62
adobe-linux-i386                                         |  951 B     00:00
primary.xml.gz                                           |  12 kB     00:00
http://linuxdownload.adobe.com/linux/i386/repodata/primary.xml.gz: [Errno -1] Me                                           tadata file does not match checksum
Trying other mirror.
primary.xml.gz                                           |  12 kB     00:00
http://linuxdownload.adobe.com/linux/i386/repodata/primary.xml.gz: [Errno -1] Me                                           tadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from adobe-linux-i386: [Errno 256] No mo                                           re mirrors to try.
[root@anjanb ~]#
[root@anjanb ~]#
[root@anjanb ~]# yum install multitail
Repository engineering-update is listed more than once in the configuration
Repository engineering-install is listed more than once in the configuration
Repository emergency-update is listed more than once in the configuration
Repository emergency-install is listed more than once in the configuration
primary.xml.gz                                                                                      |  12 kB     00:00
http://linuxdownload.adobe.com/linux/i386/repodata/primary.xml.gz: [Errno -1] Metadata file does not match checksum
Trying other mirror.
Error: failure: repodata/primary.xml.gz from adobe-linux-i386: [Errno 256] No more mirrors to try.
[root@anjanb ~]#

答案1

这实际上无法修复,除非是网络问题(尝试在浏览器中打开 URL)。传递--disablerepo=adobe-linux-i386给 yum 以暂时禁用 repo。

答案2

以下命令行可能会有帮助:

yum clean all && yum makecache && yum update

答案3

转到 /eyc/yum.repos.d,检查其中是否没有重复项(输出显示了该方向的投诉)。查看不同的存储库,并确保您确实需要它们(“yum list mounted”会告诉您每个包的来源)。

相关内容