upgrading guest vserver Debian etch to lenny

Having a simple LAMP guest Linux Vserver Debian etch we can do a dist-upgrade in minutes.
1. Stop the guest vserver, and make a copy of it. Just in case if something goes wrong.
2. Start the guest vserver, and enter it. Type as root:

# sed -i -e „s#etch#lenny#g” /etc/apt/sources.list

your file will look some like this:

deb http://ftp.pl.debian.org/debian/ lenny main
deb-src http://ftp.pl.debian.org/debian/ lenny main
deb http://security.debian.org lenny/updates main

3. Do: apt-get update
4. Start praying ;-) and type: apt-get dist-upgrade
5. Done ?

You probably have a syslog-ng daemon, and if it wouldn’t run, chceck the config files. In a Linux guest vserver you should comment line:

file(„/proc/kmsg” log_prefix(„kernel: „));

and then start your syslog-ng daemon.
It take me 10 minutes to upgrade my Debian guest vserver on my notebook :)

Dodaj komentarz

Twój adres email nie zostanie opublikowany. Pola, których wypełnienie jest wymagane, są oznaczone symbolem *

This site uses Akismet to reduce spam. Learn how your comment data is processed.