Fixed: apt-get error

Michael Paoli Michael.Paoli at cal.berkeley.edu
Fri Aug 24 23:13:48 PDT 2007


Glad you got your answer and got it working.

I bumped into that some years (years>=3) back and I believe managed to
search out the answer at least at the time (via Google and/or the Debian
bug tracker).

This is what I still have included in at least one of my
/etc/apt/apt.conf files:
APT::Cache-Limit 16777216; //work-around for bug #177101-->#178623
... fairly likely it's no longer needed at this time, but certainly
did the trick at the time.
$ ls -l /etc/apt/apt.conf
-rw-r--r--  1 root root 199 Jun 19  2004 /etc/apt/apt.conf

references/excerpts:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177101
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=178623

Quoting Tom Simons <tom.simons at gmail.com>:

> Thanks for the help!  Problerm fixed by adding "APT::Cache-Limit
> 20000000" to apt.conf.
> I picked 20000000 because it was slightly bigger than the 19,397,952-byte
> file:
> /var/lib/apt/lists/ftp.debian.org_debian_dists_stable_main_binary-i386_Packages.


Quoting Don Armstrong <don at donarmstrong.com>:

> On Fri, 24 Aug 2007, Tom Simons wrote:
> > # apt-get check
> > Reading Package Lists... Error!
> > E: Dynamic MMap ran out of room
> 
> Increase the size of APT::Cache-Limit in /etc/apt/apt.conf; something like
> 
> APT::Cache-Limit 10000000; # or larger
> 
> will help. [It's supposed to increase itself to be large enough, but
> old versions of apt-get don't do it, and you also may have an
> inordinately large number of sources.]



> On 8/24/07, Tom Simons <tom.simons at gmail.com> wrote:
> > I'm trying to do another apt-get update/upgrade on my old Debian box,
> > and I'm now getting the error listed below.  I've been doing
> > update/upgrades for years, but I'm not really familiar with the
> > process (mainly because it always worked).  Can anyone see what's
> > wrong?
> >
> > # apt-get check
> > Reading Package Lists... Error!
> > E: Dynamic MMap ran out of room
> > E: Error occured while processing wsjt (NewVersion1)
> > E: Problem with MergeList
> >
> /var/lib/apt/lists/ftp.debian.org_debian_dists_stable_main_binary-i386_Packages
> > E: The package lists or status file could not be parsed or opened.
> >
> > # ls -l
> /var/lib/apt/lists/ftp.debian.org_debian_dists_stable_main_binary-i386_Packages
> > -rw-r--r-- 1 root root 19397952 Aug 15 15:55
> >
> /var/lib/apt/lists/ftp.debian.org_debian_dists_stable_main_binary-i386_Packages
> >
> > # wc -l
> /var/lib/apt/lists/ftp.debian.org_debian_dists_stable_main_binary-i386_Packages
> >  451195
> >
> > # sed -n '1,/^Package: wsjt/p'
> >
> /var/lib/apt/lists/ftp.debian.org_debian_dists_stable_main_binary-i386_Packages
> > | wc -l
> >  426676
> >
> > # cat apt.conf
> > addicks:/etc/apt# cat sources.list
> > deb http://lackof.org/taggart/debian woody/chkrootkit main
> > deb-src http://lackof.org/taggart/debian woody/chkrootkit main
> >
> > deb http://ftp.debian.org/debian stable main non-free contrib
> > deb-src http://ftp.debian.org/debian stable main non-free contrib
> > deb http://non-us.debian.org/debian-non-US stable/non-US main contrib
> non-free
> > deb-src http://non-us.debian.org/debian-non-US stable/non-US main
> > contrib non-free
> >
> > deb http://security.debian.org/ stable/updates main contrib non-free


More information about the bad mailing list