I mistakenly enabled the Pre-release updates (natty-proposed) repository and then upgraded all packages.
How can I undo this?
Here are the test results from @enzotib's instructions and the test results from my instructions.
11.04repositoryuninstallupgrade
I mistakenly enabled the Pre-release updates (natty-proposed) repository and then upgraded all packages.
How can I undo this?
Here are the test results from @enzotib's instructions and the test results from my instructions.
Best Answer
Here's a more general way to revert from locally installed packages, proposed and backports packages to the stable+updates channel. While the other answers are correct and work in a similar way, I think this is a more elegant approach.
-proposed
or-backports
in your/etc/apt/sources.list
and/etc/apt/sources.list.d/*
files.Add an apt-preferences file, e.g.
/etc/apt/preferences.d/99-back-to-stable-updates
containing (forprecise
here - replace with your version):This pinning of > 1000 will make apt force a downgrade on packages from that channel and a priority of < 0 on the
-proposed
and-backports
channels will make remove any additional packages too.Now run
Inspect the proposed solution apt will give you, and if you think it's okay, then accept it. If you need to check on why and what version it will be downgraded to, check this with
apt-cache policy packagename
to see what versions are available and what apt decides is the candidate for installation.Remove the
/etc/apt/preferences.d/99-back-to-stable-updates
file again, as it's not needed anymore.Thanks to
mlind
on the Ubuntu forums for this inspriation on pinning in his post from more than 5 years ago - yet it helped me out pretty well today.