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.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.