当我试图更新我的CentOS系统上的软件包时,我可能用完了内存。 现在当我尝试运行更新它卡住了:
Error: Package: glibc-devel-2.17-157.el7_3.5.x86_64 (@updates) Requires: glibc-headers = 2.17-157.el7_3.5 Removing: glibc-headers-2.17-157.el7_3.5.x86_64 (@updates) glibc-headers = 2.17-157.el7_3.5 Updated By: glibc-headers-2.17-196.el7.x86_64 (base) glibc-headers = 2.17-196.el7 You could try using --skip-broken to work around the problem ** Found 75 pre-existing rpmdb problem(s), 'yum check' output follows: audit-2.6.5-3.el7_3.1.x86_64 has missing requires of audit-libs(x86-64) = ('0', '2.6.5', '3.el7_3.1')
看起来有很多重复的包。 我试图用yum history undo 48恢复更新,但是它提出了大量的消息“无法降级:this-or-that-package.x86-64”。 所以这没有帮助。 我也试过:
package-cleanup --cleandupes
它要求删除50包,但结果是:
ERROR with transaction check vs depsolve: systemd = 219-42.el7_4.1 is needed by (installed) systemd-sysv-219-42.el7_4.1.x86_64 systemd = 219-42.el7_4.1 is needed by (installed) systemd-sysv-219-42.el7_4.1.x86_64 openssh = 7.4p1-12.el7_4 is needed by (installed) openssh-clients-7.4p1-12.el7_4.x86_64 openssh = 7.4p1-12.el7_4 is needed by (installed) openssh-clients-7.4p1-12.el7_4.x86_64 iptables = 1.4.21-18.0.1.el7.centos is needed by (installed) iptables-services-1.4.21-18.0.1.el7.centos.x86_64 Complete! (1, [])
我不知道如何解决这个问题。 最重要的是停机时间是有限的,我可以定期再次安装更新(因为它是作为服务器使用)。 我希望有人可以build议一些步骤来解决这些依赖性问题。
uname -a Linux host.example.com 3.10.0-123.8.1.el7.x86_64 #1 SMP Mon Sep 22 19:06:58 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux