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
+7.3k Golang : Dealing with postal or zip code example
+10.2k Golang : Edge detection with Sobel method
+14.3k Golang : Fix image: unknown format error
+12.1k Golang : Clean formatting/indenting or pretty print JSON result
+8k Swift : Convert (cast) String to Float
+4.8k PHP : Extract part of a string starting from the middle
+17.8k Golang : delete and modify XML file content
+5.9k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+8k Setting $GOPATH environment variable for Unix/Linux and Windows
+13.7k Golang : Get user input until a command or receive a word to stop
+30k Golang : How to get HTTP request header information?
+15k Golang : Submit web forms without browser by http.PostForm example