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
+31.8k Golang : Convert an image file to []byte
+8.8k Golang : HTTP Routing with Goji example
+8.2k Golang : Metaprogramming example of wrapping a function
+10.2k Golang : Random Rune generator
+13.1k Golang : How to get a user home directory path?
+13.6k Golang : Tutorial on loading GOB and PEM files
+7.5k SSL : How to check if current certificate is sha1 or sha2 from command line
+8.4k PHP : How to parse ElasticSearch JSON ?
+5.3k Golang : Reclaim memory occupied by make() example
+23.6k Find and replace a character in a string in Go
+10.5k Golang : Bubble sort example
+13k Golang : List objects in AWS S3 bucket