** Description changed:

+ [Impact]
+ It is not possible to use "Repair broken packages" in friendly recovery as it 
calls dist-upgrade.py and that fails as it checks to see if the python symlink, 
not python3 symlink is good.
+ 
+ [Test Case]
+ Run the following as root:
+ 
+ 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
+ 
+ With the version in the archive you'll receive an error regarding your
+ python install being corrupted, with the version from --proposed you
+ won't.
+ 
+ [Regression Potential]
+ The code is just being updated to use python3 instead of python so there 
isn't any change of a regression.
+ 
+ 
  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.

** Description changed:

  [Impact]
  It is not possible to use "Repair broken packages" in friendly recovery as it 
calls dist-upgrade.py and that fails as it checks to see if the python symlink, 
not python3 symlink is good.
  
  [Test Case]
  Run the following as root:
  
  env RELEASE_UPGRADER_NO_SCREEN=1 python3 "/usr/lib/python3/dist-
- packages/DistUpgrader/dist-upgrade.py" --partial --frontend
+ packages/DistUpgrade/dist-upgrade.py" --partial --frontend
  DistUpgradeViewText --datadir /usr/share/ubuntu-release-upgrader
  
  With the version in the archive you'll receive an error regarding your
  python install being corrupted, with the version from --proposed you
  won't.
  
  [Regression Potential]
  The code is just being updated to use python3 instead of python so there 
isn't any change of a regression.
  
- 
  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
+ packages/DistUpgrade/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.

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

Title:
  not possible to use "Repair broken packages"

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

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to