sudo do-release-upgrade
##或者
sudo apt-get disk-upgrade
複製代碼
升級完發現ssh鏈接不上了!!bash
sudo service ssh restart ##失敗,失敗..
##重裝吧
sudo apt remove openssh-server
sudo apt install openssh-server
sudo service ssh start
##報錯:failed to restart sshd.service: Unit ssh.service is masked
##解決方法
sudo systemctl unmask ssh.service
sudo service ssh restart
複製代碼
直接用vnc方式遠程鏈接而後進行系統升級ssh