Those of you who use debian might be familiar with the following error:
Reading Package Lists... Error!
E: Dynamic MMap ran out of room
The solution to this problem can be googled easily, but there are several variations and of course I have my own opinion on that, so I’ll give my solution here. This is mainly so I can look it up myself very quickly, but if it also works for you, great!
Put the following in /etc/apt/apt.conf.d/99local (create if it doesn’t exist, which is likely):
APT::Cache-Limit "33554432";
You might have to adjust (up) the number to suit your needs. As stated in this thread by someone named makuyl:
Seriously, you can set it to how much you like but keep in mind not to let it fill /var or worse /. “apt-get clean” or “aptitude clean” now and then would clean up the /var/cache/apt/archives so you can manage with a lower limit.