Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. 29.02.12

E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 25165824. (man 5 apt.conf)
E: Error occurred while processing yatm (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/mirror.positive-internet.com_debian_dists_squeeze_main_binary-i386_Packages
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

These errors occur when adding new apt source list.

Solution :

Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf

APT::Cache-Limit “83886080”;

Related Articles

2 Comments

  • There is a mistake in the last line, this actually decreases the cache limit.

    For an 80 MB cache (there is an extra zero):
    APT::Cache-Limit “83886080″;

    Cheers!

    Wesley Yarde
    Tue 3rd July, 2012
    reply
  • thanks for notify that, fixed!

    od3n
    Tue 14th August, 2012
    reply