Wie man einen Ubuntu 7.04 Server ("Das Perfekte Setup" + ISPConfig) auf Ubuntu 7.10 aktualisiert

Version 1.0
Author: Falko Timme


Diese Anleitung veranschaulicht, wie man einen Ubuntu 7.04 (Feisty Fawn) Server auf einen Ubuntu 7.10 (Gutsy Gibbon) aktualisiert. Ich verwende einen Ubuntu 7.04 Server, richte ihn gemäß der Anleitung Das Perfekte Setup - Ubuntu Feisty Fawn (Ubuntu 7.04) ein und installiere ISPConfig, mit Web Seiten, E-Mail und ftp Konten, Datenbanken, DNS Records, etc. und aktualisiere ihn auf Ubuntu 7.10.

Ich übernehme keine Garantie, dass dies auch bei Dir funktionieren wird!

1 Vorbemerkung

Wie bereits in der Einleitung erwähnt, ist mein Ubuntu 7.04 Server gemäß der Anleitung Das Perfekte Setup - Ubuntu Feisty Fawn (Ubuntu 7.04) konfiguriert und hat ISPConfig installiert. Ich habe ISPConfig dazu verwendet, Web Seiten einzurichten, E-Mail und ftp Konten, Datenbanken, DNS Records etc. Ich habe es auf Ubuntu 7.10 aktualisiert und die bereits vorhandenen Web Seiten, E-Mail und ftp Konten, Datenbanken, DNS Records etc. und danach auch ISPConfig getestet. Dann habe ich neue Web Seiten, Benutzer, Datenbanken, DNS Records etc. eingerichtet um die Funktionsweise des Servers nach der Aktualisierung zu testen und habe keine Fehler bekommen. Alles funktionierte wie geplant.

2 Aktualisierung auf einen Ubuntu 7.10 Server

Zuerst führen wir Folgendes aus

apt-get update

um die Paketdatenbank des Systems zu aktualisieren.

Dann werden wir das Paket update-manager-core installieren:

apt-get install update-manager-core

Um die Aktualisierung zu starten, geben wir Folgendes ein:

do-release-upgrade

Während des Aktualisierungsprozesses wird Dir das System ein paar Fragen stellen, die Du wie folgt beantwortest:

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.

If you continue, a additional ssh daemon will be started at port '9004'.
Do you want to continue?
Continue [yN] <-- y

(In der Tat habe ich SSH verwendet um das System zu aktualisieren; obwohl uns der Aktualisierungsprozess mitteilt, dass es nicht empfehlenswert ist, die Aktualisierung über SSH laufen zu lassen, hatte ich keine Probleme; die Verbindung war stabil und ich musste nicht zur Konsole gehen oder meinen SSH Klienten mit Port 9004 verbinden. Falls Du Probleme mit der Verbindung haben solltest, bitte richte Deinen SSH Klienten auf Port 9004 aus oder verwende die Konsole, wenn Du technisch Zugriff auf das System hast.)

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.

If you continue, a additional ssh daemon will be started at port '9004'.
Do you want to continue?
Continue [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.


Fetching and installing the upgrade can take several hours and cannot be canceled at any time later.
Continue [yN] <-- y

[...]

Services to restart for PAM library upgrade: <-- saslauthd proftpd cron courier-authdaemon atd

[...]


Configuration file `/etc/mysql/my.cnf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** my.cnf (Y/I/N/O/D/Z) [default=N] ? <-- ENTER oder N

[...]

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

What would you like to do about php.ini? <-- behalte die derzeitig installierte Version

[...]


Configuration file `/etc/apache2/apache2.conf'
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** apache2.conf (Y/I/N/O/D/Z) [default=N] ? <-- ENTER oder N

[...]


Configuration file `/etc/apache2/ports.conf'
==> File on system created by you or by a script.
==> File also in package provided by package maintainer.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** ports.conf (Y/I/N/O/D/Z) [default=N] ? <-- ENTER oder N

[...]

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

What would you like to do about php.ini? <-- behalte Deine derzeitg installierte Version

[...]


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

Remove obsolete packages?


10 packages are going to be removed.
Continue [yN] Details [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.

Am Ende der Aktualisierung ist ein System-Neustart von Nöten:


Restart required
To fully ugprade, please restart
Continue [yN] <-- y

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

The system is going down for reboot NOW!

Nach dem Neustart kannst Du Deinen neuen Ubuntu 7.10 (Gutsy Gibbon) Server verwenden.

uname -a

zeigt an, dass Du einen neuen Kernel hast...

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:~#

... und:

cat /etc/debian_version

zeigt:

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

was für Ubuntu 7.10 (Gutsy Gibbon) richtig ist.

3 Links

0 Kommentar(e)

Zum Posten von Kommentaren bitte