I can't update my centos 7

August 26, 2015 12.2k views
Linux Basics DigitalOcean

when i use the command yum -y update.
the problem is like this…

Downloading packages:
No Presto metadata available for epel
No Presto metadata avilable for base
Failed to donwload prestodelta for repository update:[Errno 5][Errno 12] Cannot allocate memory

Error download packages:.....

3 Answers

Try to clear your system incl. Metadata and try afterwards. It could be caused because of wrong metadata:

sudo yum clean all

Your droplet does not have enough memory to update. You need to stop some services or expand your droplet. I faced this issue when running a LEMP stack with wordpress, mysql was crashing and I couldn’t update after a day of being on. This was on a 512mb $5 droplet.


# yum --disableplugin=* <command>


# yum --setopt=deltarpm=0 <command>
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!