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

Brian Murray brian at ubuntu.com
Fri Apr 24 22:26:29 UTC 2020


Public bug reported:

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

** Affects: ubuntu-release-upgrader (Ubuntu)
     Importance: Low
         Status: Triaged


** Tags: focal

** Changed in: ubuntu-release-upgrader (Ubuntu)
       Status: New => Triaged

** Changed in: ubuntu-release-upgrader (Ubuntu)
   Importance: Undecided => Low

-- 
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