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.9k Golang : Accessing dataframe-go element by row, column and name example
+10.4k Golang : Compress and decompress file with compress/flate example
+9.9k Elastic Search : Return all records (higher than default 10)
+4.9k Golang : Totalize or add-up an array or slice example
+4.2k Android Studio : Hello World example
+34.3k Golang : Convert(cast) int64 to string
+9.8k Golang : How to check if your program is running in a terminal
+6.4k How to show different content from website server when AdBlock is detected?
+9.3k Golang : How to detect a server/machine network interface capabilities?
+5.9k Golang : Scan files for certain pattern and rename part of the files
+25.9k Golang : Get first few and last few characters from string
+3.8k Python : Print unicode escape characters and string