To upgrade a Debian system from Lenny (5.0) to Squeeze (6.0), you need to follow these steps:
- Update the package list:
sudo apt-get update
- Upgrade the packages:
sudo apt-get upgrade
- Change the sources.list file to the new version of Debian:
sudo nano /etc/apt/sources.list
Replace “lenny” with “squeeze” in all lines.
- Update the package list again:
sudo apt-get update
- Upgrade the system:
sudo apt-get dist-upgrade
- After the upgrade is complete, it’s a good idea to clean up the system:
sudo apt-get autoremove
sudo apt-get autoclean
- 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.