I was doing a "yum -y update" on a CentOS 4.5 system to get to 4.6 when my system froze. I couldn't ping it nor switch to an alternate console. It was completely frozen. The only recourse was to cycle the power. So I did that, and now when I try to do a "yum update" I get the following error: [many package header downloads deleted] tkinter-2.3.4-14.4.el4_6. 100% |=========================| 21 kB 00:00 ---> Package tkinter.i386 0:2.3.4-14.4.el4_6.1 set to be updated ---> Downloading header for oprofile to pack into transaction set. oprofile-0.8.1-33.i386.rp 100% |=========================| 20 kB 00:00 ---> Package oprofile.i386 0:0.8.1-33 set to be updated --> Running transaction check --> Processing Conflict: python-devel conflicts python < 2.3.4-14.4.el4_6.1 --> Processing Dependency: kdebase = 6:3.3.1-6.el4 for package: kdebase-devel --> Processing Dependency: httpd = 2.0.52-32.3.ent.centos4 for package: httpd-manual --> Processing Dependency: xorg-x11-devel = 6.8.2-1.EL.31 for package: xorg-x11-deprecated-libs-devel --> Processing Dependency: rpm = 4.3.3-22_nonptl for package: rpm-build --> Processing Dependency: xorg-x11-deprecated-libs = 6.8.2-1.EL.31 for package: xorg-x11-deprecated-libs-devel --> Processing Dependency: httpd = 2.0.52-32.3.ent.centos4 for package: httpd-suexec --> Processing Dependency: rpm = 4.3.3-22_nonptl for package: rpm-devel --> Finished Dependency Resolution Error: python-devel conflicts with python < 2.3.4-14.4.el4_6.1 Error: Missing Dependency: kdebase = 6:3.3.1-6.el4 is needed by package kdebase-devel Error: Missing Dependency: httpd = 2.0.52-32.3.ent.centos4 is needed by package httpd-manual Error: Missing Dependency: xorg-x11-devel = 6.8.2-1.EL.31 is needed by package xorg-x11-deprecated-libs-devel Error: Missing Dependency: rpm = 4.3.3-22_nonptl is needed by package rpm-build Error: Missing Dependency: xorg-x11-deprecated-libs = 6.8.2-1.EL.31 is needed by package xorg-x11-deprecated-libs-devel Error: Missing Dependency: httpd = 2.0.52-32.3.ent.centos4 is needed by package httpd-suexec Error: Missing Dependency: rpm = 4.3.3-22_nonptl is needed by package rpm-devel From the attached log file, you can see that yum was able to install/ update 120 packages before it crashed. Any ideas on how to recover from this state? Alfred -------------- next part -------------- A non-text attachment was scrubbed... Name: update.log.gz Type: application/x-gzip Size: 7547 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20071219/3cc31614/attachment-0002.bin>
On Wed, Dec 19, 2007 at 02:14:51PM -0500, Alfred von Campe alleged:> I was doing a "yum -y update" on a CentOS 4.5 system to get to 4.6 > when my system froze. I couldn't ping it nor switch to an alternate > console. It was completely frozen. The only recourse was to cycle > the power. So I did that, and now when I try to do a "yum update" I > get the following error:You have dup rpms installed because of the crash in the middle of the rpm transaction. You need to go through and remove the dups. Something like this will help find the dups: rpm -qa --qf '%{NAME}.%{ARCH}\n' | sort | uniq -c | sort -n -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://lists.centos.org/pipermail/centos/attachments/20071219/258f21ac/attachment-0002.sig>
Alfred von Campe wrote:> I was doing a "yum -y update" on a CentOS 4.5 system to get to 4.6 when > my system froze. I couldn't ping it nor switch to an alternate > console. It was completely frozen. The only recourse was to cycle the > power. So I did that, and now when I try to do a "yum update" I get the > following error:install yum-utils, and run package-cleanup, use that to clear the rpmdb out and rerun the yum update -- Karanbir Singh : http://www.karan.org/ : 2522219 at icq