====== Debian Distribution Upgrade - Squeeze to Wheezy ======
===== 0. foreword =====
The source of this tutorial is sysadminslife.com((http://www.sysadminslife.com/linux/howto-upgrade-debian-6-squeeze-zu-debian-7-wheezy/)) and describes the update process in a compact form.
===== 1. create a data backup =====
Before you start the update, you should definitely start a data backup. Ideally, create a snapshot or a hard disc image. (I will not go into the procedure here)
===== 2. display the current Debian version =====
cat /etc/debian_version
6.0.7
===== 3. update packages =====
apt-get update
apt-get upgrade
apt-get dist-upgrade
===== 4. customise the sources.list =====
Adapt the file /etc/apt/sources.list as follows (if there are entries from third-party providers, these must also be updated):
deb http://ftp.at.debian.org/debian/ wheezy main
deb-src http://ftp.at.debian.org/debian/ wheezy main
deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main
deb http://ftp.at.debian.org/debian/ wheezy-updates main
deb-src http://ftp.at.debian.org/debian/ wheezy-updates main
===== 5. run the minimal update =====
apt-get update
apt-get upgrade
===== 6. kernel update =====
List the current kernel:
dpkg -l | grep linux-image
Sample output:
ii linux-image-2.6-amd64 2.6.32+29 Linux 2.6 for 64-bit PCs (meta-package)
ii linux-image-2.6.32-5-amd64 2.6.32-41 Linux 2.6.32 for 64-bit PCs
Here you have to remember the meta designation (amd64 or 686):
apt-get install linux-image-2.6-amd64
===== 7. manual grub update =====
update-grub
===== 8. manual udev update =====
apt-get install udev
===== 9. start complete update =====
apt-get dist-upgrade
===== 10. display Debian version =====
cat /etc/debian_version
7.0
===== 11. reboot =====
shutdown -r now
===== 12. rework =====
Be sure to check the error logs!