nmservers.com ψ Dedicated hosting | Managed hosting | Performance Analysis | Server Administration | Server Security | WordPress optimizations and securing

Debian 5 to Debian 6 dist upgrade on production server with DirectAdmin installed

HOWTO guide for Debian 5 to Debian 6 dist upgrade on server with DirectAdmin installed. I have tested in on production server and upgrade went fine without any problems. Server rebooted after upgrade fine and there was no need for any interventions. However make sure you have your backups ready! In case something fails and server doesn't boot you will most likely end up with OS reload and you will have to restore data from backups! So make sure you have fresh backups.

  • - step 1: setup new soruces.list in /etc/apt/sources.list

    # main repo
    deb http://ftp.debian.org/debian/ squeeze main
    deb-src http://ftp.debian.org/debian/ squeeze main
    deb http://security.debian.org/ squeeze/updates main
    deb-src http://security.debian.org/ squeeze/updates main
    
    # contrib & non-free repos
    #deb http://ftp.debian.org/debian/ squeeze contrib non-free
    #deb-src http://ftp.debian.org/debian/ squeeze contrib non-free
    #deb http://security.debian.org/debian/ squeeze/updates contrib non-free
    #deb-src http://security.debian.org/debian/ squeeze/updates contrib non-free
    

  • - step 2 (use screen in case you get disconnected): run commands

    apt-get purge;
    apt-get update;
    apt-get install apt dpkg aptitude;
    apt-get dist-upgrade

    Interactive action is required during this process, default values should work without any issues (they worked for me)

  • - step 3: reboot

  • - step 4: rebuild all with /usr/local/directadmin/custombuild/build all d (in my case there was no need for this step, everything worked fine without rebuilding), in case you see /usr/local/lib/libz.so.1: no version information available follow this guide

  • - step 5: make sure to change OS in DA licence from Debian 5 to Debian 6

  • NEED SERVER MANAGEMENT?