You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Debian 10中apt仅显示旧版ffmpeg,无法获取满足需求的高版本

在Debian 10 (buster)安装bullseye版本的ffmpeg

1. 添加bullseye仓库源

编辑apt源配置文件:

sudo nano /etc/apt/sources.list

添加以下内容(以amd64架构为例):

deb http://deb.debian.org/debian bullseye main
deb-src http://deb.debian.org/debian bullseye main

2. 设置仓库优先级(避免系统整体升级到bullseye)

创建并编辑优先级配置文件:

sudo nano /etc/apt/preferences.d/99bullseye

写入以下规则,确保仅ffmpeg及其依赖包使用bullseye版本:

Package: *
Pin: release a=buster
Pin-Priority: 900

Package: *
Pin: release a=bullseye
Pin-Priority: 500

# 针对ffmpeg及其依赖提升bullseye优先级
Package: ffmpeg libavcodec58 libavdevice58 libavfilter7 libavformat58 libavresample4 libavutil56 libpostproc55 libswresample3 libswscale5
Pin: release a=bullseye
Pin-Priority: 900

3. 更新缓存并安装指定版本

执行apt更新:

sudo apt update

安装bullseye版本的ffmpeg:

sudo apt install ffmpeg/bullseye

验证安装结果

查看当前ffmpeg版本:

ffmpeg -version

正常情况下会显示4.3.5版本。

注意事项

  • 若安装时出现依赖冲突,可根据错误提示,将缺失的依赖包添加到优先级配置文件的bullseye优先级列表中。
  • 此配置仅针对ffmpeg相关包升级,不会导致系统其他组件自动升级到bullseye版本。

内容的提问来源于stack exchange,提问作者user9102437

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.02 18:46:41