Your message dated Mon, 18 Nov 2024 12:18:16 +0100
with message-id <9070f6b1-a6c8-4dec-aee7-baf5321b2...@thykier.net>
and subject line Re: Bug#1087606: apt-file: Stop working after apt upgrade to 
2.9.11
has caused the Debian Bug report #1087606,
regarding apt-file: Stop working after apt upgrade to 2.9.11
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 this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1087606: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1087606
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
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
| drwxr-xr-x 4 _apt root    16384 16 nov.  09:18 .
| drwxr-xr-x 5 _apt root     4096 16 nov.  07:49 ..
| drwxr-xr-x 2 _apt root     4096  4 janv.  2018 auxfiles
| -rw-r--r-- 1 root root     1825 16 nov.  09:07 
dl.google.com_linux_chrome_deb_dists_stable_InRelease
| -rw-r--r-- 1 root root     5527 16 nov.  09:07 
dl.google.com_linux_chrome_deb_dists_stable_main_binary-amd64_Packages
| -rw-r--r-- 1 root root   284492 16 nov.  03:00 
ftp.fr.debian.org_debian_dists_unstable_contrib_binary-amd64_Packages
| -rw-r--r-- 1 root root   220732 16 nov.  03:00 
ftp.fr.debian.org_debian_dists_unstable_contrib_binary-i386_Packages
| -rw-r--r-- 1 root root    30511 14 nov.  21:16 
ftp.fr.debian.org_debian_dists_unstable_contrib_dep11_Components-amd64.yml.gz
| -rw-r--r-- 1 root root   219253 14 nov.  03:15 
ftp.fr.debian.org_debian_dists_unstable_contrib_i18n_Translation-en
| -rw-r--r-- 1 root root   202207 16 nov.  03:15 
ftp.fr.debian.org_debian_dists_unstable_InRelease
| -rw-r--r-- 1 root root 58910258 16 nov.  03:01 
ftp.fr.debian.org_debian_dists_unstable_main_binary-amd64_Packages
| -rw-r--r-- 1 root root 57285696 16 nov.  03:01 
ftp.fr.debian.org_debian_dists_unstable_main_binary-i386_Packages
| -rw-r--r-- 1 root root  7695611 15 nov.  21:10 
ftp.fr.debian.org_debian_dists_unstable_main_dep11_Components-amd64.yml.gz
| -rw-r--r-- 1 root root 36520198 15 nov.  21:05 
ftp.fr.debian.org_debian_dists_unstable_main_i18n_Translation-en
| -rw-r--r-- 1 root root   783970 14 nov.  08:59 
ftp.fr.debian.org_debian_dists_unstable_non-free_binary-amd64_Packages
| -rw-r--r-- 1 root root   550528 11 nov.  14:59 
ftp.fr.debian.org_debian_dists_unstable_non-free_binary-i386_Packages
| -rw-r--r-- 1 root root     5238 14 nov.  15:16 
ftp.fr.debian.org_debian_dists_unstable_non-free_dep11_Components-amd64.yml.gz
| -rw-r--r-- 1 root root    31400 15 nov.  09:03 
ftp.fr.debian.org_debian_dists_unstable_non-free-firmware_binary-amd64_Packages
| -rw-r--r-- 1 root root    29898 15 nov.  09:03 
ftp.fr.debian.org_debian_dists_unstable_non-free-firmware_binary-i386_Packages
| -rw-r--r-- 1 root root    34789 15 nov.  15:16 
ftp.fr.debian.org_debian_dists_unstable_non-free-firmware_dep11_Components-amd64.yml.gz
| -rw-r--r-- 1 root root    14876 11 nov.  20:58 
ftp.fr.debian.org_debian_dists_unstable_non-free-firmware_i18n_Translation-en
| -rw-r--r-- 1 root root   637902  8 nov.  02:58 
ftp.fr.debian.org_debian_dists_unstable_non-free_i18n_Translation-en
| -rw-r--r-- 1 root root     4529 16 nov.  01:06 
incoming.debian.org_debian-buildd_dists_buildd-unstable_contrib_binary-amd64_Packages
| -rw-r--r-- 1 root root     3713 15 nov.  23:30 
incoming.debian.org_debian-buildd_dists_buildd-unstable_contrib_binary-i386_Packages
| -rw-r--r-- 1 root root     2379 16 nov.  01:06 
incoming.debian.org_debian-buildd_dists_buildd-unstable_contrib_i18n_Translation-en
| -rw-r--r-- 1 root root    53772 16 nov.  08:50 
incoming.debian.org_debian-buildd_dists_buildd-unstable_InRelease
| -rw-r--r-- 1 root root  1187545 16 nov.  08:49 
incoming.debian.org_debian-buildd_dists_buildd-unstable_main_binary-amd64_Packages
| -rw-r--r-- 1 root root  1139890 16 nov.  08:49 
incoming.debian.org_debian-buildd_dists_buildd-unstable_main_binary-i386_Packages
| -rw-r--r-- 1 root root   838634 16 nov.  08:49 
incoming.debian.org_debian-buildd_dists_buildd-unstable_main_i18n_Translation-en
| -rw-r--r-- 1 root root      709 15 nov.  04:07 
incoming.debian.org_debian-buildd_dists_buildd-unstable_non-free-firmware_binary-amd64_Packages
| -rw-r--r-- 1 root root      707 15 nov.  04:07 
incoming.debian.org_debian-buildd_dists_buildd-unstable_non-free-firmware_binary-i386_Packages
| -rw-r--r-- 1 root root      439 15 nov.  04:07 
incoming.debian.org_debian-buildd_dists_buildd-unstable_non-free-firmware_i18n_Translation-en
| -rw-r----- 1 root root        0 28 févr.  2020 lock
| drwx------ 2 _apt root    20480 16 nov.  09:22 partial
`----

Christian


-- System Information:
Debian Release: trixie/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.8-1-custom (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages apt-file depends on:
ii  apt                      2.9.11
ii  libapt-pkg-perl          0.1.40+b6
ii  libregexp-assemble-perl  0.38-2
ii  perl                     5.40.0-7

apt-file recommends no packages.

apt-file suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
Christian Marillat:
On 18 nov. 2024 10:11, Niels Thykier <ni...@thykier.net> wrote:

Control: tags -1 moreinfo


[...]

Hi Christian

Hi Niels,

The 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've found the problem.

First I use apt-file since years without a configuration file.

apt-file left a configuration file.

/etc/apt/apt.conf.d/60disable-contents-fetching.conf

I see a changelog entry in apt-file 3.1.4 about a typo in this file
but nothing related of the removal of this file.

Christian

That file (60disable-contents-fetching.conf) is mentioned only in the changelog, the README and in an example script people can run if they only want Contents files being fetched when `apt-file update` is run (by default, `apt update` will fetch them now).

The script was never run automatically on upgrade (nor was it intended to). This was a very deliberate choice on my part when I started on the apt-file/3 version, since I wanted `apt update` to replace `apt-file update` by default. The script would also have created an `apt-file.conf` plus `/var/lib/apt-file/lists/partial`, which is a way to identify/confirm whether the script was run. But as said, the script was never run on upgrades, so it does not explain how you ended up in this state.

For now, I will close this bug. There is no bug in any present supported version of apt-file, so there is nothing I can fix at the current rate.

Best regards,
Niels

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


--- End Message ---

Reply via email to