autogen icon indicating copy to clipboard operation
autogen copied to clipboard

[Bug]: None of the devcontainers build on arm64

Open shippy opened this issue 3 months ago • 5 comments

Describe the bug

Neither VSCode-directed nor manual docker build succeeds due to Hash sum mismatch. This is true for all three devcontainer images.

Steps to reproduce

  1. Get a MacOS with Arm64 system (preferably Mac M3 Pro)
  2. Try to build the devcontainer image, e.g. with cd .devcontainer; docker build -f full/Dockerfile -t autogen_full_img .

Model Used

N/A

Expected Behavior

Image builds and a devcontainer is opened in VSCode.

Screenshots and logs

~/Documents/autogen/.devcontainer $ docker build -f full/Dockerfile -t autogen_full_img .
[+] Building 54.5s (6/13)                                                                                                                                            docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                                                                                                 0.0s
 => => transferring dockerfile: 1.04kB                                                                                                                                               0.0s
 => [internal] load metadata for docker.io/library/python:3.11-slim-bookworm                                                                                                         1.3s
 => [internal] load .dockerignore                                                                                                                                                    0.0s
 => => transferring context: 2B                                                                                                                                                      0.0s
 => [ 1/10] FROM docker.io/library/python:3.11-slim-bookworm@sha256:6d2502238109c929569ae99355e28890c438cb11bc88ef02cd189c173b3db07c                                                 0.0s
 => CACHED [ 2/10] RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash                                                                      0.0s
 => ERROR [ 3/10] RUN apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         software-properties-common sudo git-lfs     && apt-g  53.2s
------                                                                                                                                                                                    
 > [ 3/10] RUN apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         software-properties-common sudo git-lfs     && apt-get clean     && rm -rf /var/lib/apt/lists/*:                                                                                                                                                             
0.279 Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]                                                                                                                      
0.339 Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]                                                                                                             
0.380 Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]                                                                                                   
0.430 Get:4 http://deb.debian.org/debian bookworm/main arm64 Packages [8685 kB]
2.655 Get:5 http://deb.debian.org/debian bookworm-updates/main arm64 Packages [13.7 kB]
2.711 Get:6 http://deb.debian.org/debian-security bookworm-security/main arm64 Packages [153 kB]
3.286 Fetched 9106 kB in 3s (2905 kB/s)
3.286 Reading package lists...
3.562 Reading package lists...
3.831 Building dependency tree...
3.906 Reading state information...
3.989 The following additional packages will be installed:
3.989   dbus dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common
3.989   distro-info-data dmsetup gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git
3.989   git-man gpg gpgconf iso-codes libapparmor1 libappstream4 libargon2-1
3.989   libassuan0 libbrotli1 libcap2-bin libcryptsetup12 libcurl3-gnutls
3.989   libdbus-1-3 libdevmapper1.02.1 libduktape207 libdw1 libelf1 liberror-perl
3.989   libfdisk1 libgdbm-compat4 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin
3.989   libglib2.0-data libgstreamer1.0-0 libicu72 libip4tc2 libjson-c5 libkmod2
3.989   libldap-2.5-0 libnghttp2-14 libpackagekit-glib2-18 libpam-systemd
3.989   libperl5.36 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpsl5
3.989   libpython3-stdlib libpython3.11-minimal libpython3.11-stdlib librtmp1
3.989   libsasl2-2 libsasl2-modules-db libssh2-1 libstemmer0d libsystemd-shared
3.990   libunwind8 libxml2 libxmlb2 libyaml-0-2 lsb-release media-types packagekit
3.990   perl perl-modules-5.36 polkitd python-apt-common python3 python3-apt
3.990   python3-blinker python3-cffi-backend python3-cryptography python3-dbus
3.990   python3-distro python3-gi python3-httplib2 python3-jwt
3.990   python3-lazr.restfulclient python3-lazr.uri python3-minimal python3-oauthlib
3.990   python3-pkg-resources python3-pyparsing python3-six
3.990   python3-software-properties python3-wadllib python3.11 python3.11-minimal
3.990   sgml-base systemd systemd-sysv xml-core
3.990 Suggested packages:
3.990   default-dbus-session-bus | dbus-session-bus gettext-base git-daemon-run
3.990   | git-daemon-sysvinit git-doc git-email git-gui gitk gitweb git-cvs
3.990   git-mediawiki git-svn isoquery low-memory-monitor gstreamer1.0-tools
3.990   sensible-utils perl-doc libterm-readline-gnu-perl
3.990   | libterm-readline-perl-perl make libtap-harness-archive-perl polkitd-pkla
3.990   python3-doc python3-tk python3-venv python-apt-doc python-blinker-doc
3.990   python-cryptography-doc python3-cryptography-vectors python-dbus-doc
3.990   python3-crypto python3-setuptools python-pyparsing-doc python3.11-venv
3.990   python3.11-doc binutils binfmt-support sgml-base-doc systemd-container
3.990   systemd-homed systemd-userdbd systemd-boot systemd-resolved libfido2-1
3.990   libqrencode4 libtss2-esys-3.0.2-0 libtss2-mu0 libtss2-rc0 debhelper
3.990 Recommended packages:
3.990   patch less ssh-client gnupg libpam-cap shared-mime-info xdg-user-dirs
3.990   libldap-common dbus-user-session publicsuffix libsasl2-modules appstream
3.990   packagekit-tools systemd-timesyncd | time-daemon libnss-systemd
4.294 The following NEW packages will be installed:
4.294   dbus dbus-bin dbus-daemon dbus-session-bus-common dbus-system-bus-common
4.294   distro-info-data dmsetup gir1.2-glib-2.0 gir1.2-packagekitglib-1.0 git
4.294   git-lfs git-man gpg gpgconf iso-codes libapparmor1 libappstream4 libargon2-1
4.294   libassuan0 libbrotli1 libcap2-bin libcryptsetup12 libcurl3-gnutls
4.294   libdbus-1-3 libdevmapper1.02.1 libduktape207 libdw1 libelf1 liberror-perl
4.294   libfdisk1 libgdbm-compat4 libgirepository-1.0-1 libglib2.0-0 libglib2.0-bin
4.294   libglib2.0-data libgstreamer1.0-0 libicu72 libip4tc2 libjson-c5 libkmod2
4.294   libldap-2.5-0 libnghttp2-14 libpackagekit-glib2-18 libpam-systemd
4.294   libperl5.36 libpolkit-agent-1-0 libpolkit-gobject-1-0 libpsl5
4.294   libpython3-stdlib libpython3.11-minimal libpython3.11-stdlib librtmp1
4.294   libsasl2-2 libsasl2-modules-db libssh2-1 libstemmer0d libsystemd-shared
4.294   libunwind8 libxml2 libxmlb2 libyaml-0-2 lsb-release media-types packagekit
4.294   perl perl-modules-5.36 polkitd python-apt-common python3 python3-apt
4.294   python3-blinker python3-cffi-backend python3-cryptography python3-dbus
4.294   python3-distro python3-gi python3-httplib2 python3-jwt
4.294   python3-lazr.restfulclient python3-lazr.uri python3-minimal python3-oauthlib
4.294   python3-pkg-resources python3-pyparsing python3-six
4.295   python3-software-properties python3-wadllib python3.11 python3.11-minimal
4.295   sgml-base software-properties-common sudo systemd systemd-sysv xml-core
4.376 0 upgraded, 95 newly installed, 0 to remove and 2 not upgraded.
4.376 Need to get 55.6 MB of archives.
4.376 After this operation, 269 MB of additional disk space will be used.
4.376 Get:1 http://deb.debian.org/debian bookworm/main arm64 libargon2-1 arm64 0~20171227-0.3+deb12u1 [18.7 kB]
4.410 Get:2 http://deb.debian.org/debian bookworm/main arm64 dmsetup arm64 2:1.02.185-2 [75.2 kB]
4.454 Get:3 http://deb.debian.org/debian bookworm/main arm64 libdevmapper1.02.1 arm64 2:1.02.185-2 [115 kB]
4.492 Get:4 http://deb.debian.org/debian bookworm/main arm64 libjson-c5 arm64 0.16-2 [42.9 kB]
4.528 Get:5 http://deb.debian.org/debian bookworm/main arm64 libcryptsetup12 arm64 2:2.6.1-4~deb12u2 [205 kB]
4.639 Get:6 http://deb.debian.org/debian-security bookworm-security/main arm64 libfdisk1 arm64 2.38.1-5+deb12u1 [182 kB]
4.659 Get:7 http://deb.debian.org/debian bookworm/main arm64 libkmod2 arm64 30+20221128-1 [54.4 kB]
4.663 Get:8 http://deb.debian.org/debian bookworm/main arm64 libapparmor1 arm64 3.0.8-3 [40.3 kB]
4.664 Get:9 http://deb.debian.org/debian bookworm/main arm64 libip4tc2 arm64 1.8.9-2 [18.5 kB]
4.664 Get:10 http://deb.debian.org/debian bookworm/main arm64 libsystemd-shared arm64 252.22-1~deb12u1 [1508 kB]
4.938 Get:11 http://deb.debian.org/debian bookworm/main arm64 systemd arm64 252.22-1~deb12u1 [2829 kB]
5.582 Get:12 http://deb.debian.org/debian bookworm/main arm64 systemd-sysv arm64 252.22-1~deb12u1 [41.9 kB]
5.583 Get:13 http://deb.debian.org/debian bookworm/main arm64 libdbus-1-3 arm64 1.14.10-1~deb12u1 [193 kB]
5.607 Get:14 http://deb.debian.org/debian bookworm/main arm64 dbus-bin arm64 1.14.10-1~deb12u1 [104 kB]
5.643 Get:15 http://deb.debian.org/debian bookworm/main arm64 dbus-session-bus-common all 1.14.10-1~deb12u1 [78.2 kB]
5.674 Get:16 http://deb.debian.org/debian bookworm/main arm64 dbus-daemon arm64 1.14.10-1~deb12u1 [176 kB]
5.717 Get:17 http://deb.debian.org/debian bookworm/main arm64 dbus-system-bus-common all 1.14.10-1~deb12u1 [79.3 kB]
5.746 Get:18 http://deb.debian.org/debian bookworm/main arm64 dbus arm64 1.14.10-1~deb12u1 [96.2 kB]
5.777 Get:19 http://deb.debian.org/debian bookworm/main arm64 perl-modules-5.36 all 5.36.0-7+deb12u1 [2815 kB]
6.575 Get:20 http://deb.debian.org/debian bookworm/main arm64 libgdbm-compat4 arm64 1.23-3 [48.0 kB]
6.577 Get:21 http://deb.debian.org/debian bookworm/main arm64 libperl5.36 arm64 5.36.0-7+deb12u1 [4014 kB]
7.565 Get:22 http://deb.debian.org/debian bookworm/main arm64 perl arm64 5.36.0-7+deb12u1 [239 kB]
7.624 Get:23 http://deb.debian.org/debian bookworm/main arm64 libpython3.11-minimal arm64 3.11.2-6 [806 kB]
7.800 Get:24 http://deb.debian.org/debian bookworm/main arm64 python3.11-minimal arm64 3.11.2-6 [1858 kB]
8.217 Get:25 http://deb.debian.org/debian bookworm/main arm64 python3-minimal arm64 3.11.2-1+b1 [26.3 kB]
8.237 Get:26 http://deb.debian.org/debian bookworm/main arm64 media-types all 10.0.0 [26.1 kB]
8.238 Get:27 http://deb.debian.org/debian bookworm/main arm64 libpython3.11-stdlib arm64 3.11.2-6 [1747 kB]
8.707 Get:28 http://deb.debian.org/debian bookworm/main arm64 python3.11 arm64 3.11.2-6 [572 kB]
8.885 Get:29 http://deb.debian.org/debian bookworm/main arm64 libpython3-stdlib arm64 3.11.2-1+b1 [9296 B]
8.907 Get:30 http://deb.debian.org/debian bookworm/main arm64 python3 arm64 3.11.2-1+b1 [26.3 kB]
8.908 Get:31 http://deb.debian.org/debian bookworm/main arm64 sgml-base all 1.31 [15.4 kB]
8.909 Get:32 http://deb.debian.org/debian bookworm/main arm64 sudo arm64 1.9.13p3-1+deb12u1 [1826 kB]
9.359 Get:33 http://deb.debian.org/debian bookworm/main arm64 libpam-systemd arm64 252.22-1~deb12u1 [208 kB]
9.407 Get:34 http://deb.debian.org/debian bookworm/main arm64 distro-info-data all 0.58+deb12u1 [6072 B]
9.408 Get:35 http://deb.debian.org/debian bookworm/main arm64 libglib2.0-0 arm64 2.74.6-2 [1310 kB]
9.730 Get:36 http://deb.debian.org/debian bookworm/main arm64 libgirepository-1.0-1 arm64 1.74.0-3 [93.2 kB]
9.750 Get:37 http://deb.debian.org/debian bookworm/main arm64 gir1.2-glib-2.0 arm64 1.74.0-3 [160 kB]
9.787 Get:38 http://deb.debian.org/debian bookworm/main arm64 libpackagekit-glib2-18 arm64 1.2.6-5 [102 kB]
9.812 Get:39 http://deb.debian.org/debian bookworm/main arm64 gir1.2-packagekitglib-1.0 arm64 1.2.6-5 [25.9 kB]
9.839 Get:40 http://deb.debian.org/debian bookworm/main arm64 libbrotli1 arm64 1.0.9-2+b6 [269 kB]
9.876 Get:41 http://deb.debian.org/debian bookworm/main arm64 libsasl2-modules-db arm64 2.1.28+dfsg-10 [20.8 kB]
9.897 Get:42 http://deb.debian.org/debian bookworm/main arm64 libsasl2-2 arm64 2.1.28+dfsg-10 [58.0 kB]
9.899 Get:43 http://deb.debian.org/debian bookworm/main arm64 libldap-2.5-0 arm64 2.5.13+dfsg-5 [171 kB]
9.929 Get:44 http://deb.debian.org/debian bookworm/main arm64 libnghttp2-14 arm64 1.52.0-1+deb12u1 [68.3 kB]
9.956 Get:45 http://deb.debian.org/debian bookworm/main arm64 libpsl5 arm64 0.21.2-1 [58.6 kB]
9.973 Get:46 http://deb.debian.org/debian bookworm/main arm64 librtmp1 arm64 2.4+20151223.gitfa8646d.1-2+b2 [59.4 kB]
9.976 Get:47 http://deb.debian.org/debian bookworm/main arm64 libssh2-1 arm64 1.10.0-3+b1 [172 kB]
10.01 Err:47 http://deb.debian.org/debian bookworm/main arm64 libssh2-1 arm64 1.10.0-3+b1
10.01   Hash Sum mismatch
10.01   Hashes of expected file:
10.01    - SHA256:390538001122ff03bdabe3689f5b13dafbf2012dd55e3e1e26bd7a6109717250
10.01    - MD5Sum:c9e21f0e96527d7e637c3c253aba3120 [weak]
10.01    - Filesize:171960 [weak]
10.01   Hashes of received file:
10.01    - SHA256:94d8ea8f50210e2c1ed5a42b2075af20d32681e29aa6db591c47120ee9c3a6c2
10.01    - MD5Sum:2e098cc631d2a4bcf9ebe8eddc9f6ce3 [weak]
10.01    - Filesize:171960 [weak]
10.01   Last modification reported: Sun, 15 May 2022 09:27:15 +0000
40.17 Get:48 http://deb.debian.org/debian bookworm/main arm64 libcurl3-gnutls arm64 7.88.1-10+deb12u5 [360 kB]
40.31 Get:49 http://deb.debian.org/debian bookworm/main arm64 liberror-perl all 0.17029-2 [29.0 kB]
40.35 Get:50 http://deb.debian.org/debian bookworm/main arm64 git-man all 1:2.39.2-1.1 [2049 kB]
40.85 Get:51 http://deb.debian.org/debian bookworm/main arm64 git arm64 1:2.39.2-1.1 [7023 kB]
42.74 Get:52 http://deb.debian.org/debian bookworm/main arm64 git-lfs arm64 3.3.0-1+b5 [3021 kB]
43.72 Get:53 http://deb.debian.org/debian bookworm/main arm64 libassuan0 arm64 2.5.5-5 [45.9 kB]
43.86 Get:54 http://deb.debian.org/debian bookworm/main arm64 gpgconf arm64 2.2.40-1.1 [557 kB]
44.28 Get:55 http://deb.debian.org/debian bookworm/main arm64 gpg arm64 2.2.40-1.1 [903 kB]
44.82 Get:56 http://deb.debian.org/debian bookworm/main arm64 iso-codes all 4.15.0-1 [2906 kB]
46.05 Get:57 http://deb.debian.org/debian bookworm/main arm64 libstemmer0d arm64 2.2.0-2 [112 kB]
46.12 Get:58 http://deb.debian.org/debian bookworm/main arm64 libicu72 arm64 72.1-3 [9204 kB]
49.62 Get:59 http://deb.debian.org/debian bookworm/main arm64 libxml2 arm64 2.9.14+dfsg-1.3~deb12u1 [619 kB]
49.94 Get:60 http://deb.debian.org/debian bookworm/main arm64 libxmlb2 arm64 0.3.10-2 [55.5 kB]
49.98 Get:61 http://deb.debian.org/debian bookworm/main arm64 libyaml-0-2 arm64 0.2.5-1 [50.4 kB]
50.03 Get:62 http://deb.debian.org/debian bookworm/main arm64 libappstream4 arm64 0.16.1-2 [182 kB]
50.13 Get:63 http://deb.debian.org/debian bookworm/main arm64 libcap2-bin arm64 1:2.66-4 [33.9 kB]
50.18 Get:64 http://deb.debian.org/debian bookworm/main arm64 libduktape207 arm64 2.7.0-2 [124 kB]
50.25 Get:65 http://deb.debian.org/debian bookworm/main arm64 libelf1 arm64 0.188-2.1 [173 kB]
50.35 Get:66 http://deb.debian.org/debian bookworm/main arm64 libdw1 arm64 0.188-2.1 [219 kB]
50.46 Get:67 http://deb.debian.org/debian bookworm/main arm64 libglib2.0-data all 2.74.6-2 [1207 kB]
51.01 Get:68 http://deb.debian.org/debian bookworm/main arm64 libglib2.0-bin arm64 2.74.6-2 [106 kB]
51.08 Get:69 http://deb.debian.org/debian bookworm/main arm64 libunwind8 arm64 1.6.2-3 [47.4 kB]
51.13 Get:70 http://deb.debian.org/debian bookworm/main arm64 libgstreamer1.0-0 arm64 1.22.0-2 [1067 kB]
51.55 Get:71 http://deb.debian.org/debian bookworm/main arm64 libpolkit-gobject-1-0 arm64 122-3 [42.7 kB]
51.61 Get:72 http://deb.debian.org/debian bookworm/main arm64 libpolkit-agent-1-0 arm64 122-3 [23.6 kB]
51.65 Get:73 http://deb.debian.org/debian bookworm/main arm64 lsb-release all 12.0-1 [6416 B]
51.69 Get:74 http://deb.debian.org/debian bookworm/main arm64 xml-core all 0.18+nmu1 [23.8 kB]
51.72 Get:75 http://deb.debian.org/debian bookworm/main arm64 polkitd arm64 122-3 [109 kB]
51.79 Get:76 http://deb.debian.org/debian bookworm/main arm64 packagekit arm64 1.2.6-5 [584 kB]
52.00 Get:77 http://deb.debian.org/debian bookworm/main arm64 python-apt-common all 2.6.0 [64.3 kB]
52.06 Get:78 http://deb.debian.org/debian bookworm/main arm64 python3-apt arm64 2.6.0 [152 kB]
52.13 Get:79 http://deb.debian.org/debian bookworm/main arm64 python3-blinker all 1.5-1 [14.7 kB]
52.17 Get:80 http://deb.debian.org/debian bookworm/main arm64 python3-cffi-backend arm64 1.15.1-5+b1 [84.4 kB]
52.23 Get:81 http://deb.debian.org/debian bookworm/main arm64 python3-cryptography arm64 38.0.4-3 [589 kB]
52.45 Get:82 http://deb.debian.org/debian bookworm/main arm64 python3-dbus arm64 1.3.2-4+b1 [93.5 kB]
52.52 Get:83 http://deb.debian.org/debian bookworm/main arm64 python3-distro all 1.8.0-1 [20.5 kB]
52.55 Get:84 http://deb.debian.org/debian bookworm/main arm64 python3-gi arm64 3.42.2-3+b1 [212 kB]
52.64 Get:85 http://deb.debian.org/debian bookworm/main arm64 python3-pyparsing all 3.0.9-1 [138 kB]
52.73 Get:86 http://deb.debian.org/debian bookworm/main arm64 python3-httplib2 all 0.20.4-3 [36.0 kB]
52.76 Get:87 http://deb.debian.org/debian bookworm/main arm64 python3-jwt all 2.6.0-1 [26.6 kB]
52.79 Get:88 http://deb.debian.org/debian bookworm/main arm64 python3-pkg-resources all 66.1.1-1 [296 kB]
52.91 Get:89 http://deb.debian.org/debian bookworm/main arm64 python3-lazr.uri all 1.0.6-3 [13.7 kB]
52.95 Get:90 http://deb.debian.org/debian bookworm/main arm64 python3-wadllib all 1.3.6-4 [37.2 kB]
52.99 Get:91 http://deb.debian.org/debian bookworm/main arm64 python3-oauthlib all 3.2.2-1 [95.4 kB]
53.05 Get:92 http://deb.debian.org/debian bookworm/main arm64 python3-six all 1.16.0-4 [17.5 kB]
53.09 Get:93 http://deb.debian.org/debian bookworm/main arm64 python3-lazr.restfulclient all 0.14.5-1 [50.4 kB]
53.13 Get:94 http://deb.debian.org/debian bookworm/main arm64 python3-software-properties all 0.99.30-4 [32.7 kB]
53.17 Get:95 http://deb.debian.org/debian bookworm/main arm64 software-properties-common all 0.99.30-4 [62.0 kB]
53.20 E: Failed to fetch http://deb.debian.org/debian/pool/main/libs/libssh2/libssh2-1_1.10.0-3%2bb1_arm64.deb  Hash Sum mismatch
53.20    Hashes of expected file:
53.20     - SHA256:390538001122ff03bdabe3689f5b13dafbf2012dd55e3e1e26bd7a6109717250
53.20     - MD5Sum:c9e21f0e96527d7e637c3c253aba3120 [weak]
53.20     - Filesize:171960 [weak]
53.20    Hashes of received file:
53.20     - SHA256:94d8ea8f50210e2c1ed5a42b2075af20d32681e29aa6db591c47120ee9c3a6c2
53.20     - MD5Sum:2e098cc631d2a4bcf9ebe8eddc9f6ce3 [weak]
53.20     - Filesize:171960 [weak]
53.20    Last modification reported: Sun, 15 May 2022 09:27:15 +0000
53.20 E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
53.20 Fetched 55.6 MB in 49s (1137 kB/s)
------
Dockerfile:7
--------------------
   6 |     # Update and install dependencies
   7 | >>> RUN apt-get update \
   8 | >>>     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
   9 | >>>         software-properties-common sudo git-lfs \
  10 | >>>     && apt-get clean \
  11 | >>>     && rm -rf /var/lib/apt/lists/*
  12 |     
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update     && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends         software-properties-common sudo git-lfs     && apt-get clean     && rm -rf /var/lib/apt/lists/*" did not complete successfully: exit code: 100

Additional Information

  • AutoGen HEAD is at 372ac1e794eda840efb26b26fa0c9ecaed5562a1 on main
  • Operating System: Sonoma 14.4.1
  • Docker Desktop version: 4.29.0

shippy avatar May 06 '24 15:05 shippy

(Note: I did try to add --fix-missing, as the message suggests, and ran into a similar issue)

shippy avatar May 06 '24 15:05 shippy

Not unique to arm64, it turns out - I changed the first line to FROM --platform=linux/amd64 python:3.11-slim-bookworm and all it got me was a slightly different hash mismatch, this one from 2023:

16.88 E: Failed to fetch http://deb.debian.org/debian/pool/main/o/openldap/libldap-2.5-0_2.5.13%2bdfsg-5_amd64.deb  Hash Sum mismatch
16.88 Fetched 58.0 MB in 12s (4764 kB/s)
16.88    Hashes of expected file:
16.88     - SHA256:4b6c30f6554149c594628d945edc6003f0eea8d0cc1341638c0e71375db147ed
16.88     - MD5Sum:aa52ea68ca3ad4e9a9acc863fa70343a [weak]
16.88     - Filesize:183248 [weak]
16.88    Hashes of received file:
16.88     - SHA256:40ad671ebf3837577c36b4aee51a992cbce0cf3a63f4f2250c6fd7936016e895
16.88     - MD5Sum:cc87b619ef7dbb89a4cec8c7683edd54 [weak]
16.88     - Filesize:183248 [weak]
16.88    Last modification reported: Wed, 08 Feb 2023 04:12:57 +0000

shippy avatar May 06 '24 16:05 shippy

Adding --pull --no-cache doesn't do anything, either - I have tried deleting and re-downloading the base layer, and it doesn't appear to be the problem.

shippy avatar May 06 '24 16:05 shippy

For the record, a combination of approaches suggested by SO here and here eventually helped me work around the issue:

RUN echo "Acquire::http::Pipeline-Depth 0;" > /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::http::No-Cache true;" >> /etc/apt/apt.conf.d/99custom && \
    echo "Acquire::BrokenProxy    true;" >> /etc/apt/apt.conf.d/99custom

RUN apt-get clean && \
    rm -r /var/lib/apt/lists/* && \
    apt-get update -o Acquire::CompressionTypes::Order::=gz && \
    apt-get -y update && \
    # apt-get -y upgrade && \
    apt-get install -y sudo git npm vim nano curl wget git-lfs

shippy avatar May 07 '24 05:05 shippy

Thanks for the update. What is the dockerfile that works for you in the end?

ekzhu avatar May 07 '24 23:05 ekzhu

The excerpt above is from the dev container (.devcontainer/dev/Dockerfile).

shippy avatar May 08 '24 06:05 shippy

Do you want to add an FAQ entry for this issue? https://microsoft.github.io/autogen/docs/FAQ. You can find it under website/docs/FAQ.md

ekzhu avatar May 09 '24 16:05 ekzhu