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

Bug#67891: apt.conf dir:: settings don't work



package: apt
version: 0.3.19
severity: normal

This is on two potato systems.
I was looking for a way to have them share package lists (so I wouldn't have
to pull these in twice, over modem) and cache dirs (for obvious reasons).

I noticed when updating packages lists on the second machine (first had been
updated just before), that it didn't seem to work by setting dir:: directives
in apt.conf and pointing to nfs mounted directory's from the first system.
When verifying, it turned out that it hadn't worked indeed.
I then tried a few things with the upgrade step, and apparently the dir::
options do work, they just don't work from apt.conf.
A little output follows:

maryjane:~# cat /etc/apt/apt.conf
// Show upgraded packages as well as newly installed
APT::Get::Show-Upgraded "true";
Dir::State "/mnt/lucretia/var/state/apt/"
Dir::Cache::archives "/mnt/lucretia/var/cache/apt/archives/"
// Pre-configure all packages before they are installed.
// (Automatically added by debconf.)
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";};

maryjane:~# apt-get dselect-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
  bsdmainutils bsdutils cpp debconf dpkg dpkg-dev exim fileutils glide2-base gpm gs ldso libglide2-v2 libopenldap-runtime
  libopenldap1 libpam-modules libpam-runtime libpam0g libstdc++2.10 lynx-ssl mailx modutils mount nfs-common nfs-kernel-server
  passwd proftpd setserial shellutils ssh sysvinit tcpdump util-linux wdm
34 packages upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 916kB/8925kB of archives. After unpacking 1240kB will be used.
Do you want to continue? [Y/n] n
Abort.
maryjane:~# apt-get -o Dir::Cache::archives="/mnt/lucretia/var/cache/apt/archives/" dselect-upgrade
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be upgraded
  bsdmainutils bsdutils cpp debconf dpkg dpkg-dev exim fileutils glide2-base gpm gs ldso libglide2-v2 libopenldap-runtime
  libopenldap1 libpam-modules libpam-runtime libpam0g libstdc++2.10 lynx-ssl mailx modutils mount nfs-common nfs-kernel-server
  passwd proftpd setserial shellutils ssh sysvinit tcpdump util-linux wdm
34 packages upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Need to get 683kB/8925kB of archives. After unpacking 1240kB will be used.
Do you want to continue? [Y/n] n
Abort.


Notice the two different numbers for packages which are needed to download,
this is because in the nfs mounted archive cache there are already an number
of downloaded packages.
(Also, neither commands need to download the full 8Mb of packages, because
part of the packages were from a file:/ URI - just in case you'd wonder)
I also tried setting dir::cache::archives="/mnt/.../" in apt.conf, just to
make sure, but no difference.

Regards,

Filip

--
"The nice thing about Windows is - It does not just crash, it displays a
dialog box and lets you press 'OK' first."
	-- Arno Schaefer

Attachment: pgp6lSUWUdqHf.pgp
Description: PGP signature


Reply to: