Sorry for cross posting folks, but I'm a bit desperate and the Centos mailing list doesn't seem to like me at the moment.
All of this is on a Centos 7 system, but I'm hoping someone here can help
Questions
1) Any ideas why my yum runs keep hanging, and what I can do to fix it? 2) How do I go about fixing the problems listed above? 3) What do I need to do to get my server back in a safe, consistant state?
Details:
My live mail server was due an update so I ran
yum update
All seemed file so I told it to proceed. HOwever it then hung for over 30 minutes.
I stopped the update and tried again. It complained about problems with the update, so I tried
yum --skip-broken -y update
which then hung at a different place. After some Googling I tried
yum-complete-transaction
and
package-cleanup --cleandupes
both of which failed. I then using my "Microsoft" head I thought I'd try rebooting to see if that fixes it. This of course was a big mistake as my server now crashes on bootup.
I have managed to get it back up and running by selecting a version of the kernel that is 3 versions old.
I have now tried
yum history yum history remove 115 (which failed) package-cleanup --cleandupes (which failed) yum-complete-transaction (which failed) yum-complete-transaction --cleanup-only (which worked)
followed by
[root@ollie2 /]# package-cleanup --problems Loaded plugins: fastestmirror, langpacks Package 1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 has installed conflicts NetworkManager-libnm < ('1', '1.10.2', '14.el7_5'): 1:NetworkManager-libnm-1.8.0-11.el7_4.x86_64 Package avahi-glib-0.6.31-19.el7.x86_64 has installed conflicts avahi < ('0', '0.6.31', '19.el7'): avahi-0.6.31-17.el7.x86_64 Package ipa-common-4.5.0-22.el7.centos.noarch has installed conflicts freeipa-common: ipa-common-4.5.4-10.el7.centos.1.noarch Package ipa-common-4.5.4-10.el7.centos.1.noarch has installed conflicts freeipa-common: ipa-common-4.5.0-22.el7.centos.noarch Package ipa-common-4.5.4-10.el7.centos.1.noarch has installed conflicts freeipa-python < ('0', '4.5.4', None): ipa-python-compat-4.5.0-22.el7.centos.noarch Package python2-ipalib-4.5.4-10.el7.centos.1.noarch has installed conflicts freeipa-python < ('0', '4.5.4', None): ipa-python-compat-4.5.0-22.el7.centos.noarch [root@ollie2 /]#
I ran a yum check which took 70+ minutes to return the following, which reports loads of duplicates
nohup: ignoring input Loaded plugins: fastestmirror, langpacks ModemManager-glib-1.6.10-1.el7.x86_64 is a duplicate with ModemManager-glib-1.6.0-2.el7.x86_64 1:NetworkManager-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-1.8.0-11.el7_4.x86_64 1:NetworkManager-glib-1.10.2-14.el7_5.x86_64 has installed conflicts NetworkManager-libnm < ('1', '1.10.2', '14.el7_5'): 1:NetworkManager-libnm-1.8.0-11.el7_4.x86_64 1:NetworkManager-libnm-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-libnm-1.8.0-11.el7_4.x86_64 1:NetworkManager-wwan-1.10.2-14.el7_5.x86_64 is a duplicate with 1:NetworkManager-wwan-1.8.0-11.el7_4.x86_64 PackageKit-glib-1.1.5-2.el7.centos.x86_64 is a duplicate with PackageKit-glib-1.1.5-1.el7.centos.x86_64 abrt-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-2.1.11-48.el7.centos.x86_64 abrt-addon-vmcore-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-addon-vmcore-2.1.11-48.el7.centos.x86_64 abrt-cli-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-cli-2.1.11-48.el7.centos.x86_64 abrt-dbus-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-dbus-2.1.11-48.el7.centos.x86_64 abrt-libs-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-libs-2.1.11-48.el7.centos.x86_64 abrt-python-2.1.11-50.el7.centos.x86_64 is a duplicate with abrt-python-2.1.11-48.el7.centos.x86_64 adwaita-gtk2-theme-3.22.2-2.el7_5.x86_64 is a duplicate with adwaita-gtk2-theme-3.22.2-1.el7.x86_64 audit-libs-2.8.1-3.el7.x86_64 is a duplicate with audit-libs-2.7.6-3.el7.i686 avahi-glib-0.6.31-19.el7.x86_64 has installed conflicts avahi < ('0', '0.6.31', '19.el7'): avahi-0.6.31-17.el7.x86_64 avahi-libs-0.6.31-19.el7.x86_64 is a duplicate with avahi-libs-0.6.31-17.el7.i686 1:cups-client-1.6.3-35.el7.x86_64 is a duplicate with 1:cups-client-1.6.3-29.el7.x86_64 1:cups-filesystem-1.6.3-35.el7.noarch is a duplicate with 1:cups-filesystem-1.6.3-29.el7.noarch 1:cups-libs-1.6.3-35.el7.x86_64 is a duplicate with 1:cups-libs-1.6.3-29.el7.x86_64 cyrus-sasl-lib-2.1.26-23.el7.x86_64 is a duplicate with cyrus-sasl-lib-2.1.26-21.el7.x86_64 1:dbus-libs-1.10.24-7.el7.x86_64 is a duplicate with 1:dbus-libs-1.6.12-17.el7.i686 dracut-033-535.el7.x86_64 is a duplicate with dracut-033-502.el7_4.1.x86_64 elfutils-libelf-0.170-4.el7.x86_64 is a duplicate with elfutils-libelf-0.168-8.el7.i686 elfutils-libs-0.170-4.el7.x86_64 is a duplicate with elfutils-libs-0.168-8.el7.i686 evince-libs-3.22.1-7.el7.x86_64 is a duplicate with evince-libs-3.22.1-5.2.el7_4.x86_64 exiv2-libs-0.26-3.el7.x86_64 is a duplicate with exiv2-libs-0.23-6.el7.x86_64 freeipmi-1.5.7-2.el7.x86_64 is a duplicate with freeipmi-1.2.9-8.el7.x86_64 glib2-2.54.2-2.el7.x86_64 is a duplicate with glib2-2.50.3-3.el7.i686 glibc-2.17-222.el7.x86_64 is a duplicate with glibc-2.17-196.el7_4.2.i686 glibc-common-2.17-222.el7.x86_64 is a duplicate with glibc-common-2.17-196.el7_4.2.x86_64 glusterfs-3.8.4-53.el7.centos.x86_64 is a duplicate with glusterfs-3.8.4-18.4.el7.centos.x86_64 glusterfs-client-xlators-3.8.4-53.el7.centos.x86_64 is a duplicate with glusterfs-client-xlators-3.8.4-18.4.el7.centos.x86_64 glusterfs-libs-3.8.4-53.el7.centos.x86_64 is a duplicate with glusterfs-libs-3.8.4-18.4.el7.centos.x86_64 gtk3-3.22.26-4.el7_5.x86_64 is a duplicate with gtk3-3.22.10-5.el7_4.x86_64 httpd-2.4.6-80.el7.centos.x86_64 is a duplicate with httpd-2.4.6-67.el7.centos.6.x86_64 httpd-tools-2.4.6-80.el7.centos.x86_64 is a duplicate with httpd-tools-2.4.6-67.el7.centos.6.x86_64 hyperv-daemons-license-0-0.32.20161211git.el7.noarch is a duplicate with hyperv-daemons-license-0-0.30.20161211git.el7.noarch hypervfcopyd-0-0.32.20161211git.el7.x86_64 is a duplicate with hypervfcopyd-0-0.30.20161211git.el7.x86_64 hypervkvpd-0-0.32.20161211git.el7.x86_64 is a duplicate with hypervkvpd-0-0.30.20161211git.el7.x86_64 hypervvssd-0-0.32.20161211git.el7.x86_64 is a duplicate with hypervvssd-0-0.30.20161211git.el7.x86_64 ipa-common-4.5.0-22.el7.centos.noarch has installed conflicts freeipa-common: ipa-common-4.5.4-10.el7.centos.1.noarch ipa-common-4.5.4-10.el7.centos.1.noarch has installed conflicts freeipa-common: ipa-common-4.5.0-22.el7.centos.noarch ipa-common-4.5.4-10.el7.centos.1.noarch has installed conflicts freeipa-python < ('0', '4.5.4', None): ipa-python-compat-4.5.0-22.el7.centos.noarch ipa-common-4.5.4-10.el7.centos.1.noarch is a duplicate with ipa-common-4.5.0-22.el7.centos.noarch kate-part-4.10.5-6.el7.x86_64 is a duplicate with kate-part-4.10.5-4.el7.x86_64 kcm_colors-4.11.19-12.el7.x86_64 is a duplicate with kcm_colors-4.11.19-8.el7.x86_64 kde-settings-19-23.7.el7.centos.noarch is a duplicate with kde-settings-19-23.5.el7.centos.noarch kde-workspace-4.11.19-12.el7.x86_64 is a duplicate with kde-workspace-4.11.19-8.el7.x86_64 kde-workspace-libs-4.11.19-12.el7.x86_64 is a duplicate with kde-workspace-libs-4.11.19-8.el7.x86_64 kernel-headers-3.10.0-862.3.2.el7.x86_64 is a duplicate with kernel-headers-3.10.0-693.21.1.el7.x86_64 kernel-tools-3.10.0-862.3.2.el7.x86_64 is a duplicate with kernel-tools-3.10.0-693.21.1.el7.x86_64 kernel-tools-libs-3.10.0-862.3.2.el7.x86_64 is a duplicate with kernel-tools-libs-3.10.0-693.21.1.el7.x86_64 kgreeter-plugins-4.11.19-12.el7.x86_64 is a duplicate with kgreeter-plugins-4.11.19-8.el7.x86_64 krb5-libs-1.15.1-19.el7.x86_64 is a duplicate with krb5-libs-1.15.1-8.el7.i686 libattr-2.4.46-13.el7.x86_64 is a duplicate with libattr-2.4.46-12.el7.i686 libblkid-2.23.2-52.el7.x86_64 is a duplicate with libblkid-2.23.2-43.el7_4.2.i686 libcgroup-0.41-15.el7.x86_64 is a duplicate with libcgroup-0.41-13.el7.x86_64 libcom_err-1.42.9-12.el7_5.x86_64 is a duplicate with libcom_err-1.42.9-10.el7.i686 libdb-5.3.21-24.el7.x86_64 is a duplicate with libdb-5.3.21-21.el7_4.x86_64 libdrm-2.4.83-2.el7.x86_64 is a duplicate with libdrm-2.4.74-1.el7.i686 1:liberation-fonts-common-1.07.2-16.el7.noarch is a duplicate with 1:liberation-fonts-common-1.07.2-15.el7.noarch libgcc-4.8.5-28.el7_5.1.x86_64 is a duplicate with libgcc-4.8.5-16.el7_4.2.i686 libgphoto2-2.5.15-1.el7.x86_64 is a duplicate with libgphoto2-2.5.2-5.el7.x86_64 libkworkspace-4.11.19-12.el7.x86_64 is a duplicate with libkworkspace-4.11.19-8.el7.x86_64 libmount-2.23.2-52.el7.x86_64 is a duplicate with libmount-2.23.2-43.el7_4.2.i686 libpciaccess-0.14-1.el7.x86_64 is a duplicate with libpciaccess-0.13.4-3.1.el7_4.i686 libreport-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-2.1.11-38.el7.centos.x86_64 libreport-filesystem-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-filesystem-2.1.11-38.el7.centos.x86_64 libreport-python-2.1.11-40.el7.centos.x86_64 is a duplicate with libreport-python-2.1.11-38.el7.centos.x86_64 libselinux-2.5-12.el7.x86_64 is a duplicate with libselinux-2.5-11.el7.i686 libsepol-2.5-8.1.el7.x86_64 is a duplicate with libsepol-2.5-6.el7.i686 libsmbclient-4.7.1-6.el7.x86_64 is a duplicate with libsmbclient-4.6.2-12.el7_4.x86_64 libstdc++-4.8.5-28.el7_5.1.x86_64 is a duplicate with libstdc++-4.8.5-16.el7_4.2.i686 libuuid-2.23.2-52.el7.x86_64 is a duplicate with libuuid-2.23.2-43.el7_4.2.i686 libwbclient-4.7.1-6.el7.x86_64 is a duplicate with libwbclient-4.6.2-12.el7_4.x86_64 mesa-libEGL-17.2.3-8.20171019.el7.x86_64 is a duplicate with mesa-libEGL-17.0.1-6.20170307.el7.i686 mesa-libGL-17.2.3-8.20171019.el7.x86_64 is a duplicate with mesa-libGL-17.0.1-6.20170307.el7.i686 mesa-libgbm-17.2.3-8.20171019.el7.x86_64 is a duplicate with mesa-libgbm-17.0.1-6.20170307.el7.i686 mesa-libglapi-17.2.3-8.20171019.el7.x86_64 is a duplicate with mesa-libglapi-17.0.1-6.20170307.el7.i686 1:net-snmp-agent-libs-5.7.2-33.el7_5.2.x86_64 is a duplicate with 1:net-snmp-agent-libs-5.7.2-28.el7_4.1.x86_64 1:net-snmp-libs-5.7.2-33.el7_5.2.x86_64 is a duplicate with 1:net-snmp-libs-5.7.2-28.el7_4.1.x86_64 2:nmap-ncat-6.40-13.el7.x86_64 is a duplicate with 2:nmap-ncat-6.40-7.el7.x86_64 nss-softokn-freebl-3.36.0-5.el7_5.x86_64 is a duplicate with nss-softokn-freebl-3.28.3-8.el7_4.i686 open-vm-tools-10.1.10-3.el7.x86_64 is a duplicate with open-vm-tools-10.1.5-3.el7.x86_64 openldap-2.4.44-15.el7_5.x86_64 is a duplicate with openldap-2.4.44-5.el7.x86_64 openssh-7.4p1-16.el7.x86_64 is a duplicate with openssh-7.4p1-13.el7_4.x86_64 1:openssl-libs-1.0.2k-12.el7.x86_64 is a duplicate with 1:openssl-libs-Error: check all 1.0.2k-8.el7.i686 pam-1.1.8-22.el7.x86_64 is a duplicate with pam-1.1.8-18.el7.i686 php-cli-5.4.16-45.el7.x86_64 is a duplicate with php-cli-5.4.16-43.el7_4.1.x86_64 php-common-5.4.16-45.el7.x86_64 is a duplicate with php-common-5.4.16-43.el7_4.1.x86_64 php-pdo-5.4.16-45.el7.x86_64 is a duplicate with php-pdo-5.4.16-43.el7_4.1.x86_64 plymouth-0.8.9-0.31.20140113.el7.centos.x86_64 is a duplicate with plymouth-0.8.9-0.28.20140113.el7.centos.x86_64 plymouth-core-libs-0.8.9-0.31.20140113.el7.centos.x86_64 is a duplicate with plymouth-core-libs-0.8.9-0.28.20140113.el7.centos.x86_64 plymouth-graphics-libs-0.8.9-0.31.20140113.el7.centos.x86_64 is a duplicate with plymouth-graphics-libs-0.8.9-0.28.20140113.el7.centos.x86_64 plymouth-plugin-two-step-0.8.9-0.31.20140113.el7.centos.x86_64 is a duplicate with plymouth-plugin-two-step-0.8.9-0.28.20140113.el7.centos.x86_64 plymouth-theme-charge-0.8.9-0.31.20140113.el7.centos.x86_64 is a duplicate with plymouth-theme-charge-0.8.9-0.28.20140113.el7.centos.x86_64 policycoreutils-2.5-22.el7.x86_64 is a duplicate with policycoreutils-2.5-17.1.el7.x86_64 policycoreutils-devel-2.5-22.el7.x86_64 is a duplicate with policycoreutils-devel-2.5-17.1.el7.x86_64 policycoreutils-python-2.5-22.el7.x86_64 is a duplicate with policycoreutils-python-2.5-17.1.el7.x86_64 pulseaudio-10.0-5.el7.x86_64 is a duplicate with pulseaudio-10.0-3.el7.x86_64 pulseaudio-libs-10.0-5.el7.x86_64 is a duplicate with pulseaudio-libs-10.0-3.el7.x86_64 python2-ipalib-4.5.4-10.el7.centos.1.noarch has installed conflicts freeipa-python < ('0', '4.5.4', None): ipa-python-compat-4.5.0-22.el7.centos.noarch python2-ipalib-4.5.4-10.el7.centos.1.noarch is a duplicate with python2-ipalib-4.5.0-22.el7.centos.noarch 1:qt-4.8.7-2.el7.x86_64 is a duplicate with 1:qt-4.8.5-15.el7_4.x86_64 rpm-4.11.3-32.el7.x86_64 is a duplicate with rpm-4.11.3-25.el7.x86_64 rpm-build-libs-4.11.3-32.el7.x86_64 is a duplicate with rpm-build-libs-4.11.3-25.el7.x86_64 rpm-libs-4.11.3-32.el7.x86_64 is a duplicate with rpm-libs-4.11.3-25.el7.x86_64 rsyslog-8.24.0-16.el7_5.4.x86_64 is a duplicate with rsyslog-8.24.0-12.el7.x86_64 samba-client-libs-4.7.1-6.el7.x86_64 is a duplicate with samba-client-libs-4.6.2-12.el7_4.x86_64 samba-common-4.7.1-6.el7.noarch is a duplicate with samba-common-4.6.2-12.el7_4.noarch samba-common-libs-4.7.1-6.el7.x86_64 is a duplicate with samba-common-libs-4.6.2-12.el7_4.x86_64 samba-libs-4.7.1-6.el7.x86_64 is a duplicate with samba-libs-4.6.2-12.el7_4.x86_64 selinux-policy-3.13.1-192.el7_5.3.noarch is a duplicate with selinux-policy-3.13.1-166.el7_4.9.noarch subversion-libs-1.7.14-14.el7.x86_64 is a duplicate with subversion-libs-1.7.14-11.el7_4.x86_64 system-config-printer-libs-1.4.1-21.el7.noarch is a duplicate with system-config-printer-libs-1.4.1-19.el7.noarch systemd-libs-219-57.el7.x86_64 is a duplicate with systemd-libs-219-42.el7_4.10.i686 2:vim-common-7.4.160-4.el7.x86_64 is a duplicate with 2:vim-common-7.4.160-2.el7.x86_64
On Thu, 24 May 2018 20:44:08 +0100 Gary Stainburn gary.stainburn@ringways.co.uk wrote:
Sorry for cross posting folks, but I'm a bit desperate and the Centos mailing list doesn't seem to like me at the moment.
All of this is on a Centos 7 system, but I'm hoping someone here can help
It's been years since I used yum, so the answers could be polluted with dnf usage.
Questions
- Any ideas why my yum runs keep hanging, and what I can do to fix
it?
Turn up the debugging in /etc/yum.conf. I think the max is 10. Redirect the output to a file, both stdout and stderr.
- How do I go about fixing the problems listed above?
Below? You need to remove the duplicate packages. You can do that manually, using rpm -e on the older duplicate package.
- What do I need to do to get my server back in a safe, consistant
state?
I think something was preventing yum from completing, so it was in sleep. When you interrupted it, that left things in an inconsistent state. Was your server running while you did the update? Could it have been blocking access to something that yum wanted to update?
Details:
My live mail server was due an update so I ran
yum update
All seemed file so I told it to proceed. HOwever it then hung for over 30 minutes.
You should have checked the status of yum with top at least, to see what was happening.
yum-complete-transaction
and
package-cleanup --cleandupes
both of which failed.
Bad sign, these should have worked if the system was left in a consistent state.
yum-complete-transaction --cleanup-only (which worked)
You could try the
package-cleanup --cleandupes
again. If it doesn't work, remove the duplicates manually and individually using rpm -e Read the manual for exact syntax, and use verbose.
Then run rpm --rebuilddb to put the rpm database in a consistent state. That should have you back in business. You can test by running another yum update. It might complain about rpm updates outside yum, but that's all right.