Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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
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)?
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).
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.