Comment 0 for bug 1995481

Revision history for this message
Lenin (gagarin) wrote :

the apt check from /usr/lib/xymon/client/ext/ reports the following:

Ubuntu 22.04.1 LTS

yellow Packages not installed from apt repositories (4):
   gnome-shell (42.4-0ubuntu0.22.04.1)
   gnome-shell-common (42.4-0ubuntu0.22.04.1)
   gnome-shell-extension-prefs (42.4-0ubuntu0.22.04.1)
   mutter-common (42.2-0ubuntu1)

green Last apt update: 0.2 day(s) ago

while technically true, at that time of report the package is not from a repository anymore,
but it was from a repository before it was not from a repository anymore.

this is really annoying and it would be more than welcome to have the option to allow such
packages to be listed green in apt reports.

how to reproduce:
- turn of phased updates
- have the jammy-updates repository in sources.list
- have a phasedupdates package installed, and aptitude-robot doing updates of such packages

for reference, apt policy gnome-shell:
apt policy gnome-shell
gnome-shell:
  Installed: 42.4-0ubuntu0.22.04.1
  Candidate: 42.4-0ubuntu0.22.04.1
  Version table:
     42.5-0ubuntu1 1 (phased 30%)
          2 http://ubuntu.ethz.ch/ubuntu jammy-updates/main amd64 Packages
 *** 42.4-0ubuntu0.22.04.1 100
        100 /var/lib/dpkg/status
     42.0-2ubuntu1 500
        500 http://ubuntu.ethz.ch/ubuntu jammy/main amd64 Packages

currently testing if pinning like this would solve it in the future, cumbersome to reproduce
as phased updates only happen sometimes, and their report page updates lags half a day behind:
https://people.canonical.com/~ubuntu-archive/phased-updates.html

pinning settings being tested (was pinning 2 and 1, now -1):
/etc/apt/preferences.d# cat jammy-updates
Package: *
Pin: release a=jammy-updates,n=jammy
Pin-Priority: 2

configuration to turn of phasedupdates:
/etc/apt/apt.conf.d# cat 99-phased-updates
# dont take part of phased updates
# Disable phased updates: https://people.canonical.com/~ubuntu-archive/phased-updates.html
# https://discourse.ubuntu.com/t/phased-updates-in-apt-in-21-04/20345
# https://github.com/Debian/apt/blob/main/apt-pkg/upgrade.cc

Debug::Phasing "1";
APT::Get::Phase-Policy true;
# see https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1981672/comments/14
APT::Get::Always-Include-Phased-Updates "0";
APT::Get::Never-Include-Phased-Updates "1";

the reason for turning off phased updates is simple, when you don't take part in the
intransparent/not anymore publicly available automatic bug reports page, you don't want
to end with some machines with such updates, another part without such updates, facing
users with different problems, making everything harder to debug/fix. another very good
reason is, if you have disabled automatic crash reporting, it's kind of pointless to take
part anyways.

any help/suggestion is welcome