如何将Ubuntu Server 12.04 升级到 Ubuntu Server 14.04 LTS

如题所述

升级Ubuntu 12.04到Ubuntu 14.04方法如下:

步骤一:在终端中运行下面的命令,它将安装所有的升级包。
$ sudo apt-get update && sudo apt-get dist-upgrade

步骤二:系统升级之后,按“Alt+F2”然后输入“update-manager -d”。这里“-d”参数用来检查开发版本信息。通过这个步骤,你可以打开软件升级管理器。

步骤三:软件升级管理器将检查新版本的更改。

步骤四:在软件升级对话框中点击“升级”按钮;

步骤五:出现版本更新说明。阅读后请点击“升级”;

步骤六:点击“开始升级”,系统开始升级。

步骤七:下面显示了升级过程的步骤。整个升级过程的时间取决于网速和电脑的配置。

步骤八:一旦升级完成,就可以点击“马上重启”了。

步骤九:系统登录前的提示:注意登陆界面已经显示为“14.04 LTS”。

温馨提示:答案为网友推荐,仅供参考
第1个回答  推荐于2016-06-17
Step 1: Updating Ubuntu Repository and Install Update Manager
Make sure your current ubuntu server is fully up to date, doing it with the following command:
sudo apt-get update

Install update manager core package with these command:
sudo apt-get install update-manager-core

Step 2: Check Current Version of Ubuntu Server and Kernel Version
Run the following command to check current version of ubuntu server and kernel information that used ubuntu server
lsb_release -a

uname -a

On this case, we are using Ubuntu Server 12.04.4 and kernel 3.8.0-29-generic
Step 3: Upgrade to Ubuntu Server 14.04 LTS
Type the following command to upgrade the Ubuntu server 12.04.4 to Ubuntu Server 14.04 LTS :
sudo do-release-upgrade -d

After execute command do-release-upgrade, it will showing the upgrade tool like the screenshot on below. Answer ” Y ” to upgrade.

During the upgrade prosess, you may be asked “Disable SSH password authentication for root?” answer “No” if you want to disable SSH password authentication after the upgrading finish

Next, you may be asked “Restart services during package upgrades without asking?” answer yes if you won’t be asked on each library update.

The end of the installation you will be prompted to remove any obsolete packages, Answer ‘y’ to continue and remove. Hit ‘d’ to see details of these packages.

Once remove obsolete packages is complete, you will get message “System upgrade is complete”. Congratulations, your Ubuntu Server 12.04 has now been upgraded to the Ubuntu Server 14.04 LTS. To complete the upgrade, reboot your Ubuntu Server by answering ‘Y’.

Step 4 : Checking Version of Ubuntu Server and Kernel Version After Upgrade
Once your Ubuntu Server has been rebooted successfully, you need to check the version of ubuntu server and kernel version with the command “lsb_release -a” and “uname -r”.
lsb_release -a

uname -r

The commands will confirm the Ubuntu Server that you are using is Ubuntu Server 14.04 LTS.
Optional: If you get information “No LSB modules are available ” after execute the command “lsb_release -a” . Fix this problem by installing “lsb_core” package:
sudo apt-get update
sudo apt-get install lsb-core

Now run again the command lsb_release -a to check for LSB modules. You should get information of LSB version like the following screenshot.
lsb_release a

On this tutorial we also included video step by step upgrading ubuntu server 12.04 to ubuntu server 14.04. The following video created by LinuxScoop, original video can found here本回答被提问者和网友采纳
相似回答