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
+4.1k Linux/Unix/MacOSX : Find out which application is listening to port 80 or use which IP version
+3.1k Golang : PGX CopyFrom to insert rows into Postgres database
+4.8k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+10k Golang : Create S3 bucket with official aws-sdk-go package
+6.1k Golang : Array mapping with Interface
+5.7k Golang : Find the shortest line of text example
+12.8k Golang : convert(cast) string to float value
+9.3k Golang : Meaning of omitempty in struct's field tag
+6.1k Web : How to see your website from different countries?
+13k Golang : Send email with attachment(RFC2822) using Gmail API example
+9.5k Golang : Interfacing with PayPal's IPN(Instant Payment Notification) example
+10.4k Golang : flag provided but not defined error