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.3k Golang : Issue HTTP commands to server and port example
+10.4k Golang : Sort and reverse sort a slice of runes
+11.1k Golang : Listen and Serve on sub domain example
+7.1k Your page has meta tags in the body instead of the head
+6.9k Golang : Append and add item in slice
+9.1k Golang : cannot assign type int to value (type uint8) in range error
+4.1k Golang : Constant and variable names in native language
+17.6k Golang : Read input from console line
+10.4k Golang : Verify Linux user password again before executing a program example
+8.9k Golang : Use regular expression to get all upper case or lower case characters example
+11.9k Golang : Count number of runes in string
+4.9k Fix ERROR 2003 (HY000): Can't connect to MySQL server on 'IP address' (111)