gpt4 book ai didi

linux - Yum 更新与 Perl 包有问题

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

我在 aws 上运行 RedHat Linux。当我运行 yum update 时,它​​以以下问题结束。我该如何解决这个问题?

--> Finished Dependency Resolution
Error: Package: 4:perl-libs-5.10.1-127.el6.x86_64 (@CentOS/6.3)
Requires: perl = 4:5.10.1-127.el6
Removing: 4:perl-5.10.1-127.el6.x86_64 (@CentOS/6.3)
perl = 4:5.10.1-127.el6
Updated By: 4:perl-5.10.1-136.el6_6.1.x86_64 (updates)
perl = 4:5.10.1-136.el6_6.1
Available: 4:perl-5.10.1-136.el6.x86_64 (base)
perl = 4:5.10.1-136.el6
You could try using --skip-broken to work around the problem
** Found 6 pre-existing rpmdb problem(s), 'yum check' output follows:
db4-4.7.25-18.el6_4.x86_64 is a duplicate with db4-4.7.25-17.el6.x86_64
1:perl-Module-Pluggable-3.90-136.el6_6.1.x86_64 has missing requires of perl = ('4', '5.10.1', '136.el6_6.1')
1:perl-Pod-Escapes-1.04-136.el6_6.1.x86_64 has missing requires of perl = ('4', '5.10.1', '136.el6_6.1')
4:perl-libs-5.10.1-136.el6_6.1.x86_64 is a duplicate with 4:perl-libs-5.10.1-127.el6.x86_64
4:perl-libs-5.10.1-136.el6_6.1.x86_64 has missing requires of perl = ('4', '5.10.1', '136.el6_6.1')
3:perl-version-0.77-136.el6_6.1.x86_64 has missing requires of perl = ('4', '5.10.1', '136.el6_6.1')

最佳答案

您说您正在运行 Red Hat,但您的 yum 显示您有 CentOS 存储库。请先检查一下。

如果你安装了 yum-plugin-priorities(你可以检查它)

[root ~]# yum repolist
Loaded plugins: downloadonly, fastestmirror, keys, list-data, priorities, replace, versionlock
...

你需要添加

priority=1

到/etc/yum.repos.d/Centos-Base 中的 [base] 和 [updates],所以它看起来像这样:

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
priority=1

然后运行(缓存清理可能不是必需的,但这是一个很好的措施:

yum clean all
yum update

我遇到这个问题有一段时间了,这就是解决方案:

--> Finished Dependency Resolution
Error: Package: 4:perl-libs-5.10.1-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
Error: Package: 4:perl-Time-HiRes-1.9721-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
Error: Package: 1:perl-Digest-SHA-5.47-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
Error: Package: 1:perl-ExtUtils-ParseXS-2.2003.0-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
Error: Package: 1:perl-Compress-Raw-Zlib-2.021-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
Error: Package: 4:perl-devel-5.10.1-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
Error: Package: 1:perl-Package-Constants-0.02-136.el6_6.1.x86_64 (updates)
Requires: perl = 4:5.10.1-136.el6_6.1
Installed: 4:perl-5.10.1-136.el6.x86_64 (@CentOS-6 - Base/6.6)
perl = 4:5.10.1-136.el6
...

关于linux - Yum 更新与 Perl 包有问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28019533/

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