Apt

使用 ‘apt’ 在 Debian 上安裝 FFmpeg

  • February 22, 2021

我有一個 Debian Linux 伺服器(Debian GNU/Linux 8 (Jessie))並且想要安裝 FFmpeg。

我執行以下步驟:

apt update
apt install ffmpeg

然後我收到以下錯誤:

Reading package lists... Done
Building dependency tree Reading state information... Done
Package ffmpeg is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source
E: Package 'ffmpeg' has no installation candidate

我究竟做錯了什麼?

將以下行添加到您的/etc/apt/sources.list

deb http://archive.debian.org/debian jessie-backports main

然後執行:

sudo apt update
sudo apt install -t jessie-backports ffmpeg

顯然 ffmpeg 不存在於 jessie 中,它也是 oldoldstable 版本,部分被 ELTS 覆蓋,但官方不再支持 Debian: https ://wiki.debian.org/LTS https://wiki.debian.org/LTS/擴展

對於多媒體內容,至少更新到穩定是有意義的。或者嘗試將ffmpeg從stretch-oldstable反向移植到jessie。

引用自:https://unix.stackexchange.com/questions/632688