如何升级Ubuntu 7.04服务器(“完美设置”+ ISPConfig)到Ubuntu 7.10

如何升级Ubuntu 7.04服务器(

如何升级Ubuntu 7.04服务器(“完美设置”+ ISPConfig)到Ubuntu 7.10

版本1.0
作者:Falko Timme

本文介绍如何将Ubuntu 7.04(Feisty Fawn)服务器升级到Ubuntu 7.10(Gutsy Gibbon)。 我正在使用Ubuntu 7.04服务器, 根据完美设置 - Ubuntu Feisty Fawn(Ubuntu 7.04)和安装了ISPConfig的网站,电子邮件和ftp帐户,数据库,DNS记录等进行设置,并将其升级到Ubuntu 7.10。

我不会保证这将为您工作!

1初步说明

如介绍中所述,我的Ubuntu 7.04服务器是根据The Perfect Setup - Ubuntu Feisty Fawn(Ubuntu 7.04)配置的 ,并安装了 ISPConfig。 我已经使用ISPConfig设置网站,电子邮件和ftp帐户,数据库,DNS记录等。我已经升级到Ubuntu 7.10,并测试了现有的网站,电子邮件和ftp帐户,数据库,DNS记录等作为ISPConfig之后,然后我设置了新的网站,用户,数据库,DNS记录等,以便在分发升级后测试服务器的功能,并发现没有错误。 一切都按预期工作。

2配置升级到Ubuntu 7.10服务器

首先我们跑

apt-get update

更新系统的包数据库。

然后我们安装软件包update-manager-core

apt-get install update-manager-core

要启动分发升级,我们输入:

do-release-upgrade

在升级过程中,系统会提出几个问题,我们回答如下:

root@server1:~# do-release-upgrade
Checking for a new ubuntu release
Done Upgrade tool signature
Done Upgrade tool
Done downloading
extracting '/tmp/tmpj_2RBY/gutsy.tar.gz'
authenticate '/tmp/tmpj_2RBY/gutsy.tar.gz' against '/tmp/tmpj_2RBY/gutsy.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.

如果继续,将在端口'9004'处启动一个额外的ssh守护进程。
你想继续吗?
继续[yN] < - y

(实际上我使用SSH来更新系统;虽然升级过程告诉我们不推荐通过SSH运行升级,但我没有任何问题,连接稳定,我不必去控制台,也没有将我的SSH客户端连接到端口9004。如果您有连接问题,请将您的SSH客户端引导到端口9004,或者使用控制台,如果您具有对系统的物理访问权限)。

Starting additional sshd
To make recovery in case of failure easier a additional sshd will be started on port '9004'. If anything goes wrong with the running ssh you can still connect to the additional one.

Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done
Done http://us.archive.ubuntu.com feisty-backports Release.gpg
Done http://de.archive.ubuntu.com feisty Release.gpg
Done http://de.archive.ubuntu.com feisty-updates Release.gpg
Done http://security.ubuntu.com feisty-security Release.gpg
Hit http://de.archive.ubuntu.com feisty Release
Done http://de.archive.ubuntu.com feisty Release
Hit http://security.ubuntu.com feisty-security Release
Done http://security.ubuntu.com feisty-security Release
Hit http://de.archive.ubuntu.com feisty-updates Release
Done http://de.archive.ubuntu.com feisty-updates Release
Hit http://de.archive.ubuntu.com feisty/main Packages
Hit http://de.archive.ubuntu.com feisty/restricted Packages
Hit http://de.archive.ubuntu.com feisty/main Sources
Hit http://security.ubuntu.com feisty-security/main Packages
Hit http://de.archive.ubuntu.com feisty/restricted Sources
Hit http://de.archive.ubuntu.com feisty/universe Packages
Hit http://de.archive.ubuntu.com feisty/universe Sources
Hit http://de.archive.ubuntu.com feisty/multiverse Packages
Hit http://de.archive.ubuntu.com feisty/multiverse Sources
Hit http://de.archive.ubuntu.com feisty-updates/main Packages
Hit http://de.archive.ubuntu.com feisty-updates/restricted Packages
Hit http://de.archive.ubuntu.com feisty-updates/main Sources
Hit http://de.archive.ubuntu.com feisty-updates/restricted Sources
Hit http://security.ubuntu.com feisty-security/restricted Packages
Hit http://security.ubuntu.com feisty-security/main Sources
Hit http://security.ubuntu.com feisty-security/restricted Sources
Done http://us.archive.ubuntu.com feisty-backports Release
Done http://us.archive.ubuntu.com feisty-backports Release
Hit http://security.ubuntu.com feisty-security/universe Packages
Hit http://security.ubuntu.com feisty-security/universe Sources
Hit http://security.ubuntu.com feisty-security/multiverse Packages
Hit http://security.ubuntu.com feisty-security/multiverse Sources
Done http://us.archive.ubuntu.com feisty-backports/main/debian-installer Packages
Done http://us.archive.ubuntu.com feisty-backports/main/debian-installer Packages
Done downloading
Reading package lists: Donem feisty-backports/main/debian-installer Packages: 98
Reading state information: Done
Reading state information: Done
Reading state information: Done
Done http://us.archive.ubuntu.com feisty-backports/main/debian-installer release-upgrader-dpkg 1.14.5ubuntu11.2
Done http://us.archive.ubuntu.com feisty-backports/main/debian-installer release-upgrader-apt 0.6.46.4ubuntu10.3
Done downloading

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.

如果继续,将在端口'9004'处启动一个额外的ssh守护进程。
你想继续吗?
继续[yN] < - y

[...]

Done http://de.archive.ubuntu.com gutsy/universe Sources
Done http://de.archive.ubuntu.com gutsy/multiverse Packages
Done http://de.archive.ubuntu.com gutsy/multiverse Sources
Done http://de.archive.ubuntu.com gutsy-updates/main Packages
Done http://de.archive.ubuntu.com gutsy-updates/restricted Packages
Done http://de.archive.ubuntu.com gutsy-updates/main Sources
Done http://de.archive.ubuntu.com gutsy-updates/restricted Sources
Done downloading

Checking package manager
Reading package lists: Donegutsy-security/multiverse Packages: 98
Reading state information: Done
Reading state information: Done
Reading state information: Done

Asking for confirmation

Support for some applications ended
Canonical Ltd. no longer provides support for the following software packages. You can still get support from the community.

If you have not enabled community maintained software (universe), these packages will be suggested for removal at the end of the upgrade.
libdb3
libdb3-util
liblzo1

Do you want to start the upgrade?

2 packages are going to be removed. 35 new packages are going to be installed. 339 packages are going to be upgraded.

You have to download a total of 181M. This download will take about 23 minutes with a 1Mbit DSL connection and about 7 hours 1 minutes with a 56k modem.

获取和安装升级可能需要几个小时,不能随时取消。
继续[yN] < - y

[...]

服务重新启动PAM库升级: < - saslauthd proftpd cron courier-authdaemon atd

[...]

配置文件`/etc/mysql/my.cnf'
==>自安装以来修改(由您或脚本)。
==>软件包分销商已发布更新版本。
你想做什么呢? 您的选择是:
Y或I:安装包维护者的版本
N或O:保留当前安装的版本
D:显示版本之间的差异
Z:背景这个过程来检查情况
默认操作是保留当前版本。
*** my.cnf(Y / I / N / O / D / Z)[default = N]? < - ENTER或N

[...]

A new version of configuration file /etc/php5/cli/php.ini is available, but your version has been locally modified.

你想做什么关于php.ini? < - 保留您当前安装的版本

[...]

配置文件`/etc/apache2/apache2.conf'
==>自安装以来修改(由您或脚本)。
==>软件包分销商已发布更新版本。
你想做什么呢? 您的选择是:
Y或I:安装包维护者的版本
N或O:保留当前安装的版本
D:显示版本之间的差异
Z:背景这个过程来检查情况
默认操作是保留当前版本。
*** apache2.conf(Y / I / N / O / D / Z)[default = N]? < - ENTER或N

[...]

配置文件`/etc/apache2/ports.conf'
==>由您或脚本创建的系统上的文件。
==>文件也由包维护者提供的包中。
你想做什么呢? 您的选择是:
Y或I:安装包维护者的版本
N或O:保留当前安装的版本
D:显示版本之间的差异
Z:背景这个过程来检查情况
默认操作是保留当前版本。
*** ports.conf(Y / I / N / O / D / Z)[default = N]? < - ENTER或N

[...]

A new version of configuration file /etc/php5/apache2/php.ini is available, but your version has been locally modified.

你想做什么关于php.ini? < - 保留您当前安装的版本

[...]

Searching for obsolete software
Reading package lists: Done
Reading state information: Done
Reading state information: Done
Reading state information: Done

Remove obsolete packages?

10个包将被删除。
继续[yN]详细信息[d] < - y

Done downloading
(Reading database ... 28724 files and directories currently installed.)
Removing libbind9-0 ...
Removing libdevmapper1.02 ...
Removing libisccfg1 ...
Removing libdns22 ...
Removing libisccc0 ...
Removing libisc11 ...
Removing libiw28 ...
Removing libjasper-1.701-1 ...
Removing liblwres9 ...
Removing libsnmp9 ...
Processing triggers for libc6 ...
ldconfig deferred processing now taking place

System upgrade is complete.

升级结束时,需要重新启动系统:

重新启动所需
要完全ugprade,请重新启动
继续[yN] < - y

Broadcast message from root@server1.example.com
(/dev/pts/0) at 15:01 ...

The system is going down for reboot NOW!

重新启动后,您可以使用新的Ubuntu 7.10(Gutsy Gibbon)服务器。

一个

uname -a

表明你有一个新的内核

root@server1:~# uname -a
Linux server1.example.com 2.6.22-14-server #1 SMP Sun Oct 14 23:34:23 GMT 2007 i686 GNU/Linux
root@server1:~#

...和:

cat /etc/debian_version

显示:

root@server1:~# cat /etc/debian_version
lenny/sid
root@server1:~#

这对于Ubuntu 7.10(Gutsy Gibbon)是正确的。

在最后一步确保/ bin / sh是一个符号链接到/ bin / bash ,而不是/ bin / dash通过运行:

ln -sf /bin/bash /bin/sh