Linux : sudo yum updates not working
Try to do a sudo yum updates
command this morning on one of my DigitalOcean droplets today and encounter weird error messages.
Everything was running fine until it suddenly stops and vomit out the word Killed
. Further attempts of sudo yum updates
and yum-complete-transaction
also did not end well.
Only after doing a ps -ef | grep defunct
command that I realized what is the problem. There are couple of zombie Apache processes that sucking up the memory and thus causing yum updates to fail.
To fix the problem :
shutdown Apache with
sudo /etc/init.d/httpd stop
kill -9
all the zombie process
and this time sudo yum updates
works!
NOTE : this situation is unique to me and as for yours...you need to find out which process is taking up the memory. It could be something other that Apache.
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
+6.5k PHP : Shuffle to display different content or advertisement
+6.2k Golang : Get missing location after unmarshal binary and gob decode time.
+14.4k Golang : Recombine chunked files example
+7.1k Golang : Array mapping with Interface
+11.7k Golang : Simple file scaning and remove virus example
+9.3k Golang : Generate random Chinese, Japanese, Korean and other runes
+20.5k Golang : Pipe output from one os.Exec(shell command) to another command
+22.9k Golang : Gorilla mux routing example
+11.6k Golang : Fuzzy string search or approximate string matching example
+32.5k Golang : Copy directory - including sub-directories and files
+9k Golang : What is the default port number for connecting to MySQL/MariaDB database ?
+6.1k Golang : Measure execution time for a function