Howto upgrade from Debian 4 (Etch) to Debian 5 (Lenny)

Discussion in 'Tips/Tricks/Mods' started by Hans, Oct 8, 2008.

  1. Hans

    Hans Moderator ISPConfig Developer

    You probably noticed by now, that Debian GNU/Linux 5.0 aka "Lenny" hasn't been released in September. The reason: too many bugs need to be fixed.

    When Lenny has been released, you can upgrade from Etch to Lenny according the steps below:
    (According the official Debian documentation, these 5 steps describe the safest way to do that job).

    STEP 1:
    Make a backup of your current Debian Etch system.

    STEP 2:
    Change the content of the file /etc/apt/sources.list.
    This means that you need to change "etch" into "lenny".
    So in my case i have to change:

    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

    if you use "stable" instead of "etch", your system will make use of the packages provided by Debian Lenny from the moment on that Lenny gets stable!

    STEP 3:
    Execute the command: aptitude update
    to get information about new packages

    STEP 4:
    Execute the command: aptitude install dpkg aptitude apt
    to install the newest package management

    STEP 5:
    Execute the command: aptitude full-upgrade

    The Debian Devel anounce
    Last edited: Oct 8, 2008
  2. Hans

    Hans Moderator ISPConfig Developer


    I tested this method on my testing server with Debian Etch and ISPConfig
    The upgrade to Debian Lenny was succesful. :)
    Don't perform this upgrade on a production server until Lenny is stable.
    It seams that ISPConfig 3 runs fine on Lenny.
  3. PermaNoob

    PermaNoob New Member

    Hans, how do I make sure I update etch instead of stable?

    Never mind, I found it:

    /etc/apt/sources.list should have (or another server if you're not near Essen)


    deb etch main non-free contrib

    deb etch/updates main contrib non-free


    Actually, when Lenny goes stable, it would be a good idea to put a "heads up" notice in the forums before noobs like me destroy their servers ;-)
    Last edited: Dec 1, 2008

Share This Page