Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

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

Open
idkw opened this issue Oct 27, 2020 · 0 comments
Open

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

idkw opened this issue Oct 27, 2020 · 0 comments

Comments

@idkw
Copy link

idkw commented Oct 27, 2020

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
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant