E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit
I ran into the following error when I added a new repository to my kubuntu box and ran apt-get update
:E: Dynamic MMap ran out of room. Please increase the size of APT::Cache-Limit. Current value: 123123. (man 5 apt.conf)
To fix this, navigate to /etc/apt/apt.conf.d
and edit the file related to debconf which in my case was 70debconf. Add the following line to the bottom of this file and save it:APT::Cache-Limit "200000000";