Upgrading Your Debian From Lenny To Squeeze
Here is a tutorial for those who are using Debian Lenny(5) to upgrade to Debian Squeeze(6).
This tutorial is suitable for those who wanted to upgrading their Debian desktop, laptop, netbook, dedicated servers as well as VPS.
If you are using desktop, laptop or netbook, fire up your terminal emulator, such as Gnome Terminal etc.
If you are using dedicated server or a VPS, ssh into your server using a terminal emulator.
When you have done everything at above, do the following.
1. Login into root.
If you are using a server, you probably already on user root.
If you are using desktop, laptop or netbook, please do so by using the command “sudo su”.
2. Edit apt sources
Do this command:
nano /etc/apt/sources.list
Then change all the word “lenny” to “squeeze”
When done, just press Ctrl+X and press the Enter key to save it.
3. Update and Upgrade
Now, you should update your apt cache.
Do so with this command:
apt-get update
When it is done, install the new apt and dpkg using this command:
apt-get install apt dpkg
Now, the final step, upgrading your Debian installation.
Use the command below to perform the upgrade and wait.
apt-get dist-upgrade
During the upgrade, you might need to answer a few questions.
It should be safe to answer everything to “yes”.
Anyway, this tutorial is only suitable for those who have good internet connection.
If you are using a 3G broadband connection, please do not use this tutorial for upgrading your Debian Lenny.












