To upgrade from Debian 6.0.x (Squeeze) to 7.0.0 (Wheezy), you can follow these steps:
- Backup your data: Before upgrading, it’s always a good idea to backup your data to ensure that you don’t lose any important files during the upgrade process.
- Update your current installation: Run the following commands to update your current Debian Squeeze installation:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
- Edit your sources.list file: Open the
/etc/apt/sources.list
file using a text editor with root privileges:
sudo nano /etc/apt/sources.list
Replace the lines in this file with the following:
deb http://ftp.debian.org/debian wheezy main contrib non-free
deb-src http://ftp.debian.org/debian wheezy main contrib non-free
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
deb http://ftp.debian.org/debian wheezy-updates main contrib non-free
deb-src http://ftp.debian.org/debian wheezy-updates main contrib non-free
- Upgrade to Debian Wheezy: Run the following command to start the upgrade process:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
- Clean up: After the upgrade is complete, run the following command to clean up the package cache:
sudo apt-get autoremove
sudo apt-get autoclean
- Restart your system: Finally, restart your system to complete the upgrade process:
sudo reboot
Note: The upgrade process may take some time, depending on the speed of your system and the number of packages that need to be upgraded. Be patient, and follow the on-screen instructions carefully.