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
+13.7k Golang : Get dimension(width and height) of image file
+12.8k Swift : Convert (cast) Int to String ?
+5.2k Unix/Linux : How to archive and compress entire directory ?
+18.7k Golang : How to make function callback or pass value from function as parameter?
+32.9k Delete a directory in Go
+5.6k Golang : ROT32768 (rotate by 0x80) UTF-8 strings example
+25.7k Golang : Convert IP address string to long ( unsigned 32-bit integer )
+7.3k Golang : Hue, Saturation and Value(HSV) with OpenCV example
+10k Golang : Use regular expression to get all upper case or lower case characters example
+6.4k Golang : How to determine if request or crawl is from Google robots
+5.1k Golang : Print instead of building pyramids
+9.9k CodeIgniter : Load different view for mobile devices