Recently, apt-get started crashing on me with the following error message:
E: Dynamic MMap ran out of room
E: Error occured while processing system-pkgconfig-xcb-property (NewPackage)
E: Problem with MergeList /tmp/finkaptstatus
The incriminated package does not matter, during my tests it was not
always the same, but the error came up persistently, whenever anything
apt-get related was run, apt-get or apt-cache directly, or fink
scanpackages or selfupdate etc.
After some googling, it is clear that this is a real problem related to
the increasing size of the package data bases and perhaps to the number
of repositories mentioned in sources.list. On google I also found a
workaround which might be interesting for others, as I am sure others
will be hit by this, too:
Create a file /sw/etc/apt/apt.conf.d/30cache containing one line
APT::Cache-Limit "125829120";
This sets the limit to 120MB instead of the ridiculously low default
6MB. Even 12MB would suffice.
A permanent fix would involve a patch to the file apt-pkg/pkgcachegen.cc
in the apt sources as follows:
--- apt-0.5.4/apt-pkg/pkgcachegen.cc~ 2009-12-02 14:16:11.000000000 +0100
+++ apt-0.5.4/apt-pkg/pkgcachegen.cc 2009-12-02 14:18:17.000000000 +0100
@@ -599,3 +599,3 @@
{
- unsigned long MapSize = _config->FindI("APT::Cache-Limit",6*1024*1024);
+ unsigned long MapSize = _config->FindI("APT::Cache-Limit",60*1024*1024);
There is another line in that file where MapSize is even lower at 4MB,
but that does not seem to matter as much.
--
Martin
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel