如何Upgrade 至 Ubuntu 16.04 LTS

 我来答
盘默M2
2016-05-29 · TA获得超过2.9万个赞
知道大有可为答主
回答量:9723
采纳率:93%
帮助的人:8182万
展开全部
Ubuntu下一个长期支持版本的系统16.04 LTS(Xenial Xerus)已经发布。本博客一直运行在Ubuntu 15.04的系统上,有了新版本作为双子座的我肯定想尝尝鲜。
Step 1 – Back Up Your System
备份对于运维很重要,其实在我们的生活中也非常的重要
Step 2 – Upgrade Currently Installed Packages
sudoapt-getupdate

接下来执行
sudoapt-getupgrade

你会看到需要更新文件的列表,然后 按下Enter键继续。完成上面的任务之后运行
sudoapt-getdist-upgrade

同样你也会得到系统提示,问是否继续升级。
Step 3 – Use Ubuntu’s do-release-upgrade Tool to Perform Upgrade
首先确认你的update-manager-core package是否已经安装
sudoapt-getinstallupdate-manager-core

过 运行 启动 do-release-upgrade
sudodo-release-upgrade

如果没有发现16.04 你会看到下面的输出:
Sample Output
Checkingfor a new Ubunturelease
Nonew releasefound

当然现在16.04已经放出了,应该不会出现上面的提示。如果我们以后想尝鲜的话我们可以尝试开发版本在后面加入-d就好了
sudodo-release-upgrade -d

执行上面的命令后会得到系统的提示我们只要按下Y和Enter键就ok了
Readingcache

Checkingpackage manager

Continue runningunderSSH?

This sessionappearsto berunningunderssh. Itis not recommended
to perform a upgradeoversshcurrentlybecausein case offailureit
is harderto recover.

If youcontinue, anadditionalsshdaemonwillbestartedatport
'1022'.
Do youwantto continue?

Continue [yN] <spanclass="highlight">y</span>

Startingadditionalsshd

To makerecoveryin case offailureeasier, anadditionalsshdwill
bestartedonport '1022'. If anythinggoeswrongwiththerunning
sshyoucanstillconnectto theadditionalone.
If yourun a firewall, youmayneedto temporarilyopenthis port. As
this is potentiallydangerousit's not done automatically. You can
open the port with e.g.:
'iptables -I INPUT -p tcp --dport 1022 -j ACCEPT'

To continue pleasepress [ENTER]

Updatingrepositoryinformation

Novalidmirrorfound

While scanningyourrepositoryinformationnomirrorentryfor the
upgradewasfound. This canhappenif yourunaninternalmirroror
if themirrorinformationis outofdate.

Do youwantto rewriteyour 'sources.list' fileanyway? If youchoose
'Yes' hereitwillupdateall 'trusty' to 'xenial' entries.
If youselect 'No' theupgradewillcancel.

Continue [yN] <spanclass="highlight">y</span>

Do youwantto starttheupgrade?

6 installedpackagesarenolongersupportedbyCanonical. Youcan
stillgetsupportfromthecommunity.

9 packagesaregoingto beremoved. 104 new packagesaregoingto be
installed. 399 packagesaregoingto beupgraded.

Youhaveto download a totalof 232 M. This downloadwilltakeabout
46 secondswithyourconnection.

Installingtheupgradecantakeseveralhours. Oncethedownloadhas
finished, theprocesscannotbecanceled.

Continue [yN] Details [d]<spanclass="highlight">y</span>

移除旧版本
Removeobsoletepackages?

53 packagesaregoingto beremoved.

Continue [yN] Details [d]<spanclass="highlight">y</span>

Systemupgradeis complete.

Restartrequired

To finishtheupgrade, a restartis required.
If youselect 'y' thesystemwillberestarted.

Continue [yN] <spanclass="highlight">y</span>

然后等待一会儿安装就会完成,你就可以看到系统输出的提示信息了。
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式