HowTo: Upgrade Debian Lenny to Squeeze

To upgrade a Debian system from Lenny (5.0) to Squeeze (6.0), you need to follow these steps:

  1. Update the package list:
sudo apt-get update
  1. Upgrade the packages:
sudo apt-get upgrade
  1. Change the sources.list file to the new version of Debian:
sudo nano /etc/apt/sources.list

Replace “lenny” with “squeeze” in all lines.

  1. Update the package list again:
sudo apt-get update
  1. Upgrade the system:
sudo apt-get dist-upgrade
  1. After the upgrade is complete, it’s a good idea to clean up the system:
sudo apt-get autoremove
sudo apt-get autoclean
  1. Finally, reboot the system:
sudo reboot

Note: It’s always a good idea to backup important data before upgrading a system, in case anything goes wrong.

Leave a Comment