Yum problems
when I try to use yum I get the following messages
Traceback (most recent call last): File "/bin/yum", line 29, in <module> yummain.user_main(sys.argv[1:], exit_code=True) File "/usr/share/yum-cli/yummain.py", line 375, in user_main errcode = main(args) File "/usr/share/yum-cli/yummain.py", line 281, in main return_code = base.doTransaction() File "/usr/share/yum-cli/cli.py", line 817, in doTransaction resultobject = self.runTransaction(cb=cb) File "/usr/lib/python2.7/site-packages/yum/__init__.py", line 1834, in runTransaction lastdbv = self.history.last() File "/usr/lib/python2.7/site-packages/yum/history.py", line 1271, in last ret = self.old([], 1, complete_transactions_only) File "/usr/lib/python2.7/site-packages/yum/history.py", line 1220, in old executeSQL(cur, sql, params) File "/usr/lib/python2.7/site-packages/yum/sqlutils.py", line 166, in executeSQLQmark return cursor.execute(query) sqlite3.DatabaseError: database disk image is malformed rpm database is good tried all usual yum stuff clean all clean metadata etc but still have this problem? Please can anyone help Thanks in advance |
Quote:
Quote:
Code:
rpmdb --rebuilddb |
Hi Shruggy
Thanks for the reply - yes I have done that as well but still have problems. It was in the middle of yum -y update when power went off. Then system wouldn't boot - dropped to emergency shell ☹️ I had to work out what was happening. I managed to repair the LVM and filestsyem. It now boots up 'fine' I can use the rpm command but not yum. Thanks again |
A bit of an update...
yum only seems to fail when running the transaction itself - everything upto that point is ok. So I got yum to download only dnf - the next iteration package manager. Once the rpm's were downloaded I moved them all into same folder and manually installed with rpm command. dnf check-update -> works fine and finds packaged to update dnf update -> works and updates as expected. I have a working system again but broken yum? Was thinking of maybe removing yum via dnf and re-installing but not yet when things seem to be ok 😂 |
# dnf -y remove yum yum-metadata-parser
# rm -Rf /etc/yum Does what I wanted - no more yum! All is good 😂 |
All times are GMT -5. The time now is 01:53 AM. |