[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#221666: marked as done (refuses to download if /var/cache/apt/archives is on ram disk)



Your message dated Wed, 19 Nov 2003 12:42:45 -0500
with message-id <20031119174245.GQ9377@dijkstra.csh.rit.edu>
and subject line Bug#221666: refuses to download if /var/cache/apt/archives is on ram disk
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 19 Nov 2003 13:50:58 +0000
>From oliver.kurth@cyclades.de Wed Nov 19 07:50:57 2003
Return-path: <oliver.kurth@cyclades.de>
Received: from mail.linux-router.org (www.cyclades.de) [62.225.173.194] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AMSjR-0003qS-00; Wed, 19 Nov 2003 07:50:57 -0600
Received: from [192.168.10.32] (helo=oliver.cyclades.de)
	by www.cyclades.de with asmtp (Exim 3.35 #1 (Debian))
	id 1AMSjP-0003w8-00; Wed, 19 Nov 2003 14:50:55 +0100
Received: from oku by tammuz with local (masqmail 0.2.20) id
 1AMSg5-2KQ-00; Wed, 19 Nov 2003 14:47:29 +0100
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
From: Oliver Kurth <oliver.kurth@cyclades.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: refuses to download if /var/cache/apt/archives is on ram disk
X-Mailer: reportbug 2.36
Date: Wed, 19 Nov 2003 14:47:29 +0100
Message-ID: <[🔎] 1AMSg5-2KQ-00@tammuz>
X-MailScanner: Found to be clean
X-MailScanner-SpamCheck: 
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-5.0 required=4.0
	tests=HAS_PACKAGE
	version=2.53-bugs.debian.org_2003_11_15
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15 (1.174.2.15-2003-03-30-exp)

Package: apt
Version: 0.5.14
Severity: minor

Hi,

when the directory /var/cache/apt/archives is mounted to a ram disk
(ramfs), apt-get refuses to download packages:

tammuz:~# apt-get upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
bsdmainutils console-common console-data dnsutils gpdf
libdbix-searchbuilder-perl libdns11
libisc7 liblwres1 libpango1.0-0 libpango1.0-common libtool man-db
python python2.2 python2.3
zlib1g zlib1g-dev
18 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 9715kB of archives.
After unpacking 1148kB of additional disk space will be used.
E: You don't have enough free space in /var/cache/apt/archives/.
tammuz:~# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext3 rw 0 0
proc /proc proc rw 0 0
devpts /dev/pts devpts rw 0 0
/dev/hda1 /boot ext3 rw 0 0
/dev/hda5 /var ext3 rw 0 0
/dev/hda6 /home ext3 rw 0 0
/dev/loop0 /mnt/efs ext2 rw,nosuid,nodev,noexec 0 0
none /mnt/rd ramfs rw 0 0
none /var/cache/apt/archives ramfs rw 0 0
tammuz:~# df /mnt/rd/
Filesystem           1K-blocks      Used Available Use% Mounted on
none                         0         0         0   -  /mnt/rd
tammuz:~#
      

Okay, the reason is that there seems to be no space on that partition,
but it grows dynamically. So there /is/ enough space.

A proper solution is probably to check if it is a ramfs partition, in
that case assume there is enough space available, or better as much
as there is free memory.

The easy solution would be to have a command line option to override
that check.

See also #214119, a solution for that bug may be combined with a
solution to this one.


Sidenote: the reason I want to use a ram disk is that I want to use apt
on an embedded system with a compact flash as root file system. That
space is limited, and also there should not be too many rewrites on a
CF. Another advantage is that /var/cache/apt/archives is automatically
freed on reboot.

Greetings,
Oliver

-- Package-specific info:

-- apt-config dump --

APT "";
APT::Architecture "i386";
APT::Build-Essential "";
APT::Build-Essential:: "build-essential";
Dir "/";
Dir::State "var/lib/apt/";
Dir::State::lists "lists/";
Dir::State::cdroms "cdroms.list";
Dir::State::userstatus "status.user";
Dir::State::status "/var/lib/dpkg/status";
Dir::Cache "var/cache/apt/";
Dir::Cache::archives "archives/";
Dir::Cache::srcpkgcache "srcpkgcache.bin";
Dir::Cache::pkgcache "pkgcache.bin";
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Bin "";
Dir::Bin::methods "/usr/lib/apt/methods";
Dir::Bin::dpkg "/usr/bin/dpkg";
DPkg "";
DPkg::Pre-Install-Pkgs "";
DPkg::Pre-Install-Pkgs:: "/usr/sbin/dpkg-preconfigure --apt || true";

-- (no /etc/apt/preferences present) --


-- (/etc/apt/sources.list present, but not submitted) --


-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux tammuz 2.4.21 #4 Wed Oct 22 10:37:55 CEST 2003 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages apt depends on:
ii  libc6                       2.3.2.ds1-10 GNU C Library: Shared libraries an
ii  libgcc1                     1:3.3.2-4    GCC support library
ii  libstdc++5                  1:3.3.2-4    The GNU Standard C++ Library v3

-- no debconf information


---------------------------------------
Received: (at 221666-done) by bugs.debian.org; 19 Nov 2003 17:42:47 +0000
>From mdz@csh.rit.edu Wed Nov 19 11:42:46 2003
Return-path: <mdz@csh.rit.edu>
Received: from blacksheep.csh.rit.edu [129.21.60.6] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 1AMWLm-0000bu-00; Wed, 19 Nov 2003 11:42:46 -0600
Received: from dijkstra (dijkstra.csh.rit.edu [129.21.60.152])
	by blacksheep.csh.rit.edu (Postfix) with ESMTP
	id 19B0C1CE; Wed, 19 Nov 2003 12:42:46 -0500 (EST)
Received: from mdz by dijkstra with local (Exim 3.35 #1 (Debian))
	id 1AMWLl-0006p5-00; Wed, 19 Nov 2003 12:42:45 -0500
Date: Wed, 19 Nov 2003 12:42:45 -0500
From: Matt Zimmerman <mdz@debian.org>
To: Adam Heath <doogie@debian.org>
Cc: 221666-done@bugs.debian.org,
	Oliver Kurth <oliver.kurth@cyclades.de>
Subject: Re: Bug#221666: refuses to download if /var/cache/apt/archives is on ram disk
Message-ID: <20031119174245.GQ9377@dijkstra.csh.rit.edu>
References: <[🔎] 20031119171316.GN9377@dijkstra.csh.rit.edu> <[🔎] Pine.LNX.4.44.0311191138190.1282-100000@gradall.private.brainfood.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[🔎] Pine.LNX.4.44.0311191138190.1282-100000@gradall.private.brainfood.com>
User-Agent: Mutt/1.3.28i
Sender: Matt Zimmerman <mdz@csh.rit.edu>
Delivered-To: 221666-done@bugs.debian.org
X-Spam-Status: No, hits=-2.5 required=4.0
	tests=EMAIL_ATTRIBUTION
	version=2.53-bugs.debian.org_2003_11_15
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_11_15 (1.174.2.15-2003-03-30-exp)

On Wed, Nov 19, 2003 at 11:38:33AM -0600, Adam Heath wrote:
> On Wed, 19 Nov 2003, Matt Zimmerman wrote:
> 
> > I think it would be even better if ramfs reported something useful from
> > statvfs; presumably it does in fact have limits (such as virtual memory
> > size) and knows how much is allociated.
> 
> I'd close the bug then, as this is a ramfs bug.

I agree.

-- 
 - mdz



Reply to: