Fix sudo yum hang problem with no output or error messages
Encounter a weird error this morning while trying to execute sudo yum update
command. Yum just hangs there and no error messages whatsoever were displayed on screen. Have to issue kill -9
to terminate the yum process.
To fix the problem, first :
cd /var/lib/rpm
and then remove the __db.00* files. All of them.
and run this command
/usr/lib/rpm/rpmdb_recover
Run the sudo yum update
command again and everything back to normal again!
Hope this helps.
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+5.8k Cash Flow : 50 days to pay your credit card debt
+11.2k Golang : How to flush a channel before the end of program?
+20k Golang : Reset or rewind io.Reader or io.Writer
+11.6k Golang : Find age or leap age from date of birth example
+20.6k Golang : Read directory content with os.Open
+10.5k Golang : ISO8601 Duration Parser example
+6.7k Golang : Join lines with certain suffix symbol example
+8.2k Swift : Convert (cast) Character to Integer?
+10.5k Golang : How to delete element(data) from map ?
+17.8k Golang : Qt image viewer example
+21.1k Golang : How to force compile or remove object files first before rebuild?