confluentinc / cp-docker-images

[DEPRECATED] Docker images for Confluent Platform.
Apache License 2.0
1.14k stars 705 forks source link

duplicate apt sources.list prevent apt-get update #880

Open idkw opened 3 years ago

idkw commented 3 years ago

In the docker cp-kafka-connect image 5.5.2 the /etc/apt/sources.list contains duplicate entries which make apt-get update fail, complaining about the duplicate lines :

deb [arch=amd64] https://s3-us-west-2.amazonaws.com/staging-confluent-packages-5.5.2/deb/5.5 stable main
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/staging-confluent-packages-5.5.2/deb/5.5 stable main
deb [arch=amd64] https://s3-us-west-2.amazonaws.com/staging-confluent-packages-5.5.2/deb/5.5 stable main

Workaround in my Dockerfile to remove the duplicate entries :

cd /etc/apt/
// See : https://www.gnu.org/software/coreutils/manual/html_node/uniq-invocation.html#uniq-invocation
uniq sources.list sources.list.fixed
mv sources.list.fixed sources.list