Question

I can't update my centos 7

Posted August 26, 2015 12.7k views
Linux BasicsDigitalOcean

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:.....

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
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.

try

# yum --disableplugin=* <command>

and

# yum --setopt=deltarpm=0 <command>
Submit an Answer