2012年4月26日对于全球Ubuntu用户来说更是一个重要的日子:Ubuntu 12.04 LTS正式发布。微软又多了一个强劲的对手,而新一轮的Ubuntu系统升级潮即将来临。
Ubuntu 12.04作为最新的LTS重要发布,必将引发众多Linux爱好者对原有Ubuntu版本进行升级,升级到最新的平台来体验Ubuntu的全新特性,下面的文章给大家介绍一下服务器版本是如何从Ubuntu 11.10升级到Ubuntu 12.04 LTS。
服务器版本升级到Ubuntu 12.04 LTS
1.首先成为root用户
sudo su
2.然后运行
apt-get update
3.然后安装最新的更新
apt-get upgrade
4.安装更新包的核心
apt-get install update-manager-core
5.打开文件/etc/update-manager/release-upgrades
vi /etc/update-manager/release-upgrades
6.看是否提示正常
图片说明
7.然后运行
do-release-upgrade
8.开始升级
root@server1:~# do-release-upgrade
Checking for a new ubuntu release
Get:1 Upgrade tool signature [198 B]
Get:2 Upgrade tool [1550 kB]
Fetched 1550 kB in 0s (0 B/s)
authenticate ‘precise.tar.gz’ against ‘precise.tar.gz.gpg’
extracting ‘precise.tar.gz’
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
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?
2 installed packages are no longer supported by Canonical. You can
still get support from the community.
5 packages are going to be removed. 52 new packages are going to be
installed. 426 packages are going to be upgraded.
You have to download a total of 286 M. This download will take about
2 minutes with your connection.
Installing the upgrade can take several hours. Once the download has finished, the process cannot be canceled.
Continue [yN] Details [d] <– y
在更新过程中,一些服务可能需要重新启动。如果更新管理问你哪些服务应该重新启动(它显示了一个服务列表),只接受按默认服务输入。
在升级过程结束时,应该删除过时的包:
Remove obsolete packages?
19 packages are going to be removed.
Continue [yN] Details [d] <– y
服务器需要重新启动才能完成升级:
System upgrade is complete.
Restart required
To finish the upgrade, a restart is required.
If you select ‘y’ the system will be restarted.
Continue [yN] <– y
重新启动后,可以肯定的是您的服务器正在运行的Ubuntu 12.04。来/ etc / issue中看看:
cat /etc/issue
root@server1:~# cat /etc/issue
Ubuntu 12.04 LTS n l
root@server1:~#
这样服务器版本就升级完毕了,从上面的过程可以看出,其实直接升级相对直接安装还是非常简单的,而且需要的时间也相对较少,而且也省去了相应的配置,但是升级系统容易出现错误,引起系统不能重启,大家可以根据需要,自行决定安装方法,Ubuntu 12.04 LTS服务器版本还是值得大家尝试的。
我们一直都在努力坚持原创.......请不要一声不吭,就悄悄拿走。
我原创,你原创,我们的内容世界才会更加精彩!
【所有原创内容版权均属TechTarget,欢迎大家转发分享。但未经授权,严禁任何媒体(平面媒体、网络媒体、自媒体等)以及微信公众号复制、转载、摘编或以其他方式进行使用。】
微信公众号
![TechTarget微信公众号二维码](/wp-content/uploads/res/images/spriteimg/ttweixin.jpg)
TechTarget
官方微博
![TechTarget中国官方微博二维码](/wp-content/uploads/res/images/spriteimg/ttweibo.jpg)
TechTarget中国
相关推荐
-
Ubuntu 12.04 LTS vs. Ubuntu 14.04 LTS:性能大对比
本文通过phoronix.com网站最新的测试,针对Ubuntu 12.04 LTS版本与Ubuntu 14.04 LTS版本进行性能测试对比。
-
新人指南 Ubuntu下搭建Web服务器
本文以Ubuntu 11.10为例,具体展示了在Ubuntu 11.10下搭建Web服务器的全部具体步骤。希望与大家一同探讨用Ubuntu搭建Web服务器的优缺点。
-
如何快捷升级至Ubuntu 12.04 LTS
直接安装Ubuntu 12.04 LTS版本会出现旧数据和资料处理问题。这里给大家介绍一下如何方便快捷地把老版本Ubuntu 11.10升级到最新版的Ubuntu 12.04 LTS。
-
桌面版本Ubuntu 11.10如何升级至Ubuntu 12.04
随着Ubuntu 12.04 LTS的正式发布,新一轮的Ubuntu系统升级潮即将来临。前期我们介绍了如何将自己的Ubuntu 12.04 LTS魅力再升级,现在给大家介绍一下桌面版本是如何从Ubuntu 11.10升级到Ubuntu 12.04 LTS。