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
+16.7k Golang : Merge video(OpenCV) and audio(PortAudio) into a mp4 file
+15.4k Golang : How to check if IP address is in range
+9.8k Golang : Find correlation coefficient example
+14.7k Golang : Overwrite previous output with count down timer
+14.7k Golang : Convert(cast) int to float example
+6.3k Golang : Get Hokkien(福建话)/Min-nan(閩南語) Pronounciations
+5.3k Golang : Convert lines of string into list for delete and insert operation
+45.2k Golang : Use wildcard patterns with filepath.Glob() example
+27.6k Golang : Convert integer to binary, octal, hexadecimal and back to integer
+9.7k Golang : Quadratic example
+6.5k Golang : Detect face in uploaded photo like GPlus
+5.6k Clean up Visual Studio For Mac installation failed disk full problem