SwapnilSoni1999 / spotify-dl

Spotify Downloader and alternative of Spotdl(python) tool made in NodeJS based on youtube-dl

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[DOCKER] [CHROME] Error build image due to google chrome invalid pub key

nicolasbonnet opened this issue · comments

Describe the bug
Error during building docker image:

Step 2/6 : RUN apt update &&     apt install -y      ffmpeg &&     rm -rf /var/lib/apt/lists/*
 ---> Running in 07ba7610f737

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Get:1 http://dl.google.com/linux/chrome/deb stable InRelease [1811 B]
Get:2 http://deb.debian.org/debian buster InRelease [122 kB]
Get:3 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
Get:4 http://deb.debian.org/debian buster-updates InRelease [51.9 kB]
Err:1 http://dl.google.com/linux/chrome/deb stable InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B
Get:5 http://security.debian.org/debian-security buster/updates/main amd64 Packages [334 kB]
Get:6 http://deb.debian.org/debian buster/main amd64 Packages [7911 kB]
Get:7 http://deb.debian.org/debian buster-updates/main amd64 Packages [8788 B]
Reading package lists...
W: GPG error: http://dl.google.com/linux/chrome/deb stable InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 4EB27DB2A3B88B8B
E: The repository 'http://dl.google.com/linux/chrome/deb stable InRelease' is not signed.

To Reproduce
Just build the image with command:
docker build -t spotify-dl .

Desktop (please complete the following information):

  • OS: linux ubuntu 20.04

Additional context

I suggest to add line in Dockerfile which will install pub key for chrome repo:
RUN wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | apt-key add -

I do this in my fork and it's working.
There is my commit:
1827ef0

commented

a fellow make target enthusiast :)

thanks! ill make a pr for it now