Control: tags -1 moreinfo Christian Marillat:
Package: apt-file Version: 3.3 Severity: serious Dear Maintainer, Here are steps to reproduce ,---- | $ apt-file search debian | Finding relevant cache files to search ...E: The cache is empty. You need to run "apt-file update" first. `---- ,---- | $ sudo apt-file update | Atteint :1 http://ftp.fr.debian.org/debian unstable InRelease | Atteint :2 https://dl.google.com/linux/chrome/deb stable InRelease | Atteint :3 https://incoming.debian.org/debian-buildd buildd-unstable InRelease | 5 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir. `---- ,---- | $ apt-file search debian | Finding relevant cache files to search ...E: The cache is empty. You need to run "apt-file update" first. `---- ,---- | $ ls -la /var/lib/apt/lists/ | total 164868 | [...] `---- Christian [...]
Hi ChristianThe error from apt-file is correct in the sense that there are no `Contents` files in your apt-cache (it is possibly misleading in other ways).
I would expect at least ftp.fr.debian.org to provide Contents files. I assume that your root issue is therefore that your apt configuration somehow excludes Contents files for all the sites you are using. The default apt-file configuration will fetch Contents files for deb files (per /etc/apt/apt.conf.d/50apt-file.conf).
Could you please provide a dump of your apt config (specifically the "Acquire::IndexTargets" prefixed once). Additionally, please include your /etc/apt/apt-file.conf if you have one (it is no longer necessary, so it might have been removed on upgrade if it was unchanged).
Best regards, Niels
Attachment:
OpenPGP_signature.asc
Description: OpenPGP digital signature