To test the dist-upgrade with dpkg from proposed being installed during
it, I added `questing-proposed` to the ubuntu.sources and added the
following preferences:

Package: *
Pin: release *-proposed
Pin-Priority: -1

Package: dpkg
Pin: release questing-proposed
Pin-Priority: 999

This causes apt/upgrader to prefer dpkg from questing-proposed. The
pinning annoyed the release upgrader quirks a bit:

2025-10-23 08:30:24,184 DEBUG no PkgRecord found for 'frama-c-base',
skipping

(and so on for packages only in proposed)

but these are harmless.

Now importantly, because the release upgrader checks if all updates are
installed I did not run apt update first.

Now when running do-release-upgrade -d, we can see that the dpkg was
correctly installed:

root@unbiased-cub:~# grep 'dpkg (' /var/log/dist-upgrade/apt-term.log
Unpacking dpkg (1.22.21ubuntu3.1) over (1.22.18ubuntu2.2) ...
Setting up dpkg (1.22.21ubuntu3.1) ...


The upgrade completed successfully:

root@unbiased-cub:~# tail /var/log/dist-upgrade/main.log
2025-10-23 08:34:46,855 DEBUG skipping running kernel pkg 
'linux-image-6.14.0-34-generic'
2025-10-23 08:34:46,855 DEBUG skipping running kernel pkg 
'linux-headers-6.14.0-34-generic'
2025-10-23 08:34:47,520 DEBUG obsolete package 'linux-tools-6.14.0-34' could 
not be removed
2025-10-23 08:34:47,520 DEBUG obsolete package 'linux-headers-6.14.0-34' could 
not be removed
2025-10-23 08:34:47,540 DEBUG Finish checking for obsolete pkgs
2025-10-23 08:34:47,588 DEBUG The following packages are marked for removal: 
pastebinit byobu libreiserfscore0t64 libsigsegv2 linux-image-6.14.0-33-generic 
libllvm18 libllvm19 libxml2 linux-tools-6.14.0-33-generic libclang1-19 
libfuse3-3 run-one libclang-cpp18 linux-headers-6.14.0-33-generic 
linux-tools-6.14.0-33 linux-modules-6.14.0-33-generic python3-newt libsframe1 
linux-headers-6.14.0-33
2025-10-23 08:34:49,592 DEBUG running Quirks.PostCleanup
2025-10-23 08:34:50,000 DEBUG Running PostInstallScript: 
'./xorg_fix_proprietary.py'
2025-10-23 08:34:50,034 DEBUG Running PostInstallScript: 
'/usr/lib/ubuntu-advantage/convert_list_to_deb822.py'
2025-10-23 08:34:50,147 DEBUG Running PostInstallScript: 
'/usr/lib/ubuntu-advantage/upgrade_lts_contract.py'

and no variant field is observed in the status file:

root@unbiased-cub:~# grep Variant /var/lib/dpkg/status

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2128606

Title:
  Correctly copy Architecture-Variant field

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2128606/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to