How to increase your apt cache limit


Increase value APT::Cache-Limit

When the time I try to install backtrack unfortunately i got message error in the terminal :

Reading package lists… Error!
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 riece (NewVersion1)
E: Problem with MergeList /var/lib/apt/lists/archive.offensive-security.com_dists_pwnsauce_universe_binary-i386_Packages
W: Unable to munmap
E: The package lists or status file could not be parsed or opened.

and solution to fix it is just increase the value APT::Cache-Limit at the /etc/apt/apt.conf.d/70debconf

sudo gedit /etc/apt/apt.conf.d/70debconf

Then put this code

APT::Cache-Limit “100000000”;

at the below on that file and then save it.

You won’t find apt cache limit again in the next time.