"Dynamic MMap ran out of room" error when adding new apt source list
DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
No difference. Should I maybe make a new file to replace it with?
That may help, but on the other hand whatever caused the ghost extra space to appear is the real problem. I worry that redoing the file would only recreate the problem. Still, it may be worth a try. First backup the current list, by doing "cp /etc/apt/sources.list /etc/apt/sources.list.bak". Then you can try removing the sources list and write an entirely new one. Try using a different editor maybe (vi/vim should be fine, but something is clearly going wrong with it).
Add the following line to either /etc/apt/apt.conf or /etc/apt/apt.conf.d/70debconf
Code:
APT::Cache-Limit "8388608";
This is so annoying! Why do we have to do this manually? Shouldn't it just use up as much space as necessary, no matter if we have 3 repos or 30? That's just user hostile, not user friendly.
Anyways, I trimmed down my sources, and it is working better no. No more contrib and non-free (for the short term)
I think this didn't work:
[~]# etc/apt/apt.conf.d
-su: etc/apt/apt.conf.d: No such file or directory
[~]# etc/apt/apt.conf.d/70debconf
-su: etc/apt/apt.conf.d/70debconf: No such file or directory
[~]# etc/apt/apt.conf
-su: etc/apt/apt.conf: No such file or directory
[~]#
// Pre-configure all packages with debconf before they are installed.
// If you don't like it, comment it out.
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
APT::Cache-Limit "16777216";
Hey all, I had this problem as well, it didn't seem to help to add an apt.conf file.
So I just went into the source.list file and commented out most of the newer sources I had been adding (without totally knowing what I was doing so there were so errors)
just type:
sudo nano /etc/apt/sources.list
press down and add ## in the front of anything that you've added that isn't essential to update
Ctrl + X
and then Y for Yes to save
Enter
That seemed to clear it up. Now apt, synaptic and the system updater are working again.
APT::Cache-Limit "16777216";
in /etc/apt/apt.conf.d/70debconf
only got me to 87%, but
APT::Cache-Limit "25165824";
worked (8388608*3). I supposed even
APT::Cache-Limit "18958255";
might have worked, but whatever.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.