我有一个 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
我究竟做错了什么?
答案1
将以下行添加到您的/etc/apt/sources.list
:
deb http://archive.debian.org/debian jessie-backports main
然后运行:
sudo apt update
sudo apt install -t jessie-backports ffmpeg
答案2
显然 ffmpeg 不存在于 jessie 中,这也是 oldoldstable 版本,部分被 ELTS 覆盖,但官方不再受 Debian 支持: https://wiki.debian.org/LTS https://wiki.debian.org/LTS/Extended
对于多媒体内容来说,至少更新到稳定版本是有意义的。或者尝试将 ffmpeg 从stretch - oldstable 向后移植到jessie。