Package: apt-file
Version: 2.0.8.2
Severity: important

When invoking apt-file, I see this:

# apt-file search md5sum
E: Can't open /debian//etc/apt//debian/apt/sources.list: No such file or 
directory
# 

My /etc/apt/sources.list is not used at all on my system and infact, it does
not attempt to read it (that's good actually).  However, it doesn't get the
path correct as seen above.

strace -eopen shows the following (libraries were removed):
open("/etc/apt/apt-file.conf", O_RDONLY|O_LARGEFILE) = 5
open("/etc/apt/apt.conf.d/", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 5
open("/etc/apt/apt.conf.d/00mirror", O_RDONLY|O_LARGEFILE) = 5
open("/etc/apt/apt.conf.d/00noauth", O_RDONLY|O_LARGEFILE) = 5
open("/etc/apt/apt.conf.d/01autoremove", O_RDONLY|O_LARGEFILE) = 5
open("/etc/apt/apt.conf.d/70debconf", O_RDONLY|O_LARGEFILE) = 5
open("/etc/apt/apt.conf.d/show_upgraded", O_RDONLY|O_LARGEFILE) = 5
open("/debian//etc/apt//debian/apt/sources.list", O_RDONLY|O_LARGEFILE) = -1 
ENOENT (No such file or directory)
E: Can't open /debian//etc/apt//debian/apt/sources.list: No such file or 
directory

The contents of the 00noauth, 01autoremove, 70debconf, and show_upgraded are
not relevent, however, 00mirror is:
Dir "/debian/"
{
 State "apt/"
 {
  Lists "lists/";
 };
 Cache "apt/cache/"
 {
  Archives "/var/cache/apt/archives/";
  srcpkgcache "srcpkgcache.bin";
  pkgcache "pkgcache.bin";
 };
 Etc "/etc/apt/"
 {
  SourceList "/debian/apt/sources.list";
 };
};

This has never failed me for apt-get and apt-cache, but apt-file barfs at it.
All my systems NFS mount /debian (except for the server of course, and I
never have to use apt-get update !!!)

-- System Information:
Debian Release: 3.1
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.20-pae
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages apt-file depends on:
ii  gzip                          1.3.5-9    The GNU compression utility
ii  libapt-pkg-perl               0.1.21+b1  Perl interface to libapt-pkg
ii  libconfig-file-perl           1.4-2      Parses simple configuration files
ii  perl                          5.8.8-7    Larry Wall's Practical Extraction 
ii  wget                          1.10.2-3   retrieves files from the web

apt-file recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to