LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 09-19-2009, 07:20 AM   #1
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126

Rep: Reputation: 22
Fedora: killed yum


Hello,

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

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

~Callum
 
Old 09-19-2009, 07:45 AM   #2
PTrenholme
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
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126

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

Thanks

~Callum
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration