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
+24.2k Delete a directory in Go
+2.3k Javascript : How to loop over and parse JSON data?
+5.6k Golang : List running EC2 instances and descriptions
+4.6k Golang : Get login name from environment and prompt for password
+7.8k Golang : Get checkbox or extract multipart form data value example
+3.8k Golang : Simple histogram example
+1.7k Golang : Print instead of building pyramids
+5.9k Golang : Wait and sync.WaitGroup example
+3.4k Python : Fix SyntaxError: Non-ASCII character in file, but no encoding declared
+19.8k Golang : Math pow(the power of x^y) example
+25.5k Golang : How to get HTTP request header information?
+4.7k Golang : Find and draw contours with OpenCV example