On Tue, 13 Aug 2024 19:57:58 +0200 Sven Bartscher <kritzefitz@debian.org> wrote:
for a while I've been having the problem with `apt update` that it
pretends to complete successfully, but it didn't actually pull updated index data. I run it like this:
$ sudo apt-get update
[sudo] Passwort für sven:
OK:1 https://deb.debian.org/debian testing InRelease
OK:2 https://deb.debian.org/debian unstable InRelease
OK:3 https://deb.debian.org/debian experimental InRelease
OK:4 https://deb.debian.org/debian-debug testing-debug InRelease
OK:5 https://deb.debian.org/debian-debug unstable-debug InRelease
OK:6 https://deb.debian.org/debian-debug experimental-debug InRelease Paketlisten werden gelesen… Fertig
I do have the same issue
I enabled debugging in apt (Debug::Acquire::http=true) and I see the following:[…]
GET /debian/dists/unstable/InRelease HTTP/1.1
[…]If-Modified-Since: Wed, 16 Apr 2025 08:18:27 GMT
Answer for: http://ftp.be.debian.org/debian/dists/unstable/InRelease HTTP/1.1 304 Not Modified
Date: Wed, 16 Apr 2025 09:07:23 GMT
Server: Apache/2.4.62 (Debian)
Last-Modified: Wed, 16 Apr 2025 08:18:27 GMT
-rw-r--r-- 1 root root 302323 15 avr 04:01 ftp.be.debian.org_debian_dists_unstable_contrib_binary-amd64_Packages
severity 1078608 serious
severity 1078608 serious
thanks
On Tue, 13 Aug 2024 19:57:58 +0200 Sven Bartscher <kritzefitz@debian.org> wrote:
Package: apt
Version: 2.9.7
Severity: normal
Hi,
for a while I've been having the problem with `apt update` that it
pretends to complete successfully, but it didn't actually pull updated
index data. I run it like this:
$ sudo apt-get update
[sudo] Passwort für sven:
OK:1 https://deb.debian.org/debian testing InRelease
OK:2 https://deb.debian.org/debian unstable InRelease
OK:3 https://deb.debian.org/debian experimental InRelease
OK:4 https://deb.debian.org/debian-debug testing-debug InRelease
OK:5 https://deb.debian.org/debian-debug unstable-debug InRelease
OK:6 https://deb.debian.org/debian-debug experimental-debug InRelease
Paketlisten werden gelesen… Fertig
I do have the same issue
I enabled debugging in apt (Debug::Acquire::http=true) and I see the following:
GET /debian/dists/unstable/InRelease HTTP/1.1
Host: ftp.be.debian.org
Cache-Control: max-age=0
Accept: text/*
If-Modified-Since: Wed, 16 Apr 2025 08:18:27 GMT
User-Agent: Debian APT-HTTP/1.3 (3.0.0)
Answer for: http://ftp.be.debian.org/debian/dists/unstable/InRelease
HTTP/1.1 304 Not Modified
Date: Wed, 16 Apr 2025 09:07:23 GMT
Server: Apache/2.4.62 (Debian)
Last-Modified: Wed, 16 Apr 2025 08:18:27 GMT
ETag: "32185-632e0ee051d8b"
Accept-Ranges: bytes
In /var/lib/apt/lists I see
-rw-r--r-- 1 root root 302323 15 avr 04:01 ftp.be.debian.org_debian_dists_unstable_contrib_binary-amd64_Packages
-rw-r--r-- 1 root root 865256 13 avr 04:10 ftp.be.debian.org_debian_dists_unstable_contrib_Contents-all.lz4
-rw-r--r-- 1 root root 342240 6 avr 21:59 ftp.be.debian.org_debian_dists_unstable_contrib_Contents-amd64.lz4
-rw-r--r-- 1 root root 46332 13 avr 22:16 ftp.be.debian.org_debian_dists_unstable_contrib_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root 63450 8 avr 16:18 ftp.be.debian.org_debian_dists_unstable_contrib_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root 137064 8 avr 16:18 ftp.be.debian.org_debian_dists_unstable_contrib_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root 230711 13 avr 04:09 ftp.be.debian.org_debian_dists_unstable_contrib_i18n_Translation-en
-rw-r--r-- 1 root root 277653 15 avr 04:01 ftp.be.debian.org_debian_dists_unstable_contrib_source_Sources
-rw-r--r-- 1 root root 205189 16 avr 10:18 ftp.be.debian.org_debian_dists_unstable_InRelease
-rw-r--r-- 1 root root 59849824 15 avr 09:59 ftp.be.debian.org_debian_dists_unstable_main_binary-amd64_Packages
-rw-r--r-- 1 root root 71261008 15 avr 04:05 ftp.be.debian.org_debian_dists_unstable_main_Contents-all.lz4
-rw-r--r-- 1 root root 24680232 15 avr 10:00 ftp.be.debian.org_debian_dists_unstable_main_Contents-amd64.lz4
-rw-r--r-- 1 root root 8078991 15 avr 04:10 ftp.be.debian.org_debian_dists_unstable_main_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root 3759152 15 avr 04:13 ftp.be.debian.org_debian_dists_unstable_main_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root 7713726 15 avr 04:13 ftp.be.debian.org_debian_dists_unstable_main_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root 36755629 15 avr 09:58 ftp.be.debian.org_debian_dists_unstable_main_i18n_Translation-en
-rw-r--r-- 1 root root 15793455 15 avr 04:55 ftp.be.debian.org_debian_dists_unstable_main_i18n_Translation-fr
-rw-r--r-- 1 root root 62377703 15 avr 09:59 ftp.be.debian.org_debian_dists_unstable_main_source_Sources
-rw-r--r-- 1 root root 868454 12 avr 22:04 ftp.be.debian.org_debian_dists_unstable_non-free_binary-amd64_Packages
-rw-r--r-- 1 root root 1546853 6 avr 21:59 ftp.be.debian.org_debian_dists_unstable_non-free_Contents-all.lz4
-rw-r--r-- 1 root root 195881 12 avr 04:03 ftp.be.debian.org_debian_dists_unstable_non-free_Contents-amd64.lz4
-rw-r--r-- 1 root root 5554 13 avr 04:19 ftp.be.debian.org_debian_dists_unstable_non-free_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root 1372 14 mar 03:19 ftp.be.debian.org_debian_dists_unstable_non-free_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root 28090 14 mar 03:19 ftp.be.debian.org_debian_dists_unstable_non-free_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root 32203 14 avr 22:07 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_binary-amd64_Packages
-rw-r--r-- 1 root root 46620 14 avr 22:08 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_Contents-all.lz4
-rw-r--r-- 1 root root 1983 24 mar 09:04 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_Contents-amd64.lz4
-rw-r--r-- 1 root root 38125 15 avr 04:17 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_dep11_Components-amd64.yml.gz
-rw-r--r-- 1 root root 29 8 jan 2023 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_dep11_icons-48x48.tar.gz
-rw-r--r-- 1 root root 29 8 jan 2023 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_dep11_icons-64x64.tar.gz
-rw-r--r-- 1 root root 15272 14 avr 22:07 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_i18n_Translation-en
-rw-r--r-- 1 root root 37646 14 avr 22:07 ftp.be.debian.org_debian_dists_unstable_non-free-firmware_source_Sources
-rw-r--r-- 1 root root 697879 12 avr 04:02 ftp.be.debian.org_debian_dists_unstable_non-free_i18n_Translation-en
-rw-r--r-- 1 root root 441330 12 avr 22:04 ftp.be.debian.org_debian_dists_unstable_non-free_source_Sources
So it seems that the InRelease file was downloaded, but not the rest
If I delete the InRelease file, the other files are being downloaded
On April 16, 2025 11:23:03 AM GMT+02:00, Laurent Bigonville <bigon@debian.org> wrote:
What is the Date field in the InRelease file?[...]So it seems that the InRelease file was downloaded, but not the rest
If I delete the InRelease file, the other files are being downloaded
The interesting thing to discover now is what happened in these 24 hours
on your system that lists/ got a new Release file (or, well InRelease),
but not new indexes… unsurprisingly that shouldn't happen, but so far nobody has provided any leads as people notice only after the fact and
at that point any debugging is pointless.
It's a laptop with a desktop environment and PackageKit is installed, not sure whether PK could impact this. Also the laptop has been probably restarted in between so that means that PK has restarted and probably tried to update the indexes.
severity 1078608 seriousNot that it makes any practical difference in the apt team if you tag
it wishlist or critical, but I am curious: Which section in the Debian policy is apt violating here? Or have I just missed you joining the
apt team and/or Debian Release team? (Seehttps://www.debian.org/Bugs/Developer#severities)
Some maintainers can get really angry if you use the wrong severities,
so ideally, next time, you should give a justification at least.
Serious severity is:
is a severe violation of Debian policy (roughly, it violates a
"must" or "required" directive), or, in the package maintainer's
or release manager's opinion, makes the package unsuitable for
release.
In my opinion, having trouble to update a system makes apt "unsuitable for release". And marking it "serious" makes this visible to the release manager team.
- If I mask packagekit.service before booting (using a rescue shell),
then none of the files are updated automatically. Running 'apt
update' updates them all as expected.
So it seems like this problem may be specific to PackageKit.
Sven and Laurent, do your affected systems have PackageKit installed?
On Sun, 2025-04-27 at 16:18 +0200, Ben Hutchings wrote:
[...]
- If I mask packagekit.service before booting (using a rescue shell),
then none of the files are updated automatically. Running 'apt
update' updates them all as expected.
So it seems like this problem may be specific to PackageKit.
Sven and Laurent, do your affected systems have PackageKit installed?
OK, so I think this is confirmed as somehow PackageKit-related.
I had a look through the code for "apt update" and the PackageKit APT >back-end to see what might be different. I think this has something to
do with the different pkgAcquireStatus subclasses they use, but I
couldn't identify a specific bug in PackageKit.
I experimented with writing a test program that implements its own >pkgAcquireStatus, and I I'm attaching the source for that. It needs to
be run on a system where a local InRelease file is out of date. If you >answer "no" to the Pulse() after the *second* time the InRelease file is >reported done, that should reproduce the broken state.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 151:09:00 |
Calls: | 10,383 |
Files: | 14,054 |
Messages: | 6,417,797 |