Docker Debian apt Error Reading from Server

后端 未结 5 2786
梦如初夏
梦如初夏 2021-02-20 18:25

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:46

    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.

提交回复
热议问题