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
+11.6k Golang : Concatenate (combine) buffer data example
+30.1k Golang : Get and Set User-Agent examples
+11.5k Golang : Post data with url.Values{}
+32.3k Golang : Convert an image file to []byte
+15.4k Golang : Get timezone offset from date or timestamp
+12.2k Golang : Save webcamera frames to video file
+5.8k Fix fatal error: evacuation not done in time problem
+6.6k Golang : Spell checking with ispell example
+6.4k Golang : Test input string for unicode example
+5.5k Golang : What is StructTag and how to get StructTag's value?
+18.4k Golang : Put UTF8 text on OpenCV video capture image frame
+12.1k Golang : Setup API server or gateway with Caddy and http.ListenAndServe() function example