gpt4 book ai didi

ubuntu - 如何使用命令行为 ubuntu 安装 ffmpeg?

转载 作者:太空宇宙 更新时间:2023-11-03 16:50:47 28 4
gpt4 key购买 nike

明亮的背景...这是我的 Dockerfile 中的一段代码。我想将我的应用部署到谷歌应用引擎。不知何故我无法安装ffmpeg。

ENV VIRTUAL_ENV /env
ENV PATH /env/bin:$PATH
RUN apt-get install ffmpeg

这是错误日志:

E: Unable to locate package ffmpeg
The command '/bin/sh -c apt-get install ffmpeg' returned a non-zero code: 100
ERROR
ERROR: build step "gcr.io/cloud-builders/docker@sha256:ef2e6744a171cfb0e8a0ef27f9b9a34970341bfc0c3d401afdeedca72292cf73" failed: exit status 100

我找到了这个,但它对我不起作用。它提示 add-apt-repository is not valid command。 https://askubuntu.com/questions/691109/how-do-i-install-ffmpeg-and-codecs

谁能帮我解决这个问题?谢谢!!!

最佳答案

要使用 add-apt-repository 命令,您需要:

apt-get install software-properties-common

这对 Ubuntu 14.0416.04 有效。

sudo add-apt-repository ppa:mc3man/trusty-media
sudo apt-get update
sudo apt-get install ffmpeg

或者您可以使用来自 here 的最新官方静态构建.

关于ubuntu - 如何使用命令行为 ubuntu 安装 ffmpeg?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42589892/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com