Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install ffmpeg from mediubuntu. I've installed the repository per the instructions on:

My conf.d repository listing:

/etc/apt/sources.list.d# less medibuntu.list  
## Please report any bug on
deb lucid free non-free #Medibuntu - Ubuntu 10.04 "lucid lynx"
#deb-src lucid free non-free #Medibuntu (source) - Ubuntu 10.04 "lucid lynx"

Yet when I install ffmpeg I still get it installed via the main ubuntu library.

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

(Ignore the installed: none; I've installed/purged multiple times trying to get the medibuntu one)

Is there a way I can force it to use the medibuntu repository? Perferably at run-time rather than in a config file.

share|improve this question
If your apt-cache output is correct, it does not appear to be showing ffmpeg as even being present in any other repositories. Did you run an apt-get update? – Zoredache Mar 15 '11 at 16:57

As Zoredache mentioned, it's not showing as available from anywhere but main; it needs to be there before this will work. That said, you'll want to look into using pinning to set the origin used for a given package.

Edit /etc/apt/preferences, and add a block something like this:

Package: ffmpeg
Pin: origin
Pin-Priority: 600
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.