从 18.04 到 20.04 的 do-release-upgrade 失败,因为 python3 已损坏

从 18.04 到 20.04 的 do-release-upgrade 失败,因为 python3 已损坏

我尝试将笔记本电脑从 18.04 升级到 20.04.1:但是我收到了错误Can not upgrade - Your python3 install is corrupted. Please fix the '/usr/bin/python3' symlink."。我尝试了 https://bugs.launchpad.net/ubuntu/+source/ubuntu-release-upgrader/+bug/1825655无济于事。输出ls -l /usr/bin/python*为:

$ ls -l /usr/bin/python*
lrwxrwxrwx 1 root root      18 ago  9 11:57 /usr/bin/python -> /usr/bin/python2.7
lrwxrwxrwx 1 root root       9 apr 16  2018 /usr/bin/python2 -> python2.7
-rwxr-xr-x 1 root root 3665768 lug 20 17:37 /usr/bin/python2.7
lrwxrwxrwx 1 root root      33 lug 20 17:37 /usr/bin/python2.7-config -> x86_64-linux-gnu-python2.7-config
lrwxrwxrwx 1 root root      16 apr 16  2018 /usr/bin/python2-config -> python2.7-config
lrwxrwxrwx 1 root root      25 ago  3 16:03 /usr/bin/python3 -> /etc/alternatives/python3
-rwxr-xr-x 2 root root 4526456 lug 17 14:50 /usr/bin/python3.6
-rwxr-xr-x 2 root root 4526456 lug 17 14:50 /usr/bin/python3.6m
-rwxr-xr-x 2 root root 5308240 giu 29 07:44 /usr/bin/python3.7
lrwxrwxrwx 1 root root      33 giu 29 07:44 /usr/bin/python3.7-config -> x86_64-linux-gnu-python3.7-config
-rwxr-xr-x 2 root root 5308240 giu 29 07:44 /usr/bin/python3.7m
lrwxrwxrwx 1 root root      34 giu 29 07:44 /usr/bin/python3.7m-config -> x86_64-linux-gnu-python3.7m-config
-rwxr-xr-x 1 root root     398 nov 15  2017 /usr/bin/python3-jsonschema
lrwxrwxrwx 1 root root      10 ott 25  2018 /usr/bin/python3m -> python3.6m
lrwxrwxrwx 1 root root      16 apr 16  2018 /usr/bin/python-config -> python2.7-config

我是否最好重新安装 Ubuntu,但显然这会浪费很多时间才能恢复运行?

相关内容