Upgrade Debian Etch to Lenny

Debian is my favorite linux system since 2001 or 2002. It is awesome.

The only thing that could be better is that packages are usually very old comparing to current versions. Well but at least everything works. I have used apt-get to upgrade distributions since potato release. So far it worked every time. I think i had some small issues with upgrading samba or cups once but simply going back to previous version worked of the package worked. But after all it always worked.

Getting busy upgrading to Lenny

In case of distribution upgrade from etch to lenny it seems to be quite easy.

Here is are notes how to upgrade Debian etch to debain lenny in just a few simple steps.

First thing you have to do is replace old sources for apt.

#File: /etc/apt/sources.list

deb http://ftp.ie.debian.org/debian/ lenny main
deb-src http://ftp.ie.debian.org/debian/ lenny main

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

Back everything important up before upgrading to new Debian distribution

Then we update the database of packages and dependencies:

apt-get update

Finally we run:

apt-get dist-upgrade

This will take a lot of time as you will be downloading and configuring most of the system. If you dont have too much junk it should be reasonable.

During the configuration the rule of the thumb is to accept everything and only if you have custom config files merge them or let the installer override them if you have a backup.

That should work just like that .... i know its sweet!


Post new comment


About the author

Artur Ejsmont

Hi, my name is Artur Ejsmont,
welcome to my blog. I am a passionate software engineer living in Sydney and working for Yahoo!

Web Scalability for Startup Engineers

If you are into technology, you can order my book Web Scalability for Startup Engineers on Amazon. I would love to hear what are your thoughts so please feel free to drop me a line or leave a comment.

Follow my RSS