1
2
3
4
5
6
7
8
9
sudo su -
apt-get update
apt-get upgrade -y
apt-get dist-upgrade -y
shutdown -r now

sudo su -
/usr/bin/do-release-upgrade -f DistUpgradeViewNonInteractive
apt-get autoremove -y