首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >指定用于安装包的ubuntu存储库?

指定用于安装包的ubuntu存储库?
EN

Server Fault用户
提问于 2011-03-15 16:44:15
回答 1查看 2.9K关注 0票数 2

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

http://medibuntu.org/repository.php

我的conf.d .d存储库清单如下:

代码语言:javascript
复制
/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库安装它。

代码语言:javascript
复制
/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

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

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

EN

回答 1

Server Fault用户

发布于 2011-03-15 17:11:09

正如Zoredache所提到的,它不是从任何地方显示出来的,而是main;它需要在运行之前就在那里。这就是说,您需要了解如何使用钉扎来设置给定包的来源。

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

代码语言:javascript
复制
Package: ffmpeg
Pin: origin packages.medibuntu.org
Pin-Priority: 600
票数 2
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/247708

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档