0
In ruby:2.4.1
docker image (it is build based on Debian 8 Jessie) I was installing google chrome beta the following way:
# Dockerfile
FROM ruby:2.4.1
RUN \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" > /etc/apt/sources.list.d/google-chrome.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 78BD65473CB3BD13 && \
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 1655A0AB68576280 && \
apt-get update && \
apt-get install -y google-chrome-beta
apt-get clean && apt-get -y autoremove
...
and it worked well. After I changed base image to ruby:2.6.5
(it is built based on Debian 10 Buster) the next apt-get update
commands started to output warning:
W: Target Packages (main/binary-amd64/Packages) is configured multiple
times in /etc/apt/sources.list.d/google-chrome-beta.list:3 and
/etc/apt/sources.list.d/google-chrome.list:1
When I add cat /etc/apt/sources.list.d/google-chrome-beta.list
at the end of the install chrome beta command it outputs:
### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main
What command created /etc/apt/sources.list.d/google-chrome-beta.list
? (note: I write chrome beta PPA to /etc/apt/sources.list.d/google-chrome.list
)
How to fix the warning?