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
+15.7k Golang : Read data from config file and assign to variables
+17k Golang : Fix cannot download, $GOPATH not set error
+19.3k Golang : Upload big file (larger than 100MB) to AWS S3 with multipart upload
+13.9k Chrome : ERR_INSECURE_RESPONSE and allow Chrome browser to load insecure content
+16k Golang : Implement getters and setters
+7.9k Golang : Accessing content anonymously with Tor
+7.9k Golang : Populate slice with sequential integers example
+5.5k Golang : How to iterate a slice without using for loop?
+6.1k Golang : Convert source code to assembly language
+12.9k Golang : rune literal not terminated error
+6.4k Golang : Error reading timestamp with GORM or SQL driver