LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 05-22-2008, 05:55 PM   #1
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Rep: Reputation: 1
Question yum update ===> AttributeError: CHECKSUM_VALUE


I recently installed Red Hat (5.1ES 2.6.18-53.el5PAE). I have been running "yum update" every other day with no troubles. Yesterday Red Hat released a long list of updates (about 280) and I lost my connection before "yum update" finished. Today "yum update" generates "AttributeError: CHECKSUM_VALUE[/CODE]" How does a yum newbie fix this problem?

Here is more information.

Code:
# yum clean all
Loading "installonlyn" plugin
Loading "security" plugin
Loading "rhnplugin" plugin
Cleaning up Everything

# yum update
Loading "installonlyn" plugin
Loading "security" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
rpmforge                  100% |=========================| 1.1 kB    00:00     
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
primary.xml.gz            100% |=========================| 2.4 MB    01:05     
rpmforge  : ################################################## 6970/6970
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 628, in updatePkgs
    self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 107, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 334, in doSackSetup
    self.pkgSack.excludeArchs(archlist)
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 312, in excludeArchs
    sack.excludeArchs(archlist)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 559, in excludeArchs
    obj = 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
And yum.conf:

Code:
# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
Not sure what info would help.

Code:
# 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 Mar  8  2007 rpmforge.repo
 
Old 05-22-2008, 06:17 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Try a:

Quote:
yum clean all
and then try again as before. Sometimes stuff gets caught in yum's throat.
 
Old 05-23-2008, 07:21 AM   #3
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
Please notice that I did that (see the top of my first post). So is there a heimlich maneuver?
 
Old 05-23-2008, 07:57 AM   #4
pobrika
Member
 
Registered: Jan 2008
Location: Bournemouth, UK
Distribution: Mint, #!, Fedora, Redhat, Centos
Posts: 64

Rep: Reputation: 18
I would try using
# yum clean all

then last resort try rebuilding the rpm database if all else fails, done this several times myself.

# rm -f /var/lib/rpm/__db*
# rpmdb -vv --rebuilddb

Last edited by pobrika; 05-23-2008 at 07:59 AM.
 
Old 05-24-2008, 02:36 PM   #5
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
Question Is there a surgical option?

I tried each of those, to no avail. Surely there is someway to get yum working again?

Code:
[~]# yum clean all
Loading "installonlyn" plugin
Loading "security" plugin
Loading "rhnplugin" plugin
Cleaning up Everything

[~]# rm -f /var/lib/rpm/__db*
[~]# rpmdb -vv --rebuilddb
... many lines later ...
D: closed   db index       /var/lib/rpmrebuilddb.24997/Basenames
D: closed   db index       /var/lib/rpmrebuilddb.24997/Name
D: closed   db index       /var/lib/rpmrebuilddb.24997/Packages
D: closed   db environment /var/lib/rpmrebuilddb.24997/Packages
D: removing directory /var/lib/rpmrebuilddb.24997
D: closed   db index       /var/lib/rpm/Pubkeys
D: closed   db index       /var/lib/rpm/Packages
D: closed   db environment /var/lib/rpm/Packages
D: May free Score board((nil))

~]# yum update
Loading "installonlyn" plugin
Loading "security" plugin
Loading "rhnplugin" plugin
Setting up Update Process
Setting up repositories
rpmforge                  100% |=========================| 1.1 kB    00:00     
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
primary.xml.gz            100% |=========================| 2.4 MB    00:06     
rpmforge  : ################################################## 6982/6982
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 628, in updatePkgs
    self.doRepoSetup()
  File "/usr/share/yum-cli/cli.py", line 107, in doRepoSetup
    self.doSackSetup(thisrepo=thisrepo)
  File "/usr/lib/python2.4/site-packages/yum/__init__.py", line 334, in doSackSetup
    self.pkgSack.excludeArchs(archlist)
  File "/usr/lib/python2.4/site-packages/yum/packageSack.py", line 312, in excludeArchs
    sack.excludeArchs(archlist)
  File "/usr/lib/python2.4/site-packages/yum/sqlitesack.py", line 559, in excludeArchs
    obj = 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
 
Old 05-25-2008, 03:52 AM   #6
pobrika
Member
 
Registered: Jan 2008
Location: Bournemouth, UK
Distribution: Mint, #!, Fedora, Redhat, Centos
Posts: 64

Rep: Reputation: 18
Can you post the results of the following.

#rpm -qa|grep yum
#uname -a

Also what is the OS and version you are using.
 
Old 05-25-2008, 12:53 PM   #7
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
System Information

I am using Red Hat Enterprise Linux (v. 5 for 32-bit x86)

Code:
[~]# uname -a
Linux 2.6.18-53.el5PAE #1 SMP Wed Oct 10 16:48:18 EDT 2007 i686 i686 i386 GNU/Linux

[~]# rpm -qa|grep yum
yum-metadata-parser-1.0-8.fc6
yum-3.0.1-5.el5
yum-security-1.0.4-3.el5
yum-rhn-plugin-0.5.2-5.el5_1.2
yum-metadata-parser-1.1.2-2.el5
yum-updatesd-3.0.1-5.el5

Last edited by PrimeMogul; 05-29-2008 at 02:16 PM. Reason: correcting error
 
Old 05-25-2008, 01:12 PM   #8
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Quote:
yum-metadata-parser-1.0-8.fc6
That would be my first suspect. While RHEL5 was based on FC6 I would not recommend running FC6 rpms on it.
 
Old 05-25-2008, 06:58 PM   #9
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
Suppose that is it, what do I do about it? (Again I am a yum newbie, all I have done so far is "yum update".) SO how do I remove such a thing (if that is what I should do)?
 
Old 05-25-2008, 07:13 PM   #10
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Post your rpmforge.repo file. If all you have done is run yum updates, I am not sure how you got rpmforge involved. Even with rpmforge I am not sure how you wound up with a FC6 rpm on a RHEL5 system (unless the rpmforge repo file is wrong).
 
Old 05-26-2008, 09:33 AM   #11
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
Ah, but I did a couple RPM's outside of yum, could that have caused the toruble?

Code:
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 = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
I do recall installing these, but I think others were installed to make one of the first two work.

Code:
And the three rpm's I installed
cabextract-1.2-1.el5.rf.i386.rpm
msttcorefonts-bootstrap-0.1-6.SoS.2008.1.noarch.rpm
php-tidy-5.2.5-1.i386.rpm
SO I guess I broke something? How can I fix it?
 
Old 05-26-2008, 10:53 AM   #12
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Try shutting off the rpmforge repo (change enable=1 to enable =0). Then try yum clean all (again) and a yum update. If that does not clear it up I would "yum remove yum-metadata-parser-1.0-8.fc6" and see if that is the issue. Without knowing what all you installed and from where (you have to be careful) I do not know how much more I can help you.
 
Old 05-26-2008, 11:15 AM   #13
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
I tried those steps same error. Guess I really screwed something up. Thank-you for helping!

In bash_history I find these

Code:
rpmforge-release-0.3.6-1.el5.rf.i386.rpm
wget-1.8.2-13sls.i586.rpm
kernel-source-2.4.22-26sls.i586.rpm
perl-base-5.8.1-0.RC4.4sls.i586.rpm
freetype-tools-1.3.1-25pclos2007.i586.rpm

Last edited by PrimeMogul; 05-26-2008 at 11:17 AM. Reason: left out pat of message
 
Old 05-26-2008, 11:23 AM   #14
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,362

Rep: Reputation: 171Reputation: 171
Quote:
freetype-tools-1.3.1-25pclos2007.i586.rpm
Well this is a pclos rpm. Where are you getting th sls rpms from? RPMs are generally specific to the distro, version, and arch, that they were made for. You CANNOT (as a general rule) use rpms made for any other distro, version, or arch.
 
Old 05-26-2008, 11:26 AM   #15
PrimeMogul
LQ Newbie
 
Registered: Apr 2008
Posts: 22

Original Poster
Rep: Reputation: 1
This solved the problem:

Code:
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

Last edited by PrimeMogul; 05-29-2008 at 02:15 PM. Reason: Posting Solution
 
  


Reply

Tags
yum


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum question: How to update from backed up yum cache? Arodef Linux - Software 2 02-02-2010 11:42 PM
Yum on FC6. 'yum update' error. mufy Fedora 8 06-14-2007 02:03 AM
Query re: order of yum update and yum install jajtiii Linux - General 0 12-12-2005 12:48 PM
trying to update via yum and update fails lnxmacusr Fedora 4 12-17-2004 03:12 PM
Tkinter Attributeerror : Entry has no __call__ method jeffsouza Programming 0 02-05-2004 07:57 AM


All times are GMT -5. The time now is 01:38 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration