Results 1 to 7 of 7
Somehow I screwed up yum on Linux 2.6.18-53.el5PAE. Most likely by downloading RPMs from the wrong spot; but perhaps because I killed yum whie it was updating. rpmforge?
How can ...
- 05-27-2008 #1
[SOLVED] yum update fails: AttributeError: CHECKSUM_VALUE
Somehow I screwed up yum on Linux 2.6.18-53.el5PAE. Most likely by downloading RPMs from the wrong spot; but perhaps because I killed yum whie it was updating. rpmforge?
How can I recover?
I have tried
and stiill getCode:yum clean all rm -f /var/lib/rpm/__db* rpmdb -vv --rebuilddb
I have yum version 3.0.1Code:[root]# yum update Loading "installonlyn" plugin Loading "security" plugin Loading "rhnplugin" plugin Setting up Update Process Setting up repositories rhel-i386-server-vt-5 100% |=========================| 1.4 kB 00:00 rhel-i386-server-5 100% |=========================| 1.4 kB 00:00 rhn-tools-rhel-i386-serve 100% |=========================| 1.2 kB 00:00 Reading repository metadata in from local files Skipping security plugin, no data Traceback (most recent call last): File "/usr/bin/yum", line 29, in ? yummain.main(sys.argv[1:]) File "/usr/share/yum-cli/yummain.py", line 102, in main result, resultmsgs = do() File "/usr/share/yum-cli/cli.py", line 359, in doCommands return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds) File "/usr/share/yum-cli/yumcommands.py", line 150, in doCommand return base.updatePkgs(extcmds) File "/usr/share/yum-cli/cli.py", line 641, in updatePkgs obsoleting_pkg = self.getPackageObject(obsoleting) File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 1462, in getPackageObject pkgs = self.pkgSack.searchPkgTuple(pkgtup) File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 68, in searchPkgTuple return self.searchNevra(name=n, arch=a, epoch=e, ver=v, rel=r) File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 231, in searchNevra return self._computeAggregateListResult("searchNevra", name, epoch, ver, rel, arch) File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 323, in _computeAggregateListResult sackResult = apply(method, args) File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 544, in searchNevra returnList.append(self.pc(rep,self.db2class(x))) File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 429, in db2class y.checksum = {'pkgid': 'YES','type': db.checksum_type, File "/usr/lib/python2.4/site-packages/sqlite/main.py", line 97, in __getattr__ raise AttributeError, key AttributeError: CHECKSUM_VALUE
I was told rpmforge does not elong here; but I ama newbie and have no clue.Code:[root]# rpm -qa|grep yum yum-security-1.0.4-3.el5 yum-updatesd-3.0.1-5.el5 yum-rhn-plugin-0.5.2-5.el5_1.2 yum-3.0.1-5.el5 yum-metadata-parser-1.1.2-2.el5
Code:[root]# ls -l /etc/yum.repos.d/ total 24 -rw-r--r-- 1 root root 684 Mar 8 2007 mirrors-rpmforge -rw-r--r-- 1 root root 254 Apr 29 13:22 rhel-debuginfo.repo -rw-r--r-- 1 root root 428 May 26 11:04 rpmforge.repo
- 05-29-2008 #2Just Joined!
- Join Date
- May 2008
- Posts
- 3
rpm -qa | grep yum-metadata-parser
rpm -ev --nodeps yum-metadata-parser-VERSIONFROMABOVECMD
cd /tmp
wget ftp://ftp.univie.ac.at/systems/linux...8.fc6.i386.rpm
rpm -iv ./yum-metadata-parser-1.0-8.fc6.i386.rpm
yum check-update
- 05-29-2008 #3
Thanks!!!
That got yum working!! Thank-you so much!
Over 100 backlogged updates went through with no trouble. All that is left is these five:
Are these easy to fix? (Are mine somehow newer than what it wants to update to?)Code:[root@primes ~]# yum check-update ... firefox.i386 3.0-0.beta5.6.el5 rhel-i386-server libhugetlbfs.i386 1.2-5.el5 rhel-i386-server lvm2.i386 2.02.32-4.el5 rhel-i386-server mysql-server.i386 5.0.45-7.el5 rhel-i386-server python-devel.i386 2.4.3-21.el5 rhel-i386-server Errors: 1) mysql-server.i386 0:5.0.45-7.el5 file /usr/bin/mysqldumpslow from install of mysql-server-5.0.45-7.el5 conflicts with file from package mysql-5.0.22-2.2.el5_1.1 2) python-devel.i386 2.4.3-21.el5 Error: python-devel conflicts with python < 2.4.3-21.el5 3) firefox.i386 3.0-0.beta5.6.el5 Error: Missing Dependency: libgtkembedmoz.so is needed by package devhelp Error: Missing Dependency: gecko-libs = 1.8.0.12 is needed by package devhelp 4) libhugetlbfs.i386 1.2-5.el5 Error: libhugetlbfs conflicts with libhugetlbfs-lib < 1.2 5) lvm2.i386 2.02.32-4.el5 file /sbin/dmeventd from install of device-mapper-event-1.02.24-1.el5 conflicts with file from package device-mapper-1.02.20-1.el5
- 05-29-2008 #4Just Joined!
- Join Date
- May 2008
- Posts
- 3
usually i just 'rpm -ev --nodeps' the offending packages (typically the ones listed on the right side of the warnings, eg, mysql-5.0.22-2.2.el5_1.1).
then i do a yum update and let it reinstall the correct packages.
the python one you may need to deal with manually because yum is written in python -- so if you remove python, yum will stop working.
download the python rpms (they may already be in your yum cache) and then rm the offending python package and manually (rpm -U) do the update.
- 05-29-2008 #5
While trying to fix this someone else asked me to set enabled=0 in /etc/yum.repos.d/rpmforge.repo. Should it be 1 or 0?
Code:> cat /etc/yum.repos.d/rpmforge.repo # Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag # URL: http://rpmforge.net/ [rpmforge] name = Red Hat Enterprise $releasever - RPMforge.net - dag #baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge #mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge enabled = 0 protect = 0 gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag gpgcheck = 1
- 05-29-2008 #6Just Joined!
- Join Date
- May 2008
- Posts
- 3
if you feel rpmforge was part of the problem, then leave is disabled. i dont use rpmforge, so i cant advise either way.
- 05-29-2008 #7
I do not know what caused the problem. Anyway, now all are working but yum--I get to it soon. Want to make sure I have (all of?) the rpm(s)...
Thanks again. I am glad your first post was a solution to my problem!


