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
+6.7k Golang : Fibonacci number generator examples
+33.7k Golang : Call a function after some delay(time.Sleep and Tick)
+21.8k Golang : Securing password with salt
+33.5k Golang : convert(cast) bytes to string
+5k Golang : The Tao of importing package
+14.1k Golang : How to shuffle elements in array or slice?
+12k Golang : Print UTF-8 fonts on image example
+7.7k Golang : Grayscale Image
+10.6k Golang : Removes punctuation or defined delimiter from the user's input
+14.2k Golang : Find network of an IP address
+6.3k Golang : Totalize or add-up an array or slice example
+9.6k Golang : Function wrapper that takes arguments and return result example