Category Archives: Debian

Upgrading the Raspberry Pi 2 from Wheezy to Jessie

Well outside my usual area of expertise… I had a Rasperry Pi 2 running the Raspbian image of Debian Wheezy, but found that upgrading it to Jessie last night was more difficult than the usual painful experience of using “apt-get”.

Step 1

Do the usual: make sure your system is up-to date.  Also install the https transport for apt if you don’t have it, since the new Collabora RasPi2 repository requires SSL.

# apt-get update && apt-get upgrade && apt-get dist-upgrade
...
# apt-get -y install apt-transport-https
...
#
Step 2

Update to the jessie repositories, and switch to the new Collabora repos, grabbing the new keyring:

# sed -i 's/wheezy/jessie/g' /etc/apt/sources.list /etc/apt/sources.list.d/*.list
# echo 'deb https://repositories.collabora.co.uk/debian/ jessie rpi2' > /etc/apt/sources.list.d/collabora.list
# apt-get -y install collabora-obs-archive-keyring
...
#
Step 3

Now we can upgrade:

# apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
...

Passing the “default yes” -y flag to apt-get is my preference, but may not be yours.  You may need to run that command multiple times because it has interactive prompts and other oddities during package upgrades which sometimes fail, an experience which always reminds me of Ye Olde (1980s) Unix package managers.  OK, yes, I’m biased.

Advertisements