Question

I can't update my centos 7

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


Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

try

# yum --disableplugin=* <command>

and

# yum --setopt=deltarpm=0 <command>

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 to clear your system incl. Metadata and try afterwards. It could be caused because of wrong metadata:

sudo yum clean all