vnix$ apt-file -v search foobar 2>&1 >/dev/null | sed -e '/^D: Search in /!d' -e 's///' -e 's/\\//g' | xargs file
/var/cache/apt/apt-file/fi.archive.ubuntu.com_ubuntu_dists_gutsy_Contents-amd64.gz: gzip compressed data, from Unix, max compression
/var/cache/apt/apt-file/fi.archive.ubuntu.com_ubuntu_dists_gutsy-updates_Contents-amd64.gz: HTML document text
/var/cache/apt/apt-file/fi.archive.ubuntu.com_ubuntu_dists_gutsy_Contents-amd64.gz: gzip compressed data, from Unix, max compression
/var/cache/apt/apt-file/fi.archive.ubuntu.com_ubuntu_dists_gutsy-backports_Contents-amd64.gz: HTML document text
vnix$ apt-file search foobar
gzip: /var/cache/apt/apt-file/fi.archive.ubuntu.com_ubuntu_dists_gutsy-updates_Contents-amd64.gz: not in gzip format
The HTML documents in the output from "file" are due to bug 176753 and the curious set-up at the Funet mirror which redirects to a long HTML page when a file cannot be found. They are the reason for the gzip warnings in the final invocation.
I think this confirms your hypothesis. (The fact that these files are so old I think also speaks for having a periodic cron job update these files; see also bug 154180 although that's tangential.)
Actually, you'll need to redirect stderr in order for the grep to do anything useful.
vnix$ apt-file -v search foobar 2>&1 >/dev/null | grep '^D: Search in' cache\/ apt\/apt\ -file\/ fi\.archive\ .ubuntu\ .com_ubuntu_ dists_gutsy_ Contents\ -amd64\ .gz cache\/ apt\/apt\ -file\/ fi\.archive\ .ubuntu\ .com_ubuntu_ dists_gutsy\ -updates_ Contents\ -amd64\ .gz cache\/ apt\/apt\ -file\/ fi\.archive\ .ubuntu\ .com_ubuntu_ dists_gutsy_ Contents\ -amd64\ .gz cache\/ apt\/apt\ -file\/ fi\.archive\ .ubuntu\ .com_ubuntu_ dists_gutsy\ -backports_ Contents\ -amd64\ .gz
D: Search in \/var\/
D: Search in \/var\/
D: Search in \/var\/
D: Search in \/var\/
vnix$ apt-file -v search foobar 2>&1 >/dev/null | sed -e '/^D: Search in /!d' -e 's///' -e 's/\\//g' | xargs ls -l apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy- backports_ Contents- amd64.gz apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy_ Contents- amd64.gz apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy_ Contents- amd64.gz apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy- updates_ Contents- amd64.gz
-rw-r--r-- 1 root root 6170 2006-04-07 16:04 /var/cache/
-rw-r--r-- 1 root root 13723633 2007-10-17 06:02 /var/cache/
-rw-r--r-- 1 root root 13723633 2007-10-17 06:02 /var/cache/
-rw-r--r-- 1 root root 6170 2006-04-07 16:04 /var/cache/
vnix$ apt-file -v search foobar 2>&1 >/dev/null | sed -e '/^D: Search in /!d' -e 's///' -e 's/\\//g' | xargs file apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy_ Contents- amd64.gz: gzip compressed data, from Unix, max compression apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy- updates_ Contents- amd64.gz: HTML document text apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy_ Contents- amd64.gz: gzip compressed data, from Unix, max compression apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy- backports_ Contents- amd64.gz: HTML document text
/var/cache/
/var/cache/
/var/cache/
/var/cache/
vnix$ apt-file search foobar
gzip: /var/cache/ apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy- updates_ Contents- amd64.gz: not in gzip format
gzip: /var/cache/ apt/apt- file/fi. archive. ubuntu. com_ubuntu_ dists_gutsy- backports_ Contents- amd64.gz: not in gzip format doc/doc- iana/html/ assignments/ foobar- af-numbers doc/doc- iana/html/ assignments/ foobar- af-numbers ecos/packages/ fs/rom/ v2_0/tests/ testromfs/ var/foobar ecos/packages/ fs/rom/ v2_0/tests/ testromfs/ var/foobar picons/ usenix/ edu/umd/ eng/foobar/ face.gif picons/ usenix/ edu/umd/ eng/foobar/ face.gif picons/ usenix/ edu/umd/ eng/foobar/ face.xbm picons/ usenix/ edu/umd/ eng/foobar/ face.xbm picons/ usenix/ edu/umd/ eng/foobar/ face.xpm picons/ usenix/ edu/umd/ eng/foobar/ face.xpm latex-extra: usr/share/ doc/texlive- doc/latex/ examdesign/ foobar. tex latex-extra: usr/share/ doc/texlive- doc/latex/ examdesign/ foobar. tex latex-extra: usr/share/ doc/texlive- latex-extra/ latex/examdesig n/foobar. tex latex-extra: usr/share/ doc/texlive- latex-extra/ latex/examdesig n/foobar. tex games/xpilot- ng/maps/ foobar. xp games/xpilot- ng/maps/ foobar. xp
doc-iana: usr/share/
doc-iana: usr/share/
ecos: usr/src/
ecos: usr/src/
picon-usenix: usr/share/
picon-usenix: usr/share/
picon-usenix: usr/share/
picon-usenix: usr/share/
picon-usenix: usr/share/
picon-usenix: usr/share/
texlive-
texlive-
texlive-
texlive-
xpilot-extra: usr/share/
xpilot-extra: usr/share/
vnix$ uname -a
Linux tadpole 2.6.22-14-generic #1 SMP Thu Jan 31 23:33:13 UTC 2008 x86_64 GNU/Linux
vnix$ cat /etc/lsb-release RELEASE= 7.10 CODENAME= gutsy DESCRIPTION= "Ubuntu 7.10"
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
The HTML documents in the output from "file" are due to bug 176753 and the curious set-up at the Funet mirror which redirects to a long HTML page when a file cannot be found. They are the reason for the gzip warnings in the final invocation.
I think this confirms your hypothesis. (The fact that these files are so old I think also speaks for having a periodic cron job update these files; see also bug 154180 although that's tangential.)