我尝试在 Ubuntu 19.04 上运行发行版升级:
sudo do-release-upgrade
我收到错误:
Can not upgrade`
Your python3 install is corrupted. Please fix the '/usr/bin/python3'
symlink.
检查符号链接:
ll /usr/bin/pyt*`
/usr/bin/python -> /usr/bin/python3*
/usr/bin/python2 -> python2.7*
/usr/bin/python2.7*
/usr/bin/python3 -> /usr/bin/python3.7*
/usr/bin/python3.7*
/usr/bin/python3.7m*
/usr/bin/python3m -> python3.7m*
答案1
问题不在于/usr/bin/python3
符号链接,而在于/usr/bin/python
为了纠正,对于 19.04,我运行
sudo ln -sf /usr/bin/python2.7 /usr/bin/python
我在这里找到了解决方案:“您的 python3 安装已损坏” 查看 JB Rainsberger 的回答