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.2k Golang : Number guessing game with user input verification example
+4.3k Golang : Issue HTTP commands to server and port example
+12.8k Elastic Search : Mapping date format and sort by date
+23.7k Golang : Storing cookies in http.CookieJar example
+5.5k Unix/Linux : Use netstat to find out IP addresses served by your website server
+10.4k Golang : Concurrency and goroutine example
+44.1k Golang : Read tab delimited file with encoding/csv package
+7.5k Golang : How to capture return values from goroutines?
+9.7k Golang : Fix - does not implement sort.Interface (missing Len method)
+4.5k Golang : Shortening import identifier
+28.8k Golang : Remove characters from string example
+5.2k Golang : Process non-XML/JSON formatted ASCII text file example