Docker Debian apt Error Reading from Server

后端 未结 5 3092
迷失自我
迷失自我 2021-02-20 18:26

It would seem that apt-get is having issues connecting with the repository servers. I suppose it is likely compatibility issues, as mentioned here, however the proposed solution

5条回答
  •  生来不讨喜
    2021-02-20 18:47

    Not enough reputation to comment on previous answers, so I will (confusingly) add a new answer:

    • I don't think hardcoding a single mirror is really a viable solution, since as for example seen here, there's a reason debian implemented the whole httpredir thing -- mirrors go down or out of date.
    • I've dealt with this issue a lot of times, and the logs always indicate that docker's actually running the apt-get command, which means --no-cache is unlikely to be fixing it -- it's just that if you rebuild, httpredir is likely to pick a different mirror, even if you don't change anything in your docker file, and the build will work.

提交回复
热议问题