This blog post will discuss how to upgrade from Debian squeeze to wheezy.
We’ll start by cleaning a few things up.
1
|
|
1
|
|
Now let’s search for packages that have been installed only partially and fix them.
1
|
|
Now make sure no packages are on hold like so:
1
|
|
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.
1
|
|
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.
1
|
|
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!
1
|
|
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.
1
|
|
Now reboot.
1
|
|
After logging back into your Debian box let’s check for package issues like we did before.
1 2 |
|
You may need to do the upgrade dist-upgrade song-and-dance one final time.
1 2 |
|
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!