Debian – downgrading distributions

I recently run into problems with some packages in Jessie and had to roll back to Whezzy,

This is how I’ve done it:

1. update /etc/apt/sources.list so it looks like this:

deb http://security.debian.org/ wheezy/updates main
deb-src http://security.debian.org/ wheezy/updates main

deb http://cdn.debian.net/debian/ wheezy main contrib non-free
deb-src http://cdn.debian.net/debian/ wheezy main contrib non-free

2. Create or modify /etc/apt/preferences and put following text in it:

 Package:*
 Pin: release a=stable
 Pin-Priority:1001

3. Run “apt-get update; apt-get dist-upgrade” to force downgrading of packages across the system.

In my case I just had to roll one package back to Whezzy so I after apt-get update I ran apt-get install <packagename>

 

Based on: https://www.debian.org/doc/manuals/debian-reference/ch02.en.html#_emergency_downgrading

Leave a Reply

Your email address will not be published. Required fields are marked *

one × four =

This site uses Akismet to reduce spam. Learn how your comment data is processed.