Skip to Content
Raspberry Pi 2 Server Essentials
book

Raspberry Pi 2 Server Essentials

by Piotr J Kula
April 2016
Beginner content levelBeginner
174 pages
3h 46m
English
Packt Publishing
Content preview from Raspberry Pi 2 Server Essentials

Selective settings

We can add the following two lines to /etc/apt/sources.list:

deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi
deb http://archive.raspbian.org/raspbian jessie main contrib non-free rpi

The next step is to tell aptitude to use the wheezy repository for normal updates and that you would like to use Jessie from time to time. These settings should be typed into the file found at /etc/apt/preferences. Create this file if it does not exist:

Package: * 
Pin: release n=wheezy 
Pin-Priority: 900 

Package: * 
Pin: release n=jessie 
Pin-Priority: 300 

Package: * 
Pin: release o=Raspbian 
Pin-Priority: -10 

After adding these settings and saving the files, run sudo apt-get update.

We will be using apt-get with an extra ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Expanding Your Raspberry Pi: Storage, printing, peripherals, and network connections for your Raspberry Pi

Expanding Your Raspberry Pi: Storage, printing, peripherals, and network connections for your Raspberry Pi

Mark Edward Soper
Raspberry Pi Hacks

Raspberry Pi Hacks

Ruth Suehle, Tom Callaway

Publisher Resources

ISBN: 9781783985692Supplemental Content