I can't update my centos 7

August 26, 2015 2.8k views
DigitalOcean Linux Basics

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.