Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 09-19-2009, 07:20 AM   #1
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126

Rep: Reputation: 22
Fedora: killed yum


I was installing compiz-plugins in terminal when I had a power cut. Now whenever I load add/remove programs I get this error:

Error Type: <class 'yum.Errors.RepoError'>
Error Value: database disk image is malformed
File : /usr/share/PackageKit/helpers/yum/, line 2867, in <module>
File : /usr/share/PackageKit/helpers/yum/, line 2864, in main
File : /usr/lib/python2.6/site-packages/packagekit/, line 654, in dispatcher
self.dispatch_command(args[0], args[1:])
File : /usr/lib/python2.6/site-packages/packagekit/, line 530, in dispatch_command
File : /usr/share/PackageKit/helpers/yum/, line 629, in get_packages
File : /usr/lib/python2.6/site-packages/packagekit/, line 43, in add_available
for pkg in pkgs:
File : /usr/lib/python2.6/site-packages/yum/, line 37, in __iter__
ret = self.returnPackages()
File : /usr/lib/python2.6/site-packages/yum/, line 396, in returnPackages
None, patterns, ignore_case)
File : /usr/lib/python2.6/site-packages/yum/, line 482, in _computeAggregateListResult
sackResult = apply(method, args)
File : /usr/lib/python2.6/site-packages/yum/, line 1209, in returnPackages
pkgobjlist = self._buildPkgObjList(repoid, patterns, ignore_case)
File : /usr/lib/python2.6/site-packages/yum/, line 53, in newFunc
raise Errors.RepoError, str(e)
How can I fix yum?

Old 09-19-2009, 07:45 AM   #2
Senior Member
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Well, the error message is, I believe, telling you that the cache data base was broken by the crash. I've never had this problem, but what I'd try first is to see if yum could be convinced to start a fresh cache.

Try (as "root") a yum clean dbcache to see if that might help. (Look in man yum for other "clean" options.)

Anyhow, I looks more like a data problem than a yum problem.

Also, you could try (again, as "root") a touch /forcefsck followed by a reboot to force a full file system check. That might be able to fix some problems.
Old 09-19-2009, 07:53 AM   #3
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126

Original Poster
Rep: Reputation: 22
"yum clean dbcache" worked.




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 Update On BIND Killed It neoform Linux - Server 12 07-09-2009 09:42 AM
Yum hangs and is then killed gjanzen Linux - Software 3 06-26-2006 05:37 AM
I Killed Yum. Wheat_Thins Linux - Newbie 4 03-02-2006 12:13 PM
Yum fails with Running Transaction Test, Killed rosholm Fedora 2 10-19-2005 07:48 AM
Upgrade from RH9 to FC1 with yum killed mysqld physics Fedora - Installation 1 09-03-2004 08:52 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:06 AM.

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