Error: Dynamic MMap ran out of room

When updating packages via aptitude os apt-get

Error:

Reading package lists... Error!
E: Dynamic MMap ran out of room

Fix: Add the following line to /etc/apt/apt.conf:

APT::Cache-Limit  20000000;