Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/docker/10.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ubuntu 添加apt存储库查找';杰西';而不是';可靠的';源代码的版本_Ubuntu_Docker - Fatal编程技术网

Ubuntu 添加apt存储库查找';杰西';而不是';可靠的';源代码的版本

Ubuntu 添加apt存储库查找';杰西';而不是';可靠的';源代码的版本,ubuntu,docker,Ubuntu,Docker,我正试图通过AddAPTRepository在docker容器中安装ffmpeg 3,我使用的源代码是。我在docker容器中使用了ubuntu:trusty,然而,当我尝试获取更新时,获取的源代码不是trusty,而是jessie,它不存在: W:未能获取404,未找到 以下是我的构建日志: ---> Running in 7db074d1f86f Hit http://security.debian.org jessie/updates InRelease Ign http://pp

我正试图通过AddAPTRepository在docker容器中安装ffmpeg 3,我使用的源代码是。我在docker容器中使用了ubuntu:trusty,然而,当我尝试
获取更新时,获取的源代码不是trusty,而是jessie,它不存在:

W:未能获取404,未找到

以下是我的构建日志:

 ---> Running in 7db074d1f86f
Hit http://security.debian.org jessie/updates InRelease
Ign http://ppa.launchpad.net jessie InRelease
Ign http://deb.debian.org jessie InRelease
Hit http://deb.debian.org jessie-updates InRelease
Hit http://deb.debian.org jessie Release.gpg
Ign http://ppa.launchpad.net jessie Release.gpg
Hit http://deb.debian.org jessie Release
Ign http://ppa.launchpad.net jessie Release
Err http://ppa.launchpad.net jessie/main amd64 Packages

Get:1 http://security.debian.org jessie/updates/main amd64 Packages [599 kB]
Err http://ppa.launchpad.net jessie/main amd64 Packages

Err http://ppa.launchpad.net jessie/main amd64 Packages

Err http://ppa.launchpad.net jessie/main amd64 Packages

Get:2 http://deb.debian.org jessie-updates/main amd64 Packages [23.1 kB]
Err http://ppa.launchpad.net jessie/main amd64 Packages
  404  Not Found
Get:3 http://deb.debian.org jessie/main amd64 Packages [9064 kB]
Fetched 9686 kB in 14s (676 kB/s)
W: Failed to fetch http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/jessie/main/binary-amd64/Packages  404  Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
这是我的Dockerfile:

FROM ubuntu:trusty
FROM node
RUN apt-get -y update
RUN apt-get -y install software-properties-common python-software-properties
RUN apt-get -y update
RUN add-apt-repository ppa:mc3man/trusty-media
RUN apt-get -y update
RUN apt-get -y install ffmpeg
RUN apt-get -y update
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app
RUN npm install
COPY . /usr/src/app
RUN npm run build
ENV NODE_ENV production
EXPOSE 8000
CMD ["npm", "run", "start:prod"]
您的命令不是在“ubuntu:trusty”映像上运行的,而是在“node:latest”映像上运行的。您创建了一个多阶段构建,在第一阶段中没有任何命令,只需下载一个大型映像

您使用的“node:latest”映像基于“buildpack deps:jessie”。如果你把这一点追溯得足够清楚,你会在一本书中找到“debian:jessie”


您需要更改要添加的基本映像或存储库,以便它们匹配。

这不是编程问题;投票结束作为堆栈溢出的非主题。也许可以改为询问,但他们(也)会希望查看您的完整
源代码。list
源代码。list.d
以确定Debian条目的来源。我建议您查看来自docker的内容,特别是在Dockerfile
RUN
部分。你有一些
apt得到的
行可能会在没有警告的情况下中断。我只是在学习Docker,所以我错过了你指出的事实。非常感谢您,我将按照您的建议浏览最佳实践!
FROM ubuntu:trusty
FROM node
RUN ...