This post is to remind me about what to do in this case without using Google. So do you get something like:

Reading Package Lists… Error!
E: Dynamic MMap ran out of room

while using apt-get on your Debian/Ubuntu/etc. box ? It seems repositories have become so fat that apt’s cache is not enough to work with them. There’s a workaround for this problem - just add the following line in /etc/apt/apt.conf or add a new file in /etc/apt/apt.conf.d containing it:

APT::Cache-Limit "20000000";

This value worked for me. It should work now too if the limit is not overriden elsewhere in one of the locations mentioned above. If it doesn’t, increase it. Here is what it does (according to apt.conf(5)):

APT uses a fixed size memory mapped cache file to store the ’available’ information. This sets the size of that cache (in bytes).

Kewl ! It doesn’t mean it eats my memory - just ~20Mb my disk space. That’s OK.

Popularity: 76% [?]