-
Notifications
You must be signed in to change notification settings - Fork 825
Closed
home-assistant/core
#94540Description
Create a very simple Dockerfile like this:
ARG VARIANT=3.8
FROM mcr.microsoft.com/devcontainers/python:0-${VARIANT}
RUN apt-get updateIf you try to build this with docker build . you will get the error:
user@localhost $ docker build .
[+] Building 1.7s (5/5) FINISHED
=> [internal] load build definition from Dockerfile 0.0s
=> => transferring dockerfile: 135B 0.0s
=> [internal] load .dockerignore 0.0s
=> => transferring context: 2B 0.0s
=> [internal] load metadata for mcr.microsoft.com/devcontainers/python:0-3.8 0.3s
=> CACHED [1/2] FROM mcr.microsoft.com/devcontainers/python:0-3.8@sha256:619df220ed3f7c91e96785e8794c1b7ac7af8c27e50be16c8f08 0.0s
=> ERROR [2/2] RUN apt-get update 1.4s
------
> [2/2] RUN apt-get update:
#5 0.190 Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
#5 0.198 Get:2 https://dl.yarnpkg.com/debian stable InRelease [17.1 kB]
#5 0.227 Get:3 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
#5 0.242 Get:4 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
#5 0.246 Err:2 https://dl.yarnpkg.com/debian stable InRelease
#5 0.246 The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
#5 0.330 Get:5 http://deb.debian.org/debian bullseye/main arm64 Packages [8072 kB]
#5 0.536 Get:6 http://deb.debian.org/debian-security bullseye-security/main arm64 Packages [211 kB]
#5 0.558 Get:7 http://deb.debian.org/debian bullseye-updates/main arm64 Packages [12.0 kB]
#5 1.142 Reading package lists...
#5 1.375 W: GPG error: https://dl.yarnpkg.com/debian stable InRelease: The following signatures were invalid: EXPKEYSIG 23E7166788B63E1E Yarn Packaging <yarn@dan.cx>
#5 1.375 E: The repository 'https://dl.yarnpkg.com/debian stable InRelease' is not signed.
------
executor failed running [/bin/sh -c apt-get update]: exit code: 100
An issue for this error can be seen here:
yarnpkg/yarn#7866
Attempts to use any of the solutions such as:
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - sudo apt-key adv --refresh-keys --keyserver keyserver.ubuntu.comor
wget -qO - https://raw.githubusercontent.com/yarnpkg/releases/gh-pages/debian/pubkey.gpg | sudo apt-key add -prior to the apt-get update do not fix the problem.
You can see here:
https://github.com/yarnpkg/releases/blob/gh-pages/debian/pubkey.gpg
The pubkey was updated 13 hours ago as of the time of this posting. Even that brand new key does not seem to work.
I consider this issue to be quite urgent as it completely prevents me from building my VSCode Python dev environment. I can't get any work done unless I come up with a new environment using a different docker base image.
ckdake, jvdavim, germancasares, adalbertobrant, radzki and 6 morejvdavim, joshuadavidthomas, radzki, umberto-sonnino and AndySGNL
Metadata
Metadata
Assignees
Labels
No labels