Question

apt-get "Couldn't make mmap" error

I have a more-or-less clean 1GB Ubuntu 16.04.3 x64 droplet. I’ve installed Vesta on it, but nothing else. apt-get is failing as follows:

allen@m1:~$ sudo apt-get check
Reading package lists... Error!
E: Couldn't make mmap of 25165824 bytes - DynamicMMap (12: Cannot allocate memory)
E: The package lists or status file could not be parsed or opened.

Get the same results when I try to do anything (not just check). Any idea what’s wrong or how I could address the problem? thanks.


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.

As it says, “Cannot allocate memory”. Something is using all your memory. Use ps faux.