【问题标题】:problem building a docker container based on debian:buster基于 debian:buster 构建 docker 容器的问题
【发布时间】:2021-03-11 14:49:30
【问题描述】:

我正在尝试基于 debian:buster 构建一个 docker 容器。 在此过程中,我收到消息:

Need to get 1211 MB of archives.
After this operation, 3257 MB of additional disk space will be used.
Err:1 http://security.debian.org/debian-security buster/updates/main amd64 libldap-common all 2.4.47+dfsg-3+deb10u5
  404  Not Found [IP: 151.101.130.132 80]
Get:2 http://security.debian.org/debian-security buster/updates/main amd64 libldap-2.4-2 amd64 2.4.47+dfsg-3+deb10u5 [225 kB]
...
 Failed to fetch http://security.debian.org/debian-security/pool/updates/main/o/openldap/libldap-common_2.4.47+dfsg-3+deb10u5_all.deb  404  Not Found [IP: 151.101.130.132 80]

有一个包

http://security.debian.org/debian-security/pool/updates/main/o/openldap/openldap_2.4.47+dfsg-3+deb10u6.dsc

在源包列表中可用。如何说服 docker/apt-get/whatever 使用它?

我的 dockerfile 与 debian:stretch 一起工作正常。

【问题讨论】:

    标签: linux docker debian


    【解决方案1】:

    显然,您至少没有通过 HTTP(端口 80)到 security.debian.org 的 Internet 连接,因为我可以看到您的 DNS 正在解析到正确的 IP(151.101.194.132 )。 我建议在命令行中使用 curl 进行测试,如下所示:

    curl -vvv http://security.debian.org/debian-security/pool/updates/main/o/openldap/openldap_2.4.47+dfsg-3+deb10u6.dsc
    

    MT

    【讨论】:

    • 我尝试了建议的 curl 命令,效果很好。没有任何抱怨。此外:可以检索所有其他 600 个包。只有来自 security.debian.org 的包不起作用
    猜你喜欢
    • 1970-01-01
    • 2020-12-16
    • 2020-08-01
    • 2023-03-30
    • 1970-01-01
    • 2018-02-01
    • 1970-01-01
    • 2020-07-26
    • 2022-06-20
    相关资源
    最近更新 更多