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
+36.3k Golang : Get file last modified date and time
+30.7k Golang : Generate random string
+18.8k Golang : Send email with attachment
+10.8k Golang : Create matrix with Gonum Matrix package example
+9.4k Golang : Create and shuffle deck of cards example
+10.3k Golang : Print how to use flag for your application example
+8.4k Golang : Add build version and other information in executables
+10.5k Golang : Detect number of faces or vehicles in a photo
+7.8k Golang : Test if an input is an Armstrong number example
+9.6k Golang : Timeout example
+36.9k Golang : Save image to PNG, JPEG or GIF format.
+8k Golang : Getting Echo framework StartAutoTLS to work