After apt-get update or Aptitude update I got this error

"Dynamic Mmap ran out of room"

this is the solutions

add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf (for my situations is the second one)

APT::Cache-Limit "16777216";

Ref: LinuxQuestions.org