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.
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 DistUpgradeCont roller. 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.