This blog post will discuss how to upgrade from Debian squeeze to wheezy.
We’ll start by cleaning a few things up.
Now let’s search for packages that have been installed only partially and fix them.
Now make sure no packages are on hold like so:
If you receive no output from the two dpkg commands above it should be safe to start the upgrade.
Update your source list located at /etc/apt/sources.list. If you’re not on squeeze then substitute ‘squeeze’ with the version you’re on.
Your source list at /etc/apt/sources.list should now look something like the following:
1 2 3 4 5 6 7 8 9 10 11
Note: Your URLs will likely differ from mine; especially if you don’t live in the US.
Now let’s resynchronize your package index files from the new sources that point to Wheezy.
Next install the newest versions of all packages currently installed on the system according to /etc/apt/sources.list.
Note: This is pretty much the point of no return!
Now actually upgrade your current Debian distribution. Apt-get dist-upgrade will perform the same as upgrade and intelligently handle changing dependencies with new versions of packages.
After logging back into your Debian box let’s check for package issues like we did before.
You may need to do the upgrade dist-upgrade song-and-dance one final time.
Finally check what Debian version you’re currently on.
1 2 3
If the output of the above command is 7.0 you are now running Debian Wheezy!
Now go have a beer or three!