指定安装软件包的ubuntu存储库?

我想从mediubuntu安装ffmpeg。 我已经按照以下说明安装了存储

http://medibuntu.org/repository.php

我的conf.d仓库列表:

/etc/apt/sources.list.d# less medibuntu.list ## Please report any bug on https://bugs.launchpad.net/medibuntu/ deb http://packages.medibuntu.org/ lucid free non-free #Medibuntu - Ubuntu 10.04 "lucid lynx" #deb-src http://packages.medibuntu.org/ lucid free non-free #Medibuntu (source) - Ubuntu 10.04 "lucid lynx" 

然而,当我安装ffmpeg,我仍然通过主Ubuntu的库安装它。

 /etc/apt/sources.list.d# apt-cache policy ffmpeg ffmpeg: Installed: (none) Candidate: 4:0.5.1-1ubuntu1 Version table: 4:0.5.1-1ubuntu1 0 500 http://archive.ubuntu.com/ubuntu/ lucid/main Packages 

(忽略安装:无;我已经安装/清除多次试图获得medibuntu)

有没有办法强制它使用medibuntu存储库? 最好在运行时而不是在configuration文件中。

正如Zoredache所说的,它并不是从主stream的任何地方显示出来, 它需要在那里才能工作。 这就是说,你将需要考虑使用固定设置给定包使用的原点。

编辑/etc/apt/preferences ,并添加一个如下所示的块:

 Package: ffmpeg Pin: origin packages.medibuntu.org Pin-Priority: 600