Trying to install a newer version of libav-tools from testing to my otherwise debian-stable installation. I have testing in my sources.list and my preferences look like:
Package: *
Pin: release a=stable
Pin-Priority: 995
Package: *
Pin: release a=testing
Pin-Priority: 101
If I understand the wiki correctly, apt-get install pkg/testing
will install pkg
from testing
but won't pull upgrades to satisfy dependencies, whereas apt-get -t testing install pkg/testing
should. However...
Output of apt-get -t testing install libav-tools
:
Reading package lists... Done
Building dependency tree
Reading state information... Done
libav-tools is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 12 not upgraded.
Output of apt-get install libav-tools/testing
:
Selected version '6:9.10-2' (Debian:testing [i386]) for 'libav-tools'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libav-tools : Depends: libavcodec54 (>= 6:9.1-1) but it is not going to be installed or
libavcodec-extra-54 (>= 6:9.10) but it is not going to be installed
... *truncated*
E: Unable to correct problems, you have held broken packages.
Output of apt-get -t testing install libav-tools/testing
is the same.
So, it seems that the -t
switch, on it's own, is not finding the newest package version, whereas /testing
is breaking from the deps. Can someone tell me if this is user error or a bug?
apt
.Also, besides this being a virtbox, I doubt new AV libraries will push my system into an unusable state.
– Dan Anderson Feb 11 '14 at 15:51-t testing
and/testing
will behave as you expect. Regardless,-t testing
is not a great idea in general (unless you really know what you are doing). – Faheem Mitha Feb 11 '14 at 16:09/testing
is that the priority of the package argument(s) are temporarily bumped up (in that) command, probably to 500, for-t testing
it bumps everything in testing. However, if you have increased the priority of stable beyond 500, this is not going to work as expected. It is possible to analyze it in more detail - it is probably possible to ask apt with priorities packages having within the command, but I don't know how to do that. – Faheem Mitha Feb 11 '14 at 16:17In any case, priority 50 does cause apt to work as I expected, as using
-t
switch still reports libav-tools as the newest version, so it is clearly not searching the correct source (I have run anapt-get update
, before you ask.And thanks for the warning: I know that pulling testing into stable is not (in general) a fantastic idea. However, I understand the risk.
– Dan Anderson Feb 11 '14 at 16:22/etc/apt/preferences
, and files in the/etc/apt/preferences.d
directory. – Faheem Mitha Feb 11 '14 at 16:44