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.7k Gogland : Where to put source code files in package directory for rookie
+20.2k Golang : How to get struct tag and use field name to retrieve data?
+11k Golang : Create S3 bucket with official aws-sdk-go package
+13.6k Golang : reCAPTCHA example
+16.5k Golang : File path independent of Operating System
+7.9k Golang : Trim everything onward after a word
+6k Golang : How to verify input is rune?
+11.3k Golang : How to use if, eq and print properly in html template
+7.1k Golang : Array mapping with Interface
+39.1k Golang : How to iterate over a []string(array)
+7.1k Restart Apache or Nginx web server without password prompt
+21.3k Golang : Create and resolve(read) symbolic links