Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.rc > #392023

Bug#1078608: apt update silently leaves old index data

From Ben Hutchings <ben@decadent.org.uk>
Newsgroups linux.debian.bugs.rc
Subject Bug#1078608: apt update silently leaves old index data
Date 2025-05-18 00:40 +0200
Message-ID <KNymd-3QFf-1@gated-at.bofh.it> (permalink)
References (5 earlier) <KCQmu-eopL-7@gated-at.bofh.it> <KCS4V-epHx-1@gated-at.bofh.it> <KGbb3-gEge-11@gated-at.bofh.it> <JcYBb-5Z7x-3@gated-at.bofh.it> <KGbb3-gEge-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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.

(The default answers are set for my VM snapshot which now has very
outdated InRelease files, so I know that the Pulse() after a
ReleaseInfoChanges() is the place to stop.)

Ben.

-- 
Ben Hutchings
If at first you don't succeed, you're doing about average.

Back to linux.debian.bugs.rc | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Bug#1078608: apt update silently leaves old index data David Kalnischkies <david@kalnischkies.de> - 2025-04-17 23:10 +0200
  Bug#1078608: apt update silently leaves old index data Laurent Bigonville <bigon@debian.org> - 2025-04-18 11:40 +0200
    Bug#1078608: apt update silently leaves old index data David Kalnischkies <david@kalnischkies.de> - 2025-04-18 13:30 +0200
      Bug#1078608: apt update silently leaves old index data Ben Hutchings <ben@decadent.org.uk> - 2025-05-18 00:40 +0200
        Bug#1078608: apt update silently leaves old index data Julian Andres Klode <jak@jak-linux.org> - 2025-05-18 09:50 +0200
          Processed: Re: Bug#1078608: apt update silently leaves old index data "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-05-18 09:50 +0200

csiph-web