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 http://security.debian.org/ etch/updates main contrib
deb-src http://security.debian.org/ etch/updates main contrib
TO
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
Then issue:
Tags: apt-get, debian, dpkg, etch, lenny, Linux, upgrade