Removing proposed packages to revert to stable.
Recently, I had the need to use the -proposed repository on a server whose hardware was causing issues with the shipped version of one of the packages. The patched package has since been migrated to one of the standard repositories, so I've removed the proposed line from my sources.list.
My problem is that the presence of the -proposed source meant some of my other packages have been replaced with proposed versions, throwing that machine out of sync with the rest.
Is there any way I can revert all packages, even those which have picked up a higher version from -proposed, back to the stable versions found in the normal repositories? I've tried and tried, and even if I remove the package and reinstall, it still reverts to the "newer" one, despite the -proposed repository being absent from the sources list.
Re: Removing proposed packages to revert to stable.
You can use APT pinning to accomplish this (http://wiki.debian.org/AptPinning)
Create file /etc/apt/preferences with contents
Code:
Package: *
Pin: release a=feisty
Pin-Priority: 1001
Package: *
Pin: release a=feisty-updates
Pin-Priority: 1001
Package: *
Pin: release a=feisty-proposed
Pin-Priority: -10
Priority over 1000 allows downgrading. This should make apt believe that packages from feisty and feisty-updates are newer.
To simulate
Code:
sudo aptitude -s upgrade
To perform the downgrade
Code:
sudo aptitude upgrade
Re: Removing proposed packages to revert to stable.
Thanks mlind, three years and a half later, your post helped me revert maverick from proposed to normal.
Re: Removing proposed packages to revert to stable.
Hey, me too!
Thank You for the solution!
The proposed repository completely sucks! It has broken half of my system! :confused:
And trying to revert to stable wasted a lot of time!
WTH? Should there be some kind of warning? "If You take the Red pill, there'll be no going back" or something!
This is really frustrated! CANONICAL TAKE A LOOK AT THIS MAJOR PROBLEM!
FIX THIS PLEASE! Or at least create a button that will say: REVERT TO STABLE REPOS
Quit trying to take Gnome Foundation's money and please fix this...
Okay? Because it's really took a go on my nerves... :(
(and I'm sure not only mine)
Re: Removing proposed packages to revert to stable.
Re: Removing proposed packages to revert to stable.
Thanks - this worked in 11.10 too!
Update: I forgot to mention that in 11.10 (and some versions previous) it's 'apt-get' instead of 'aptitude'
Re: Removing proposed packages to revert to stable.
Quote:
Originally Posted by
DrAcid
The proposed repository completely sucks! It has broken half of my system! :confused:
And trying to revert to stable wasted a lot of time!
WTH? Should there be some kind of warning? "If You take the Red pill, there'll be no going back" or something!
This is really frustrated! CANONICAL TAKE A LOOK AT THIS MAJOR PROBLEM!
FIX THIS PLEASE! Or at least create a button that will say: REVERT TO STABLE REPOS
Quit trying to take Gnome Foundation's money and please fix this...
Okay? Because it's really took a go on my nerves... :(
(and I'm sure not only mine)
The point of the proposed repos is for pre-release testing, which is why they are not selected by default. The Ubuntu documentation does state: "The testing area for updates. This repository is recommended only to those interested in helping to test updates and provide feedback."
Re: Removing proposed packages to revert to stable.
OMG!!! You've just help me get rid of the broken system after accidentally activate the proposed repo.
Just 3 words send from 3 years later: I LOVE YOU.
Re: Removing proposed packages to revert to stable.
A big thank you from 2012!
Sean
Re: Removing proposed packages to revert to stable.