Ubuntu-16-upgrade-18

#root 权限被限制的将无法升级
#参考:https://linuxconfig.org/how-to-upgrade-to-ubuntu-18-04-lts-bionic-beaver


apt update -y
apt upgrade -y
apt dist-upgrade -y
apt autoremove -y


apt install -y update-manager-core
do-release-upgrade -d


######
apt update && sudo apt -y dist-upgrade
#sed -i 's/xenial/bionic/g' /etc/apt/sources.list