Tuesday 3 January 2023

docker container unable to do apt-get , deb.debian.org connection time out

 This might be due to the fact the particular VM/server does not allow http connection,

https://stackoverflow.com/questions/66342539/unable-to-build-docker-image-due-to-connection-timeout-error

1) find out current debian release name in the system (“Buster.” “Stretch”)

https://medium.com/swlh/alpine-slim-stretch-buster-jessie-bullseye-bookworm-what-are-the-differences-in-docker-62171ed4531d

2) add https debian release end point to apt source list

its better to create a new dockerFile to do so 

RUN printf "deb https://deb.debian.org/debian bullseye main \n deb https://deb.debian.org/debian bullseye-updates main" > /etc/apt/sources.list


debian desitrbution source list example :

https://linuxize.com/post/how-to-upgrade-debian-10-to-debian-11/






No comments:

Post a Comment