gpt4 book ai didi

Docker 无法获取 deb.debian.org 大小不匹配

转载 作者:行者123 更新时间:2023-12-02 19:27:10 24 4
gpt4 key购买 nike

我正在使用适用于 Windows 的 Docker 桌面。我正在尝试运行命令 docker build -t dtr.server.com/test/jenkins-build-agent-ui:abc123 .但我有一个错误

E: Failed to fetch http://security.debian.org/debian-security/pool/updates/main/a/apt/apt-utils_1.0.9.8.5_amd64.deb  Siz
e mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/a/apt/apt-transport-https_1.0.9.8.4_amd64.deb Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/p/pinentry/pinentry-gtk2_0.8.3-2_amd64.deb Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnupg2/gnupg-agent_2.0.26-6+deb8u2_amd64.deb Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/g/gnupg2/gnupg2_2.0.26-6+deb8u2_amd64.deb Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/p/python-apt/python3-apt_0.9.3.12_amd64.deb Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/d/dbus-python/python3-dbus_1.2.0-2+b3_amd64.deb Size mismatch

E: Failed to fetch http://deb.debian.org/debian/pool/main/p/pygobject/python3-gi_3.14.0-1_amd64.deb Size mismatch

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
The command '/bin/bash -o pipefail -c apt-get update && apt-get -y install --no-install-recommends apt-transport
-https=1.0.9.8.4 gnupg2=2.0.26-6+deb8u2 software-properties-common=0.92.25debian1 && rm -rf /var/lib/apt/lis
ts/*' returned a non-zero code: 100

我的 Docker 版本是 18.09.2。

最佳答案

这可能与 proxy issue 相关。 (如果您在主机上的代理后面并且没有 configured Docker to use said proxy )

said here :

this tends to happen sometimes when the archives in the middle of a sync or something, and the hash sums are not completely updated yet on the remote.
As the error says, a mirror sync is possibly in progress



seen here ,尝试删除 /var/cache/apt/archives/partial文件夹,然后重试。但首先检查代理是否允许下载任何内容。

关于Docker 无法获取 deb.debian.org 大小不匹配,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55175585/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com