Activity log for bug #1825655

Date Who What changed Old value New value Message
2019-04-20 14:46:24 Dmitrii Shcherbakov bug added bug
2019-04-20 17:12:50 Dmitrii Shcherbakov description do-release-upgrade from 18.04 to 18.10 fails: " Reading cache Checking package manager Can not upgrade Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink. === Command terminated with exit status 1 (Sat Apr 20 17:19:49 2019) === " There is nothing wrong with /usr/bin/python3 ➜ ~ ls -al /usr/bin/python3 lrwxrwxrwx 1 root root 9 окт 25 14:11 /usr/bin/python3 -> python3.6 I also have python2 installed for which Debian alternatives are configured which causes the problem as far as I can see: ➜ ~ update-alternatives --display python python - auto mode link best version is /usr/bin/python2.7 link currently points to /usr/bin/python2.7 link python is /usr/bin/python /usr/bin/python2.7 - priority 100 https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/tree/DistUpgrade/DistUpgradeController.py?h=ubuntu/bionic-updates#n361 (Pdb) l 11 debian_defaults = '/usr/share/%s/debian_defaults' % dirname 12 if os.path.exists(debian_defaults): 13 config = SafeConfigParser() 14 with open(debian_defaults) as f: 15 config.readfp(f) 16 -> try: 17 expected_default = config.get('DEFAULT', 'default-version') 18 except NoOptionError: 19 logging.debug("no default version for %s found in '%s'" % 20 (binary, config)) 21 return False (Pdb) n > <ipython-input-13-93c4105e7796>(17)_pythonSymlinkCheck() -> expected_default = config.get('DEFAULT', 'default-version') (Pdb) n > <ipython-input-13-93c4105e7796>(22)_pythonSymlinkCheck() -> try: (Pdb) expected_default 'python2.7' > <ipython-input-13-93c4105e7796>(23)_pythonSymlinkCheck() -> fs_default_version = os.readlink('/usr/bin/%s' % binary) (Pdb) n > <ipython-input-13-93c4105e7796>(27)_pythonSymlinkCheck() -> if not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) and not (binary == 'python' and fs_default_version in ('python2', '/usr/bin/python2')): (Pdb) fs_default_version '/etc/alternatives/python' (Pdb) os.path.join('/usr/bin', expected_default) '/usr/bin/python2.7' (Pdb) not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) True (Pdb) print("%s symlink points to: '%s', but expected is '%s' or '%s'" % (binary, fs_default_version, expected_default, os.path.join('/usr/bin', expected_default))) python symlink points to: '/etc/alternatives/python', but expected is 'python2.7' or '/usr/bin/python2.7' do-release-upgrade from 18.04 to 18.10 fails: " Reading cache Checking package manager Can not upgrade Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink. === Command terminated with exit status 1 (Sat Apr 20 17:19:49 2019) === " There is nothing wrong with /usr/bin/python3 ➜ ~ ls -al /usr/bin/python3 lrwxrwxrwx 1 root root 9 окт 25 14:11 /usr/bin/python3 -> python3.6 I also have python2 installed for which Debian alternatives are configured which causes the problem as far as I can see: ➜ ~ update-alternatives --display python python - auto mode   link best version is /usr/bin/python2.7   link currently points to /usr/bin/python2.7   link python is /usr/bin/python /usr/bin/python2.7 - priority 100 https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/tree/DistUpgrade/DistUpgradeController.py?h=ubuntu/bionic-updates#n361 (Pdb) l  11 debian_defaults = '/usr/share/%s/debian_defaults' % dirname  12 if os.path.exists(debian_defaults):  13 config = SafeConfigParser()  14 with open(debian_defaults) as f:  15 config.readfp(f)  16 -> try:  17 expected_default = config.get('DEFAULT', 'default-version')  18 except NoOptionError:  19 logging.debug("no default version for %s found in '%s'" %  20 (binary, config))  21 return False (Pdb) n > <ipython-input-13-93c4105e7796>(17)_pythonSymlinkCheck() -> expected_default = config.get('DEFAULT', 'default-version') (Pdb) n > <ipython-input-13-93c4105e7796>(22)_pythonSymlinkCheck() -> try: (Pdb) expected_default 'python2.7' > <ipython-input-13-93c4105e7796>(23)_pythonSymlinkCheck() -> fs_default_version = os.readlink('/usr/bin/%s' % binary) (Pdb) n > <ipython-input-13-93c4105e7796>(27)_pythonSymlinkCheck() -> if not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) and not (binary == 'python' and fs_default_version in ('python2', '/usr/bin/python2')): (Pdb) fs_default_version '/etc/alternatives/python' (Pdb) os.path.join('/usr/bin', expected_default) '/usr/bin/python2.7' (Pdb) not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) True (Pdb) print("%s symlink points to: '%s', but expected is '%s' or '%s'" % (binary, fs_default_version, expected_default, os.path.join('/usr/bin', expected_default))) python symlink points to: '/etc/alternatives/python', but expected is 'python2.7' or '/usr/bin/python2.7' A workaround is: sudo rm /usr/bin/python sudo ln -s /usr/bin/python2.7 /usr/bin/python do-release-upgrade
2019-04-20 17:13:18 Dmitrii Shcherbakov description do-release-upgrade from 18.04 to 18.10 fails: " Reading cache Checking package manager Can not upgrade Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink. === Command terminated with exit status 1 (Sat Apr 20 17:19:49 2019) === " There is nothing wrong with /usr/bin/python3 ➜ ~ ls -al /usr/bin/python3 lrwxrwxrwx 1 root root 9 окт 25 14:11 /usr/bin/python3 -> python3.6 I also have python2 installed for which Debian alternatives are configured which causes the problem as far as I can see: ➜ ~ update-alternatives --display python python - auto mode   link best version is /usr/bin/python2.7   link currently points to /usr/bin/python2.7   link python is /usr/bin/python /usr/bin/python2.7 - priority 100 https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/tree/DistUpgrade/DistUpgradeController.py?h=ubuntu/bionic-updates#n361 (Pdb) l  11 debian_defaults = '/usr/share/%s/debian_defaults' % dirname  12 if os.path.exists(debian_defaults):  13 config = SafeConfigParser()  14 with open(debian_defaults) as f:  15 config.readfp(f)  16 -> try:  17 expected_default = config.get('DEFAULT', 'default-version')  18 except NoOptionError:  19 logging.debug("no default version for %s found in '%s'" %  20 (binary, config))  21 return False (Pdb) n > <ipython-input-13-93c4105e7796>(17)_pythonSymlinkCheck() -> expected_default = config.get('DEFAULT', 'default-version') (Pdb) n > <ipython-input-13-93c4105e7796>(22)_pythonSymlinkCheck() -> try: (Pdb) expected_default 'python2.7' > <ipython-input-13-93c4105e7796>(23)_pythonSymlinkCheck() -> fs_default_version = os.readlink('/usr/bin/%s' % binary) (Pdb) n > <ipython-input-13-93c4105e7796>(27)_pythonSymlinkCheck() -> if not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) and not (binary == 'python' and fs_default_version in ('python2', '/usr/bin/python2')): (Pdb) fs_default_version '/etc/alternatives/python' (Pdb) os.path.join('/usr/bin', expected_default) '/usr/bin/python2.7' (Pdb) not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) True (Pdb) print("%s symlink points to: '%s', but expected is '%s' or '%s'" % (binary, fs_default_version, expected_default, os.path.join('/usr/bin', expected_default))) python symlink points to: '/etc/alternatives/python', but expected is 'python2.7' or '/usr/bin/python2.7' A workaround is: sudo rm /usr/bin/python sudo ln -s /usr/bin/python2.7 /usr/bin/python do-release-upgrade do-release-upgrade from 18.04 to 18.10 fails (likewise, when I upgraded with a workaround the same happened for 18.10 -> 19.04): " Reading cache Checking package manager Can not upgrade Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink. === Command terminated with exit status 1 (Sat Apr 20 17:19:49 2019) === " There is nothing wrong with /usr/bin/python3 ➜ ~ ls -al /usr/bin/python3 lrwxrwxrwx 1 root root 9 окт 25 14:11 /usr/bin/python3 -> python3.6 I also have python2 installed for which Debian alternatives are configured which causes the problem as far as I can see: ➜ ~ update-alternatives --display python python - auto mode   link best version is /usr/bin/python2.7   link currently points to /usr/bin/python2.7   link python is /usr/bin/python /usr/bin/python2.7 - priority 100 https://git.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/tree/DistUpgrade/DistUpgradeController.py?h=ubuntu/bionic-updates#n361 (Pdb) l  11 debian_defaults = '/usr/share/%s/debian_defaults' % dirname  12 if os.path.exists(debian_defaults):  13 config = SafeConfigParser()  14 with open(debian_defaults) as f:  15 config.readfp(f)  16 -> try:  17 expected_default = config.get('DEFAULT', 'default-version')  18 except NoOptionError:  19 logging.debug("no default version for %s found in '%s'" %  20 (binary, config))  21 return False (Pdb) n > <ipython-input-13-93c4105e7796>(17)_pythonSymlinkCheck() -> expected_default = config.get('DEFAULT', 'default-version') (Pdb) n > <ipython-input-13-93c4105e7796>(22)_pythonSymlinkCheck() -> try: (Pdb) expected_default 'python2.7' > <ipython-input-13-93c4105e7796>(23)_pythonSymlinkCheck() -> fs_default_version = os.readlink('/usr/bin/%s' % binary) (Pdb) n > <ipython-input-13-93c4105e7796>(27)_pythonSymlinkCheck() -> if not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) and not (binary == 'python' and fs_default_version in ('python2', '/usr/bin/python2')): (Pdb) fs_default_version '/etc/alternatives/python' (Pdb) os.path.join('/usr/bin', expected_default) '/usr/bin/python2.7' (Pdb) not fs_default_version in (expected_default, os.path.join('/usr/bin', expected_default)) True (Pdb) print("%s symlink points to: '%s', but expected is '%s' or '%s'" % (binary, fs_default_version, expected_default, os.path.join('/usr/bin', expected_default))) python symlink points to: '/etc/alternatives/python', but expected is 'python2.7' or '/usr/bin/python2.7' A workaround is: sudo rm /usr/bin/python sudo ln -s /usr/bin/python2.7 /usr/bin/python do-release-upgrade
2019-05-13 23:18:37 Launchpad Janitor ubuntu-release-upgrader (Ubuntu): status New Confirmed
2019-07-06 06:42:10 Rich Wales bug added subscriber Rich Wales
2019-09-14 09:09:26 Nikita Koval bug added subscriber Nikita Koval
2019-10-05 11:29:52 Lars Andersen bug added subscriber Lars Andersen
2019-10-08 22:28:11 Launchpad Janitor branch linked lp:~vorlon/ubuntu-release-upgrader/lp.1825655
2019-10-08 23:32:26 Steve Langasek ubuntu-release-upgrader (Ubuntu): status Confirmed Fix Committed
2019-10-08 23:32:53 Steve Langasek ubuntu-release-upgrader (Ubuntu): status Fix Committed In Progress
2019-10-08 23:33:53 Steve Langasek ubuntu-release-upgrader (Ubuntu): assignee Steve Langasek (vorlon)
2019-10-14 16:08:05 Launchpad Janitor ubuntu-release-upgrader (Ubuntu): status In Progress Fix Released
2019-10-24 01:21:50 wolfgang rumpf bug added subscriber wolfgang rumpf
2019-10-31 21:45:44 Brian Murray ubuntu-release-upgrader (Ubuntu Eoan): status New Fix Committed
2019-10-31 21:45:46 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2019-10-31 21:45:48 Brian Murray bug added subscriber SRU Verification
2019-10-31 21:45:52 Brian Murray tags verification-needed verification-needed-eoan
2019-11-05 20:20:10 Brian Murray tags verification-needed verification-needed-eoan verification-done verification-done-eoan
2019-11-05 20:23:43 Launchpad Janitor ubuntu-release-upgrader (Ubuntu Eoan): status Fix Committed Fix Released
2019-11-05 20:23:55 Adam Conrad removed subscriber Ubuntu Stable Release Updates Team