add-apt-repository查找'jessy'而不是'trusty'版本的源代码

问题描述 投票:-1回答:1

我试图通过add-apt-repository在我的docker容器中安装ffmpeg 3,我使用的源是this。我在我的docker容器中使用了ubuntu:trusty,然而,当我尝试使用apt-get update时,获取的源代码不可信但是jessie不存在:

W:无法获取http://ppa.launchpad.net/mc3man/trusty-media/ubuntu/dists/jessie/main/binary-amd64/Packages 404 Not Found。

这是我的构建日志:

 ---> 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 docker
1个回答
2
投票
FROM ubuntu:trusty
FROM node
RUN ...

您的命令未在“ubuntu:trusty”映像上运行,它们正在“node:latest”映像上运行。您在第一阶段创建了一个没有命令的多阶段构建,只是一个大型图像下载。

您正在使用的“node:latest”图像基于“buildpack-deps:jessie”as seen in thier Dockerfile。如果你足够了,你会在parent Dockerfile找到“debian:jessie”。

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

© www.soinside.com 2019 - 2024. All rights reserved.