转载

如何 Upgrade 至 Ubuntu 16.04 LTS

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> 

如何 Upgrade 至 Ubuntu 16.04 LTS

移除旧版本

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> 

然后等待一会儿安装就会完成,你就可以看到系统输出的提示信息了。

如何 Upgrade 至 Ubuntu 16.04 LTS

原文  https://xiequan.info/如何-upgrade-至-ubuntu-16-04-lts/
正文到此结束
Loading...