Debian Lenny is now stable, so here is a quick guide to upgrading. I would recommend taking backups before doing this, and not performing this upgrade on a live/production machine.

Edit /etc/apt/sources.list

Replace ‘etch’ with ‘lenny’ – in my case:

deb etch main
deb-src etch main

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


deb lenny main
deb-src lenny main

deb lenny/updates main contrib
deb-src lenny/updates main contrib

Then issue:

apt-get clean
apt-get update
apt-get dist-upgrade