[Bug 1874927] Re: do-release-upgrade's upgradeable package check doesn't consider kept back packages

Heinrich Schuchardt 1874927 at bugs.launchpad.net
Sat Nov 9 17:34:15 UTC 2024


This bug is still present in 24.10:

$ do-release-upgrade -d
Checking for a new Ubuntu release
Please install all available updates for your release before upgrading.
$ sudo apt-get update
Hit:1 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:2 http://archive.ubuntu.com/ubuntu oracular InRelease                                                                                                                
Hit:3 http://security.ubuntu.com/ubuntu oracular-security InRelease                                                                                                      
Hit:4 http://archive.ubuntu.com/ubuntu oracular-proposed InRelease                                                                                 
Hit:5 http://archive.ubuntu.com/ubuntu oracular-updates InRelease                                                                                  
Hit:6 http://archive.ubuntu.com/ubuntu oracular-backports InRelease                                            
Hit:7 https://ppa.launchpadcontent.net/sergiodj/qemu-bug2077036/ubuntu oracular InRelease
Hit:8 https://private-ppa.launchpadcontent.net/ubuntu-risc-v-team-private/private/ubuntu oracular InRelease
Reading package lists... Done
$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
The following upgrades have been deferred due to phasing:
  grub-efi-amd64 grub-efi-amd64-bin grub-efi-amd64-signed grub-efi-amd64-unsigned
The following packages have been kept back:
  libcanberra-pulse
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
N: Some packages may have been kept back due to phasing.
$

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-release-upgrader in
Ubuntu.
https://bugs.launchpad.net/bugs/1874927

Title:
  do-release-upgrade's upgradeable package check doesn't consider kept
  back packages

Status in ubuntu-release-upgrader package in Ubuntu:
  Triaged

Bug description:
  I was upgrading a system from 18.04 LTS to 20.04 LTS and had some
  packages that were kept back and when I ran do-release-upgrade -d I
  was told to install all available updates. However, there were no
  available updates because some packages were kept back. This seems
  like a rare scenario but the following check may need some
  improvement.

  +  for pkg in upgradable:
  +    if 'Phased-Update-Percentage' in pkg.candidate.record:
  +      # P-U-P does not exist if it is fully phased
  +      continue
  +    else:
  +      install_count += 1
  +      # one upgradeable package is enough to stop the dist-upgrade
  +      break

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1874927/+subscriptions




More information about the foundations-bugs mailing list