Ubuntu16升级到18
sudo apt update
sudo apt dist-upgrade
sudo apt autoremove
sudo apt-get install update-manager-core
sudo gedit /etc/update-manager/release-upgrades
确保update-manager行设置为lts
update-manager -c
如果提示:
{%r%}
Your python install is corrupted. Please fix the '/usr/bin/python' symlink.
可以运行命令解决
{%g%}
sudo ln -sf /usr/bin/python2.7 /usr/bin/python
{%endg%}
或者重装Python
{%g%}
sudo apt-get install --reinstall python
参考链接:
https://blog.csdn.net/weixin_44003563/article/details/90271622