Dynamic MMap ran out of room
I think it would be nice if the "Dynamic MMap ran out of room" error provided some clue as to how to fix it:
Here's my suggested patch:
--- apt-0.5.27/apt-pkg/contrib/mmap.cc 2001-05-27 01:19:30.000000000 -0400
+++ apt-0.5.27-new/apt-pkg/contrib/mmap.cc 2005-01-07 17:24:43.000000000 -0500
@@ -211,7 +211,7 @@
// Just in case error check
if (Result + Size > WorkSpace)
{
- _error->Error("Dynamic MMap ran out of room");
+ _error->Error("Dynamic MMap ran out of room. Please increase the size of APT::Cache. (man 5 apt.conf)");
return 0;
}
@@ -273,7 +273,7 @@
// Just in case error check
if (Result + Len > WorkSpace)
{
- _error->Error("Dynamic MMap ran out of room");
+ _error->Error("Dynamic MMap ran out of room. Please increase the size of APT::Cache. (man 5 apt.conf)");
return 0;
}
Reply to: