圖解從Ubuntu 10.10升級到11.04
【51CTO 新鮮譯文】Ubuntu 11.04(Natty Narwhal)已經發布,這篇指南向你介紹如何從Ubuntu 10.10桌面和服務器版分別升級到Ubuntu 11.04,本文不提供任何保證,也許你照做還是不能成功升級到Ubuntu 11.04。
1、桌面版
依次點擊“系統”*“管理”*“升級管理器”啟動升級管理器:
圖 1 啟動升級管理器
#p#
升級管理器將會顯示有新的版本(11.04)可用,點擊“升級”按鈕啟動版本升級:
圖 2 發現新的版本
#p#
顯示11.04發行注記,再次點擊“升級”:
圖 3 新版本發行注記
#p#
升級工具開始下載,開始之前需要輸入密碼:
圖 4 輸入密碼
#p#
做升級準備:
圖 5 準備升級
#p#
點擊“開始升級”:
圖 6 確認開始升級
#p#
下載升級包:
圖 7 下載軟件包
#p#
安裝升級包,這個過程比較長,請耐心等待,可以去喝杯咖啡先。
圖 8 安裝軟件包
#p#
在升級過程的最后,你應該移除廢棄的軟件包:
圖 9 移除廢棄的軟件包
圖 10 正在清理廢棄的軟件包
#p#
系統需要重啟以完成升級,因此請點擊“現在重啟”:
圖 11 確認重啟系統
#p#
當你登錄時,Ubuntu 11.04將使用默認的Unity桌面,需要你的硬件支持3D加速,如果不支持,可以在登錄屏幕選擇“Ubuntu經典桌面”:
圖 12 選擇Ubuntu經典桌面
#p#
重啟后,你就可以使用新的Ubuntu 11.04桌面了(因為我使用的是虛擬機,系統不支持3D加速,因此在下圖中你看到的是Ubuntu經典桌面):
圖 13 Ubuntu經典桌面
#p#
2、服務器
首先獲得root權限:
sudo su
然后運行:
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
然后運行:
do-release-upgrade
啟動系統升級。
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 此處按回車
確定你是否要升級:
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
在升級期間,有些服務需要重啟,當升級管理器要求你重啟某個服務時(它會顯示一個服務列表),你只需要按回車接受即可。
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:
如果你在升級過程末尾看到這樣的消息(你想修改grub配置文件嗎?),你應該移除廢棄的軟件包:
6 packages are going to be removed.
Continue [yN] Details [d] <-- y 此處輸入y
服務器需要重啟以完成升級:
Restart required
To finish the upgrade, a restart is required.
If you select 'y' the system will be restarted.
Continue [yN] <-- y 此處輸入y
重啟后,你的服務器運行的就是Ubuntu 11.04了。
原文名:How To Upgrade Ubuntu 10.10 (Maverick Meerkat) To 11.04 (Natty Narwhal) (Desktop & Server)
【本文乃51CTO獨家譯稿,非經授權謝絕轉載,合作媒體轉載請注明原文作者及出處】
【編輯推薦】