Answers:
看一下以下升级步骤集合:
$ sudo sed -i 's/raring/saucy/' /etc/apt/sources.list.d/official-package-repositories.list
$ sudo sed -i 's/olivia/petra/' /etc/apt/sources.list.d/official-package-repositories.list
$ sudo apt-get update && sudo apt-get dist-upgrade
$ sudo apt-get upgrade
$ sudo shutdown -r now
sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-package-repositories.list
sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-package-repositories.list
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get upgrade
sudo shutdown -r now
对于Saucy,步骤实际上是(照顾新的第三行):
$ sudo sed -i 's/raring/saucy/' /etc/apt/sources.list.d/official-package-repositories.list
$ sudo sed -i 's/olivia/petra/' /etc/apt/sources.list.d/official-package-repositories.list
$ sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list.d/official-package-repositories.list
$ sudo apt-get update && sudo apt-get dist-upgrade
$ sudo apt-get upgrade
$ sudo shutdown -r now
然后,从16到17:
sudo sed -i 's/saucy/trusty/' /etc/apt/sources.list.d/official-package-repositories.list
sudo sed -i 's/petra/qiana/' /etc/apt/sources.list.d/official-package-repositories.list
sudo sed -i '/security/ s/old-releases/security/; s/old-releases/archive/' /etc/apt/sources.list.d/official-package-repositories.list
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get upgrade
sudo shutdown -r now
apt-get update
部分之前,您需要一个额外的sed命令:sudo sed -i -e 's/archive.ubuntu.com\|security.ubuntu.com/old-releases.ubuntu.com/g' /etc/apt/sources.list.d/official-package-repositories.list
。答案应该更新以反映这一点。
如果需要从15跳到17;为什么要经历升级过程?将文件,数据等备份到USB,下载并安装17。将节省您的所有麻烦,维修风险。
我只是直接从14.04到16.04(从Raphaela到Sylvia)执行了该过程,并且一步一步就很好地工作了(嗯,只需要强制将肉桂升级)。不到15分钟,是有史以来最快的升级。