Ubuntu 16.04.6 LTS并试图安装ffmpeg。
$ sudo apt install ffmpeg
Reading package lists... Done
Building dependency tree
Reading state information... Done
ffmpeg is already the newest version (7:4.1.3-0york1~16.04).
You might want to run 'apt-get -f install' to correct these:
The following packages have unmet dependencies:
cuda-libraries-dev-10-1 : Depends: libcublas-dev (>= 10.2.1.243) but it is not going to be installed
cuda-samples-10-1 : Depends: libcublas-dev (>= 10.2.1.243) but it is not going to be installed
cuda-visual-tools-10-1 : Depends: libcublas-dev (>= 10.2.1.243) but it is not going to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).它说,ffmpeg已经是最新的版本,但它不是(1.4是最新的afaik)。我试过查看ffmpeg版本:
$ ffmpeg -version
The program 'ffmpeg' is currently not installed. You can install it by typing:
sudo apt install ffmpeg注意:我查看了其他帖子,并添加了这个apt回购:sudo add-apt-repository ppa:jonathonf/ffmpeg-4
我能够使用pip3安装ffmpeg,并安装到/usr/local/lib/python3.5/dist-packages/ffmpeg上。
有人能帮忙解决这个问题吗?
发布于 2019-09-07 09:08:51
您可以尝试从资料来源构建这个
$ tar xjf ffmpeg-4.2.1.tar.bz2
$ cd ffmpeg-4.2.1并使用INSTALL.md文件中的说明:
./configure以创建配置。通过运行configure --help打印配置选项列表。configure可以从与FFmpeg源代码不同的目录中启动,以在树之外构建对象。为此,在启动configure时使用绝对路径,例如/ffmpegdir/ffmpeg/configure。make构建FFmpeg。GNU 3.81或更高版本是必需的。make install来安装您构建的所有二进制文件和库。https://askubuntu.com/questions/1171486
复制相似问题