_pythonSymlinkCheck fails to account for use of update-alternatives
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-release-upgrader (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
In order to deal with the fact that users often modify /usr/bin/python DistUpdgradeCon
...
fs_default_version = os.readlink(
except OSError as e:
if not fs_default_version in (expected_default, os.path.
...
This check fails to account for setups using update-
sys.version_info should be used instead as it makes no assumptions about how python was invoked.
"%s.%s.%s" %(sys.version_
Yields the version string (i.e '2.7.15') for the running python interpreter.
summary: |
- _pythonSymlinkCheck fails to account for use of update-alternitives + _pythonSymlinkCheck fails to account for use of update-alternatives |
So, you want to execute python in a subprocess and read its output?
cosmic is also broken as documented in bug 1800823, as python is a symlink to python2.
We probably should sanity check all of python, python2, python3.