圖解從Ubuntu 10.10升級(jí)到11.04
【51CTO 新鮮譯文】Ubuntu 11.04(Natty Narwhal)已經(jīng)發(fā)布,這篇指南向你介紹如何從Ubuntu 10.10桌面和服務(wù)器版分別升級(jí)到Ubuntu 11.04,本文不提供任何保證,也許你照做還是不能成功升級(jí)到Ubuntu 11.04。
1、桌面版
依次點(diǎn)擊“系統(tǒng)”*“管理”*“升級(jí)管理器”啟動(dòng)升級(jí)管理器:
圖 1 啟動(dòng)升級(jí)管理器
#p#
升級(jí)管理器將會(huì)顯示有新的版本(11.04)可用,點(diǎn)擊“升級(jí)”按鈕啟動(dòng)版本升級(jí):
圖 2 發(fā)現(xiàn)新的版本
#p#
顯示11.04發(fā)行注記,再次點(diǎn)擊“升級(jí)”:
圖 3 新版本發(fā)行注記
#p#
升級(jí)工具開始下載,開始之前需要輸入密碼:
圖 4 輸入密碼
#p#
做升級(jí)準(zhǔn)備:
圖 5 準(zhǔn)備升級(jí)
#p#
點(diǎn)擊“開始升級(jí)”:
圖 6 確認(rèn)開始升級(jí)
#p#
下載升級(jí)包:
圖 7 下載軟件包
#p#
安裝升級(jí)包,這個(gè)過程比較長(zhǎng),請(qǐng)耐心等待,可以去喝杯咖啡先。
圖 8 安裝軟件包
#p#
在升級(jí)過程的最后,你應(yīng)該移除廢棄的軟件包:
圖 9 移除廢棄的軟件包
圖 10 正在清理廢棄的軟件包
#p#
系統(tǒng)需要重啟以完成升級(jí),因此請(qǐng)點(diǎn)擊“現(xiàn)在重啟”:
圖 11 確認(rèn)重啟系統(tǒng)
#p#
當(dāng)你登錄時(shí),Ubuntu 11.04將使用默認(rèn)的Unity桌面,需要你的硬件支持3D加速,如果不支持,可以在登錄屏幕選擇“Ubuntu經(jīng)典桌面”:
圖 12 選擇Ubuntu經(jīng)典桌面
#p#
重啟后,你就可以使用新的Ubuntu 11.04桌面了(因?yàn)槲沂褂玫氖翘摂M機(jī),系統(tǒng)不支持3D加速,因此在下圖中你看到的是Ubuntu經(jīng)典桌面):
圖 13 Ubuntu經(jīng)典桌面
#p#
2、服務(wù)器
首先獲得root權(quán)限:
sudo su
然后運(yùn)行:
apt-get update
安裝update-manager-core軟件包:
apt-get install update-manager-core
打開/etc/update-manager/release-upgrades文件:
vi /etc/update-manager/release-upgrades
確保里面包含了Prompt=normal:
[...] Prompt=normal
然后運(yùn)行:
do-release-upgrade
啟動(dòng)系統(tǒng)升級(jí)。
root@server1:~# do-release-upgrade
Checking for a new ubuntu release
Get:1 Upgrade tool signature [198B]
Get:2 Upgrade tool [1307kB]
Fetched 1307kB in 0s (0B/s)
extracting 'natty.tar.gz'
authenticate 'natty.tar.gz' against 'natty.tar.gz.gpg'
Reading cache
Checking package manager
Continue running under SSH?
This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover.
If you continue, an additional ssh daemon will be started at port '1022'.
Do you want to continue?
Continue [yN] <-- y此處輸入y
Starting additional sshd
To make recovery in case of failure easier, an additional sshd will be started on port '1022'.
If anything goes wrong with the running ssh you can still connect to the additional one.
To continue please press [ENTER] <-- ENTER 此處按回車
確定你是否要升級(jí):
Do you want to start the upgrade?
3 packages are going to be removed.
34 new packages are going to be installed.
291 packages are going to be upgraded.
You have to download a total of 171M.
This download will take about 1 minute with your connection.
Fetching and installing the upgrade can take several hours.
Once the download has finished, the process cannot be cancelled.
Continue [yN] Details [d] <-- y 此處輸入y
在升級(jí)期間,有些服務(wù)需要重啟,當(dāng)升級(jí)管理器要求你重啟某個(gè)服務(wù)時(shí)(它會(huì)顯示一個(gè)服務(wù)列表),你只需要按回車接受即可。
If you see the following message about grub (What do you want to do about modified configuration file grub?), install the package maintainer's version:
如果你在升級(jí)過程末尾看到這樣的消息(你想修改grub配置文件嗎?),你應(yīng)該移除廢棄的軟件包:
6 packages are going to be removed.
Continue [yN] Details [d] <-- y 此處輸入y
服務(wù)器需要重啟以完成升級(jí):
Restart required
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] <-- y 此處輸入y
重啟后,你的服務(wù)器運(yùn)行的就是Ubuntu 11.04了。
原文名:How To Upgrade Ubuntu 10.10 (Maverick Meerkat) To 11.04 (Natty Narwhal) (Desktop & Server)
【本文乃51CTO獨(dú)家譯稿,非經(jīng)授權(quán)謝絕轉(zhuǎn)載,合作媒體轉(zhuǎn)載請(qǐng)注明原文作者及出處】
【編輯推薦】