How to Upgrade Debian Etch 4.0 to Debian Lenny 5.0

Debian Lenny stable version is finally released and many are curious to upgrade Debian Etch to Debian Lenny. Debian Etch to Debian Lenny Upgrade is not a difficult task, you can easily initiate the live upgrade with bunch of commands. But before you start the upgrade make sure to take the backup of your important stuffs like web files, database, conf …..Etc.

To Upgrade Debian Etch to Debian Lenny, just follow these 5 steps:

1. First you need to edit the /etc/apt/Sources.list file.

sudo vi /etc/apt/sources.list


sudo nano /etc/apt/sources.list

You may noticed as follow in the Sources.list

deb stable main
deb-src stable main
deb stable/updates main


deb etch main
deb-src etch main
deb etch/updates main contrib

If you notice something like this, you need to replace the word ‘etch’ with ‘lenny’. Debian Lenny is now a stable version, so if the entries in Sources.list are ‘Stable’ leave it unchanged.

2. Now perform the Update.

sudo apt-get update

3. Once Update is done Upgrade the core apt packages.

sudo aptitude install apt dpkg aptitude

4. Now run dist-upgrade or full-upgrade and follow the on screen instructions.

sudo aptitude full-upgrade


sudo apt-get dist-upgrade

5. Once the upgrade is done reboot your server.