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.2k Golang : Get Alexa ranking data example
+19.8k Golang : Randomly pick an item from a slice/array example
+6.2k Golang : Randomize letters from a string example
+11k Golang : Query string with space symbol %20 in between
+7.7k Golang : Translate language with language package example
+7.8k Golang : Random Rune generator
+10.9k CodeIgniter : "Fatal error: Cannot use object of type stdClass as array" message
+5.3k Golang : Normalize email to prevent multiple signups example
+7.9k Golang : Convert file content to Hex
+3k Javascript : How to show different content with noscript?
+11.8k Golang : Accurate and reliable decimal calculations