我想从Ubuntu 16.04.5 LTS升级到18.04,所以跑了sudo do-release-upgrade
。下载并解压缩后,bionic.tar.gz
我得到:
Can not upgrade
Your python3 install is corrupted. Please fix the '/usr/bin/python3'
symlink.
我看到了如何解决“ python安装损坏”的问题?所以我确实sudo ln -sf /usr/bin/python3.6 /usr/bin/python3
认为这将是一个类似的问题。但这不起作用(仍然是相同的错误消息)。
我有一些python版本:
$ ls /usr/lib | grep python
python2.7
python3
python3.5
python3.6
$ update-alternatives --display python3
python3 - auto mode
link best version is /usr/bin/python3.6
link currently points to /usr/bin/python3.6
link python3 is /usr/bin/python3
/usr/bin/python3.5 - priority 1
/usr/bin/python3.6 - priority 2
我该如何解决python3
?