Update Raspbian Wheezy to Jessie upgrade

Last weekend new version of Debian Linux, with codename “Jessie” has been released. I have decided to update my Raspbian with Jessie sources and give upgrade a try.

First backup sources list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.wheezy

Lets check what’s inside

cat /etc/apt/sources.list

deb http://mirrordirector.raspbian.org/raspbian/ wheezy main contrib non-free rpi
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/ wheezy main contrib non-free rpi

Replace wheezy with jessie

sudo sed -i 's/wheezy/jessie/g' /etc/apt/sources.list

Now we can update sources and upgrade packages

sudo apt-get update
sudo apt-get upgrade

You might be prompted with some questions, for me it was only one prompt if all services should be restarted as they can cause downtimes. I allowed their restart and I wasn’t even kicked out of ssh.

I have also run dist-upgrade, to update all packages even this install some packages that are not necessary.

sudo apt-get dist-upgrade

Again you might be prompted several times that config files have changed, and since I wasn’t doing any changes I have updated new versions. You will also be prompted if you want to disable ssh password authentication as root, which I think is a good idea.

As I mentioned earlier upgrade will download some extra packages, so if you use Raspberry Pi with terminal only you can run removal commands from Minimized Raspbian image article where we were minimising Raspbian image.

Update: So far I have only noticed that python3-rpi.gpio is not installed as it depends on Python3 lesser than 3.3 and Jessie has 3.4.2