** Description changed:

  [ Impact ]
  
  The bug prevents upgrades from 24.04 LTS to 26.04 LTS if `lintian` is 
alonsgide
  a larger number of packages, such as `ubuntu-desktop`. This is caused by the
  APT resolver's strictness in introducing the new dependency required by
  `lintian` in 26.04 LTS. Without the fix, users need to manually identify the
  issue and uninstall `lintian` before upgrading, which is a significant barrier
  to adoption of the new LTS release.
  
  The fix solves the bug by marking `lintian`'s new dependency
  `libfile-libmagic-perl` for install if `lintian` is installed, which allows 
the
  APT resolver to successfully resolve the upgrade path without requiring users
  to manually intervene.
  
  [ Test Plan ]
  
  1. Launch a 24.04 LTS container or VM, using e.g. LXD:
  
     $ lxc launch ubuntu:24.04 sru-lintian-fix
  
  (See https://documentation.ubuntu.com/lxd/latest/tutorial/first_steps/)
  
  2. Install `lintian` and the `ubuntu-desktop` meta-package (this can
  take a while):
  
-    $ lxc exec sru-lintian-fix -- apt update
+    $ lxc exec sru-lintian-fix -- apt update && apt upgrade -y
     $ lxc exec sru-lintian-fix -- apt install lintian ubuntu-desktop
  
  3. Attempt to upgrade to 26.04 LTS:
     $ lxc exec sru-lintian-fix -- do-release-upgrade -d
  
  This will fail with the following error:
  
      "Could not calculate the upgrade
  
      An unresolvable problem occurred while calculating the upgrade."
  
  [ Where problems could occur ]
  
  The fix itself should only affect upgrades from Noble on systems with 
`lintian`
  installed. On these systems, the most prominent error arises if the added 
quirk
  is run too early or too late in the upgrade process, which would cause the APT
  resolver to still fail to resolve the upgrade path.
  
  Another breakage could occur if some other package conflicts with the new
  dependency `libfile-libmagic-perl`, which would cause the upgrade to fail with
  a different error message.
  
  [ Other Info ]
  
  This specific bug is caused by a combination of resolver strictness and the
  dependency graph for `lintian`. More specifically:
  
  1. The new version of the dependency `libyaml-libyaml-perl` on Resolute breaks
     the `lintian` version on Noble.
  2. `lintian` needs to be upgraded to its latest version to be compatible with
     `libyaml-libyaml-perl`.
  3. The latest version of `lintian` introduces a new dependency
     `libfile-libmagic-perl`, but the APT resolver does not favor this upgrade
     path.
  
  As such the most apparent fix was to add a quirk since nothing in the 
packaging
  itself was broken, but the resolver's behavior was not ideal for this specific
  case.
  
  [ Original Bug Description ]
  
  Checking package manager
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  
  Calculating the changes
  
  Calculating the changes
  
  Could not calculate the upgrade
  
  An unresolvable problem occurred while calculating the upgrade.
  
  If none of this applies, then please report this bug using the
  command 'ubuntu-bug ubuntu-release-upgrader-core' in a terminal. If
  you want to investigate this yourself the log files in
  '/var/log/dist-upgrade' will contain details about the upgrade.
  Specifically, look at 'main.log' and 'apt.log'.
  
  Restoring original system state
  
  Aborting
  Reading package lists... Done
  Building dependency tree... Done
  Reading state information... Done
  
  ---
  
  From /var/log/dist-upgrade/main.log:
  
  2026-04-25 10:49:52,862 DEBUG running doUpdate() (showErrors=True)
  2026-04-25 10:49:55,388 DEBUG openCache()
  2026-04-25 10:49:55,746 DEBUG Comparing 6.8.0-107 with
  2026-04-25 10:49:55,746 DEBUG Comparing 6.8.0-110 with 6.8.0-107
  2026-04-25 10:49:55,785 DEBUG /openCache(), new cache size 81819
  2026-04-25 10:49:55,883 DEBUG Foreign (before rewriting sources): 1password 
1password-cli buildah ffmpeg fig2dev firefox gh gimp gimp-data 
gir1.2-gst-plugins-bad-1.0 google-chrome-stable gstreamer1.0-plugins-bad 
imagemagick imagemagick-6-common imagemagick-6.q16 libavcodec60 libavdevice60 
libavfilter9 libavformat60 libavutil58 libcjson1 libgimp2.0t64 
libgstreamer-plugins-bad1.0-0 libimage-magick-perl libimage-magick-q16-perl 
libmagick++-6.q16-9t64 libmagickcore-6.q16-7-extra libmagickcore-6.q16-7t64 
libmagickwand-6.q16-7t64 libmbedcrypto7t64 libmbedtls14t64 libmbedx509-1t64 
libpostproc57 libqt5core5t64 libqt5dbus5t64 libqt5gui5t64 libqt5network5t64 
libqt5widgets5t64 libswresample4 libswscale7 libvlc-bin libvlc5 libvlccore9 
libzvbi-common libzvbi0t64 podman podman-docker python3-filelock 
python3-fonttools python3-virtualenv qt5-gtk-platformtheme vlc vlc-bin vlc-data 
vlc-l10n vlc-plugin-access-extra vlc-plugin-base vlc-plugin-notify 
vlc-plugin-qt vlc-plugin-samba vlc-plugin-skins2 vlc-plugin-video-output 
vlc-plugin-video-splitter vlc-plugin-visualization
  2026-04-25 10:49:55,883 DEBUG Foreign (after rewriting sources):
  2026-04-25 10:49:55,883 DEBUG running Quirks.PreDistUpgradeCache
  2026-04-25 10:49:56,344 ERROR Dist-upgrade failed: 'W:Skipping acquire of 
configured file 'main/binary-i386/Packages' as repository 
'https://dl.google.com/linux/chrome-stable/deb stable InRelease' doesn't 
support architecture 'i386', E:Error, pkgProblemResolver::Resolve generated 
breaks, this may be caused by held packages.'
  2026-04-25 10:49:56,348 DEBUG abort called
  2026-04-25 10:49:56,349 DEBUG openCache()
  2026-04-25 10:49:57,552 DEBUG Comparing 6.8.0-107 with
  2026-04-25 10:49:57,552 DEBUG Comparing 6.8.0-110 with 6.8.0-107
  2026-04-25 10:49:57,628 DEBUG /openCache(), new cache size 103198
  
  ProblemType: Bug
  DistroRelease: Ubuntu 24.04
  Package: ubuntu-release-upgrader-core 1:24.04.28
  ProcVersionSignature: Ubuntu 6.8.0-107.107-generic 6.8.12
  Uname: Linux 6.8.0-107-generic x86_64
  ApportVersion: 2.28.1-0ubuntu3.8
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashDB: ubuntu
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Apr 25 10:51:38 2026
  InstallationDate: Installed on 2022-06-07 (1418 days ago)
  InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220419)
  PackageArchitecture: all
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/bin/zsh
   TERM=xterm-256color
   XDG_RUNTIME_DIR=<set>
  SourcePackage: ubuntu-release-upgrader
  UpgradeStatus: Upgraded to noble on 2026-04-25 (0 days ago)
  VarLogDistupgradeAptHistorylog:
   Start-Date: 2026-04-25  10:49:40
   Requested-By: ari (1000)
   End-Date: 2026-04-25  10:49:40
  VarLogDistupgradeApttermlog:
   Log started: 2026-04-25  10:49:40
   Log ended: 2026-04-25  10:49:40

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

Title:
  [SRU] lintian breaks upgrade from 24.04 to 26.04

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libfile-libmagic-perl/+bug/2150319/+subscriptions


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

Reply via email to