[Bug 1799839] [NEW] not possible to use "Repair broken packages"

Brian Murray brian at ubuntu.com
Wed Oct 24 23:25:42 UTC 2018


Public bug reported:

The menu item "Repair broken packages" calls the following command:

env RELEASE_UPGRADER_NO_SCREEN=1 python3 "/usr/lib/python3/dist-
packages/DistUpgrader/dist-upgrade.py" --partial --frontend
DistUpgradeViewText --datadir /usr/share/ubuntu-release-upgrader

However, that fails with the following:

Your python install is corrupted. Please fix the '/usr/bin/python'
symlink.

This is because of the _pythonSymlinkCheck function in
DistUpgradeController.py (provided by ubuntu-release-upgrader) using
os.readlink('/usr/bin/python') but not os.readlink() on what the first
os.readlink() call returned. That being said the whole function should
be updated to see if python3 is being used.

** Affects: friendly-recovery (Ubuntu)
     Importance: High
         Status: Triaged

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


** Tags: bionic cosmic rls-dd-incoming

** Tags added: bionic cosmic rls-dd-incoming

** Changed in: friendly-recovery (Ubuntu)
       Status: New => Triaged

** Changed in: friendly-recovery (Ubuntu)
   Importance: Undecided => High

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

Title:
  not possible to use "Repair broken packages"

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

Bug description:
  The menu item "Repair broken packages" calls the following command:

  env RELEASE_UPGRADER_NO_SCREEN=1 python3 "/usr/lib/python3/dist-
  packages/DistUpgrader/dist-upgrade.py" --partial --frontend
  DistUpgradeViewText --datadir /usr/share/ubuntu-release-upgrader

  However, that fails with the following:

  Your python install is corrupted. Please fix the '/usr/bin/python'
  symlink.

  This is because of the _pythonSymlinkCheck function in
  DistUpgradeController.py (provided by ubuntu-release-upgrader) using
  os.readlink('/usr/bin/python') but not os.readlink() on what the first
  os.readlink() call returned. That being said the whole function should
  be updated to see if python3 is being used.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/friendly-recovery/+bug/1799839/+subscriptions



More information about the foundations-bugs mailing list