Upgrade to Debian Jessie before the Official release date
I have been running Gnome Classic on Debian Wheezy for the last couple of years, but Debian Jessie will be released soon and it includes some interesting new packages:
- Docker for Linux containers
- Steam for gaming (in non-free)
- ownCloud for private cloud storage
- systemd as default, which has caused a lot of angst in the Debian community
Unlike other distros, the Debian release policy is to release when it is good and ready. Jessie was frozen in November last year and the package maintainers are down to the last fifty-five Release Critical bugs, so Jessie is likely to be formally released in April this year.
None of my systems are mission-critical so I decided to do an in-place upgrade from Wheezy to Jessie now, before it is officially released.
It's all very straightforward if you follow the Debian instructions.
First, back up the data you care about to an external drive in the unlikely event that it all goes pear-shaped. You do backup regularly don't you? Good for you. I don't. Nobody does. Well, except for you and other more disciplined network administrators.
Second, make sure that your existing implementation of Wheezy is up-to-date and consistent:
1apt-get update
2apt-get upgrade
List any packages which have a status of Half-Installed or Failed-Config, or show an error status:
1dpkg --audit
List any packages which have been put on hold:
1dpkg --get-selections | grep 'hold$'
Fix them, then when you are done, list all your packages and check that they all show ii
in the first column:
1dpkg -l | more
Rinse and repeat.
When you are done, remove any forgotten packages:
1apt-get autoremove
Now you are ready to update and upgrade. Replace Wheezy with the Jessie repositories by editing the software sources in /etc/apt/sources.list
and changing wheezy
or stable
to jessie
:
1vi /etc/apt/sources.list
2deb http://yourmirror.debian.org/debian/ jessie main
3deb http://security.debian.org/ jessie/updates main
4deb http://yourmirror.debian.org/debian/ jessie-updates main
5deb http://yourmirror.debian.org/debian/ jessie-backports main
Update the list of available packages for the new release:
1apt-get update
The upgrade is a two-part process: first a minimal upgrade of those packages which can be upgraded without requiring other packages to be removed or installed, then the Full Monty, a complete upgrade of the system, installing the newest versions of all packages and resolving dependency changes between packages:
1apt-get upgrade
2apt-get dist-upgrade
You may get prompted to respond to questions from the install scripts. Most often the default answer is correct, but always choose the option to display the proposed changes before deciding.
Once it has run its course, you can remove the old Wheezy packages:
1apt-get autoremove
You can see a list of the new features in the new release here.