Open esetnik opened 5 years ago
Hi Ethan,
I tried your dockerfile and it built the image without error. You may encounter a connection issue. Please check your VM network setting and proxy if you are using it.
Build process completed successfully Installing '/usr/local/lib/php/extensions/no-debug-non-zts-20170718/pdo_sqlsrv.so' install ok: channel://pecl.php.net/pdo_sqlsrv-5.3.0 configuration option "php_ini" is not set to php.ini location You should add "extension=sqlsrv.so" to php.ini configuration option "php_ini" is not set to php.ini location You should add "extension=sqlsrv.so" to php.ini configuration option "php_ini" is not set to php.ini location You should add "extension=pdo_sqlsrv.so" to php.ini Removing intermediate container 926b2a96d0b6 ---> c9ec5dac855c Successfully built c9ec5dac855c Successfully tagged test1:latest SECURITY WARNING: You are building a Docker image from Windows against a non-Windows Docker host. All files and directories added to build context will have '-rwxr-xr-x' permissions. It is recommended to double check and reset permissions for sensitive files and directories.
The issue resolved itself after ~15 minutes. But I ran into the issue locally and on CircleCI so it seems like it's a transient problem on the Microsoft side. I've run into a few transient issues with this particular build pipeline, all with Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/InRelease
and various errors which resolve themselves if I wait a few hours and try again. I'm not versed well enough on apt to be able to debug further but it seems like there's some issue with these indexes.
Here's another example of a similar issue I faced last week. It also resolved itself after an hour or so.
Step 5/10 : RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list | tee /etc/apt/sources.list.d/msprod.list && apt-get update && ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools build-essential && ln -sfn /opt/mssql-tools/bin/sqlcmd /usr/bin/sqlcmd && ln -sfn /opt/mssql-tools/bin/bcp /usr/bin/bcp && rm -rf /var/lib/apt/lists/*
---> Running in 240ad2384794
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: apt-key output should not be parsed (stdout is not a terminal)
100 983 100 983 0 0 7390 0 --:--:-- --:--:-- --:--:-- 7335
OK
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 77 100 77 0 0 974 0 --:--:-- --:--:-- --:--:-- 974
deb [arch=amd64] https://packages.microsoft.com/ubuntu/18.04/prod bionic mainGet:1 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3,226 B]
Get:2 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:3 http://ppa.launchpad.net/gophers/archive/ubuntu bionic InRelease [15.4 kB]
Get:4 http://archive.ubuntu.com/ubuntu bionic InRelease [242 kB]
Get:5 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [34.1 kB]
Err:5 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (34289 != 34112). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:
- Filesize:34112 [weak]
- SHA512:bbd687a0e58e53558b23e4a33141e3d68409ae585cc221a462a81fa99f2b7b684c3edfc914d54e4f8dcc2171b082d793ea02ebc4c36bad0983806626b8a70a81
- SHA256:624e7f5d3399647e6fedde02804b9b613f973107cfd5fc6e4fe9bc8023374341
- SHA1:16c9a058748832c319efc769c674f813287ac884 [weak]
- MD5Sum:40947a6485a3392838ed1edaf4789999 [weak]
Release file created at: Fri, 21 Dec 2018 23:34:26 +0000
Get:6 http://ppa.launchpad.net/gophers/archive/ubuntu bionic/main amd64 Packages [1,593 B]
Get:7 http://security.ubuntu.com/ubuntu bionic-security/universe Sources [32.5 kB]
Get:8 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:9 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [1,367 B]
Get:10 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [135 kB]
Get:11 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:12 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [300 kB]
Get:13 http://archive.ubuntu.com/ubuntu bionic/universe Sources [11.5 MB]
Get:14 http://archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [186 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [11.3 MB]
Get:16 http://archive.ubuntu.com/ubuntu bionic/main amd64 Packages [1,344 kB]
Get:17 http://archive.ubuntu.com/ubuntu bionic/restricted amd64 Packages [13.5 kB]
Get:18 http://archive.ubuntu.com/ubuntu bionic-updates/universe Sources [168 kB]
Get:19 http://archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [10.7 kB]
Get:20 http://archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [6,931 B]
Get:21 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [618 kB]
Get:22 http://archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [900 kB]
Get:23 http://archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [3,655 B]
Fetched 27.1 MB in 4s (7,626 kB/s)
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.gz File has unexpected size (34289 != 34112). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:
- Filesize:34112 [weak]
- SHA512:bbd687a0e58e53558b23e4a33141e3d68409ae585cc221a462a81fa99f2b7b684c3edfc914d54e4f8dcc2171b082d793ea02ebc4c36bad0983806626b8a70a81
- SHA256:624e7f5d3399647e6fedde02804b9b613f973107cfd5fc6e4fe9bc8023374341
- SHA1:16c9a058748832c319efc769c674f813287ac884 [weak]
- MD5Sum:40947a6485a3392838ed1edaf4789999 [weak]
Release file created at: Fri, 21 Dec 2018 23:34:26 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
And here's yet another:
Step 4/13 : RUN apt-get update && apt-get install -y --no-install-recommends gnupg apt-transport-https cron gettext && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list && apt-get update && ACCEPT_EULA=Y apt-get install -y unixodbc-dev libgss3 odbcinst msodbcsql17 mssql-tools locales && ln -sfn /opt/mssql-tools/bin/sqlcmd /usr/bin/sqlcmd && ln -sfn /opt/mssql-tools/bin/bcp /usr/bin/bcp && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen && rm -r /var/lib/apt/lists/*
---> Running in b8a245264670
Get:2 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:3 http://security-cdn.debian.org/debian-security buster/updates InRelease [38.3 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian buster InRelease [154 kB]
Get:6 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [464 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [47.6 kB]
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch Release
Get:9 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages.diff/Index [27.9 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages.diff/Index [27.9 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7824 kB]
Reading package lists...
E: Could not open file /var/lib/apt/lists/deb.debian.org_debian_dists_buster_main_binary-amd64_Packages.diff_Index - open (2: No such file or directory)
Again it looks like the debian repos are down
Step 4/16 : RUN apt-get update && apt-get install -y --no-install-recommends gnupg apt-transport-https cron gettext libicu-dev && curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - && curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list && apt-get update && ACCEPT_EULA=Y apt-get install -y unixodbc-dev libgss3 odbcinst msodbcsql17 mssql-tools locales && ln -sfn /opt/mssql-tools/bin/sqlcmd /usr/bin/sqlcmd && ln -sfn /opt/mssql-tools/bin/bcp /usr/bin/bcp && echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen && rm -r /var/lib/apt/lists/*
---> Running in 4db7db3213c1
Get:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://security-cdn.debian.org/debian-security buster/updates InRelease [38.3 kB]
Get:3 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [473 kB]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:5 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster InRelease [159 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [7748 B]
Get:8 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [47.6 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7926 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7090 kB]
Fetched 16.0 MB in 3s (5173 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
gettext-base gnupg-agent icu-devtools libassuan0 libcroco3 libcurl3-gnutls
libksba8 libnpth0 libreadline7 libsqlite3-0 pinentry-curses readline-common
Suggested packages:
anacron logrotate checksecurity gettext-doc autopoint libasprintf-dev
libgettextpo-dev parcimonie xloadimage dbus-user-session libpam-systemd
pinentry-gnome3 scdaemon icu-doc pinentry-doc readline-doc
Recommended packages:
exim4 | postfix | mail-transport-agent dirmngr gnupg-l10n
The following NEW packages will be installed:
apt-transport-https cron gettext gettext-base gnupg gnupg-agent icu-devtools
libassuan0 libcroco3 libcurl3-gnutls libicu-dev libksba8 libnpth0
libreadline7 libsqlite3-0 pinentry-curses readline-common
0 upgraded, 17 newly installed, 0 to remove and 1 not upgraded.
Need to get 21.7 MB of archives.
After this operation, 108 MB of additional disk space will be used.
Get:1 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 cron amd64 3.0pl1-128+deb9u1 [95.4 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libassuan0 amd64 2.4.3-2 [42.5 kB]
Get:3 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 pinentry-curses amd64 1.0.0-2 [50.5 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libnpth0 amd64 1.3-1 [14.6 kB]
Get:5 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 readline-common all 7.0-3 [70.4 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libreadline7 amd64 7.0-3 [151 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg-agent amd64 2.1.18-8~deb9u3 [554 kB]
Get:8 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libksba8 amd64 1.3.5-2 [99.7 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libsqlite3-0 amd64 3.16.2-5+deb9u1 [572 kB]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gnupg amd64 2.1.18-8~deb9u3 [1128 kB]
Get:11 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gettext-base amd64 0.19.8.1-2 [121 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcurl3-gnutls amd64 7.52.1-5+deb9u8 [290 kB]
Get:13 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 apt-transport-https amd64 1.4.9 [171 kB]
Get:14 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libcroco3 amd64 0.6.11-3 [143 kB]
Get:15 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 gettext amd64 0.19.8.1-2 [1495 kB]
Get:16 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 icu-devtools amd64 57.1-6+deb9u2 [178 kB]
Get:17 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 libicu-dev amd64 57.1-6+deb9u2 [16.5 MB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 21.7 MB in 0s (22.5 MB/s)
Selecting previously unselected package cron.
(Reading database ... 12308 files and directories currently installed.)
Preparing to unpack .../00-cron_3.0pl1-128+deb9u1_amd64.deb ...
Unpacking cron (3.0pl1-128+deb9u1) ...
Selecting previously unselected package libassuan0:amd64.
Preparing to unpack .../01-libassuan0_2.4.3-2_amd64.deb ...
Unpacking libassuan0:amd64 (2.4.3-2) ...
Selecting previously unselected package pinentry-curses.
Preparing to unpack .../02-pinentry-curses_1.0.0-2_amd64.deb ...
Unpacking pinentry-curses (1.0.0-2) ...
Selecting previously unselected package libnpth0:amd64.
Preparing to unpack .../03-libnpth0_1.3-1_amd64.deb ...
Unpacking libnpth0:amd64 (1.3-1) ...
Selecting previously unselected package readline-common.
Preparing to unpack .../04-readline-common_7.0-3_all.deb ...
Unpacking readline-common (7.0-3) ...
Selecting previously unselected package libreadline7:amd64.
Preparing to unpack .../05-libreadline7_7.0-3_amd64.deb ...
Unpacking libreadline7:amd64 (7.0-3) ...
Selecting previously unselected package gnupg-agent.
Preparing to unpack .../06-gnupg-agent_2.1.18-8~deb9u3_amd64.deb ...
Unpacking gnupg-agent (2.1.18-8~deb9u3) ...
Selecting previously unselected package libksba8:amd64.
Preparing to unpack .../07-libksba8_1.3.5-2_amd64.deb ...
Unpacking libksba8:amd64 (1.3.5-2) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../08-libsqlite3-0_3.16.2-5+deb9u1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...
Selecting previously unselected package gnupg.
Preparing to unpack .../09-gnupg_2.1.18-8~deb9u3_amd64.deb ...
Unpacking gnupg (2.1.18-8~deb9u3) ...
Selecting previously unselected package gettext-base.
Preparing to unpack .../10-gettext-base_0.19.8.1-2_amd64.deb ...
Unpacking gettext-base (0.19.8.1-2) ...
Selecting previously unselected package libcurl3-gnutls:amd64.
Preparing to unpack .../11-libcurl3-gnutls_7.52.1-5+deb9u8_amd64.deb ...
Unpacking libcurl3-gnutls:amd64 (7.52.1-5+deb9u8) ...
Selecting previously unselected package apt-transport-https.
Preparing to unpack .../12-apt-transport-https_1.4.9_amd64.deb ...
Unpacking apt-transport-https (1.4.9) ...
Selecting previously unselected package libcroco3:amd64.
Preparing to unpack .../13-libcroco3_0.6.11-3_amd64.deb ...
Unpacking libcroco3:amd64 (0.6.11-3) ...
Selecting previously unselected package gettext.
Preparing to unpack .../14-gettext_0.19.8.1-2_amd64.deb ...
Unpacking gettext (0.19.8.1-2) ...
Selecting previously unselected package icu-devtools.
Preparing to unpack .../15-icu-devtools_57.1-6+deb9u2_amd64.deb ...
Unpacking icu-devtools (57.1-6+deb9u2) ...
Selecting previously unselected package libicu-dev.
Preparing to unpack .../16-libicu-dev_57.1-6+deb9u2_amd64.deb ...
Unpacking libicu-dev (57.1-6+deb9u2) ...
Setting up libnpth0:amd64 (1.3-1) ...
Setting up readline-common (7.0-3) ...
Setting up libreadline7:amd64 (7.0-3) ...
Setting up libcurl3-gnutls:amd64 (7.52.1-5+deb9u8) ...
Setting up gettext-base (0.19.8.1-2) ...
Setting up libksba8:amd64 (1.3.5-2) ...
Setting up libcroco3:amd64 (0.6.11-3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
Setting up libsqlite3-0:amd64 (3.16.2-5+deb9u1) ...
Setting up icu-devtools (57.1-6+deb9u2) ...
Setting up cron (3.0pl1-128+deb9u1) ...
Adding group `crontab' (GID 101) ...
Done.
update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
invoke-rc.d: could not determine current runlevel
invoke-rc.d: policy-rc.d denied execution of start.
Setting up libassuan0:amd64 (2.4.3-2) ...
Setting up apt-transport-https (1.4.9) ...
Setting up gettext (0.19.8.1-2) ...
Setting up libicu-dev (57.1-6+deb9u2) ...
Setting up pinentry-curses (1.0.0-2) ...
Setting up gnupg-agent (2.1.18-8~deb9u3) ...
Setting up gnupg (2.1.18-8~deb9u3) ...
Processing triggers for libc-bin (2.24-11+deb9u3) ...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0Warning: apt-key output should not be parsed (stdout is not a terminal)
100 983 100 983 0 0 7123 0 --:--:-- --:--:-- --:--:-- 7175
OK
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 75 100 75 0 0 999 0 --:--:-- --:--:-- --:--:-- 986
Hit:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Hit:2 http://security-cdn.debian.org/debian-security buster/updates InRelease
Get:3 https://packages.microsoft.com/debian/9/prod stretch InRelease [3232 B]
Ign:4 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Get:6 https://packages.microsoft.com/debian/9/prod stretch/main amd64 Packages [35.5 kB]
Err:6 https://packages.microsoft.com/debian/9/prod stretch/main amd64 Packages
Hash Sum mismatch
Hashes of expected file:
- Filesize:35474 [weak]
- SHA512:6ac275a4d73bf9ef1f3bf21daefea887cd8d0c4aed25eaf42da3513810b1902b61db1d1138a251173d4d1f745cdf62384c89a7cc4229059fff4a72a66cecf2d5
- SHA256:07d3a5cd737bb48e477a8b1f419da2f75b231454f90040c07f6362c8f45ab3ef
- SHA1:380a6de625eccc590ab62a502e28e5e9779fd19b [weak]
- MD5Sum:4006ebd954b74d40b588ac3f20ea84e1 [weak]
Hashes of received file:
- SHA512:587779f2cc40e4aab344090c1dd07ffe00df1fee03def63ef87303e74c99f62068c42da3b223692fb680b3e8389eb7f5bcd36c18e9b3b95be991dea60cf2ab05
- SHA256:b1c2e8d61fc791de8a3b36d4aadc8aba2c2a010ce13fc92a42b184fd258ee371
- SHA1:ab2c7c6dfef6a1dae4cb6cb05dd88854ae3d54b7 [weak]
- MD5Sum:b1c14a62f2ec57a5bde8ec232c558055 [weak]
- Filesize:35344 [weak]
Last modification reported: Mon, 28 Jan 2019 17:31:58 +0000
Release file created at: Mon, 28 Jan 2019 17:28:49 +0000
Hit:7 http://cdn-fastly.deb.debian.org/debian buster InRelease
Hit:8 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
Hit:9 http://cdn-fastly.deb.debian.org/debian stretch Release
Fetched 38.6 kB in 0s (57.2 kB/s)
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/main/binary-amd64/Packages.bz2 Hash Sum mismatch
Hashes of expected file:
- Filesize:35474 [weak]
- SHA512:6ac275a4d73bf9ef1f3bf21daefea887cd8d0c4aed25eaf42da3513810b1902b61db1d1138a251173d4d1f745cdf62384c89a7cc4229059fff4a72a66cecf2d5
- SHA256:07d3a5cd737bb48e477a8b1f419da2f75b231454f90040c07f6362c8f45ab3ef
- SHA1:380a6de625eccc590ab62a502e28e5e9779fd19b [weak]
- MD5Sum:4006ebd954b74d40b588ac3f20ea84e1 [weak]
Hashes of received file:
- SHA512:587779f2cc40e4aab344090c1dd07ffe00df1fee03def63ef87303e74c99f62068c42da3b223692fb680b3e8389eb7f5bcd36c18e9b3b95be991dea60cf2ab05
- SHA256:b1c2e8d61fc791de8a3b36d4aadc8aba2c2a010ce13fc92a42b184fd258ee371
- SHA1:ab2c7c6dfef6a1dae4cb6cb05dd88854ae3d54b7 [weak]
- MD5Sum:b1c14a62f2ec57a5bde8ec232c558055 [weak]
- Filesize:35344 [weak]
Last modification reported: Mon, 28 Jan 2019 17:31:58 +0000
Release file created at: Mon, 28 Jan 2019 17:28:49 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
FYI a separate container build also failed at the same time.
FROM mcr.microsoft.com/mssql-tools
# Set timezone to America/New_York
ENV TZ=America/New_York
RUN export DEBIAN_FRONTEND=noninteractive && \
apt-get update && \
apt-get install -y --no-install-recommends tzdata && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && \
echo $TZ > /etc/timezone && \
dpkg-reconfigure -f noninteractive tzdata && \
rm -rf /var/lib/apt/lists/*
Step 1/7 : FROM mcr.microsoft.com/mssql-tools
latest: Pulling from mssql-tools
Digest: sha256:62556500522072535cb3df2bb5965333dded9be47000473e9e0f84118e248642
Status: Downloaded newer image for mcr.microsoft.com/mssql-tools:latest
---> bc2b6cd40cb9
Step 2/7 : ENV TZ America/New_York
---> Running in 7d64178b0518
---> 4891a351cf99
Removing intermediate container 7d64178b0518
Step 3/7 : RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y --no-install-recommends tzdata && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata && rm -rf /var/lib/apt/lists/*
---> Running in 227d51b111a0
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:2 http://archive.ubuntu.com/ubuntu xenial InRelease
Get:3 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [116 kB]
Get:4 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease [3226 B]
Get:5 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:6 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [767 kB]
Get:7 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [527 kB]
Get:9 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6119 B]
Get:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [71.1 kB]
Ign:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Get:11 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [64.9 kB]
Ign:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Get:12 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [303 kB]
Get:13 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1166 kB]
Get:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [337 kB]
Err:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hash Sum mismatch
Get:14 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [929 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.1 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:18 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8532 B]
Fetched 4540 kB in 1s (3473 kB/s)
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Could it be related to https://github.com/Microsoft/vscode/issues/41094 or https://github.com/Microsoft/vscode/issues/45868
@esetnik I am encountering the same issues with 18.04
Did you ever find a solution to this by chance?
I'm having the same problem. But only Debian stretch is affected, Debian buster seems to work
I also have the same problem.
same problem too ! :(
This issue affects many products, I faced it when our docker image failed to build because of issues with PowerShell installation (we used this ugly script https://github.com/PowerShell/PowerShell/blob/a96b4c0/tools/install-powershell.sh on debian)
I temporary solved the problem as follows:
curl -LsSo pwsh.deb https://github.com/PowerShell/PowerShell/releases/download/v6.2.3/powershell_6.2.3-1.debian.9_amd64.deb && dpkg -i pwsh.deb && apt-get install -f && rm pwsh.deb
Same thing here! Detected this just now!
I'm also having the same problem right now, hope it will fix itself during the day
For dev purpose temporary switched to Debian 10 sources
For dev purpose temporary switched to Debian 10 sources
This worked for me
Similar issue is here: https://github.com/dotnet/core/issues/3598
I got in contact with the Msft Linux Repo Admins, who have fixed the issue in the Debian 9 feed: https://github.com/dotnet/core/issues/3598#issuecomment-541172711.
This is happening again.
Yes this is happening again.
me too today:
Err:12 http://packages.microsoft.com/repos/code stable InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
...
E: Failed to fetch http://packages.microsoft.com/repos/code/dists/stable/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'http://packages.microsoft.com/repos/code stable InRelease' is no longer signed.
N: Updating from such a repository can't be done securely, and is therefore disabled by default.
N: See apt-secure(8) manpage for repository creation and user configuration details.
I was just installing VS Code when running into this problem.
For now i simply have comment out the line in vscode.list, now its not stopping any other updates.
sudo vim /etc/apt/sources.list.d/vscode.list
me too today: Err:12 http://packages.microsoft.com/repos/code stable InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) ... E: Failed to fetch http://packages.microsoft.com/repos/code/dists/stable/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?) E: The repository 'http://packages.microsoft.com/repos/code stable InRelease' is no longer signed. N: Updating from such a repository can't be done securely, and is therefore disabled by default. N: See apt-secure(8) manpage for repository creation and user configuration details.
Microsoft has corrected the signature,
Get:20 http://packages.microsoft.com/repos/code stable/main amd64 Packages [48.0 kB]
Get:21 http://packages.microsoft.com/repos/code stable/main armhf Packages [48.7 kB]
Get:22 http://packages.microsoft.com/repos/code stable/main arm64 Packages [48.9 kB]
Get:23 https://packages.microsoft.com/repos/ms-teams stable/main amd64 Packages [8,208 B]
Get:24 https://packages.microsoft.com/repos/ms-teams stable/main amd64 Contents (deb) [4,643 B]
no problem today <)(>
Got this today:
Get:8 https://packages.microsoft.com/repos/vscode stable InRelease [3 434 B]
Err:8 https://packages.microsoft.com/repos/vscode stable InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: The repository 'https://packages.microsoft.com/repos/vscode stable InRelease' is no longer signed.
Apparently I just have to wait for Microsoft to fix their repository?
I just wanted to write about it and realized that the URL for the repository is different:
https://packages.microsoft.com/repos/vscode
should be https://packages.microsoft.com/repos/code
No idea when it changed?
I just wanted to write about it and realized that the URL for the repository is different:
https://packages.microsoft.com/repos/vscode
should behttps://packages.microsoft.com/repos/code
No idea when it changed?
Thanks for point this out. I implemented the same fix and it's working
After reading your message I've double checked the installation instruction here and it seems that the right URL is https://packages.microsoft.com/repos/code and NOT https://packages.microsoft.com/repos/vscode (as it used to be)
It was changed a while ago and we didn't notice... https://github.com/microsoft/vscode-docs/commit/52cf54943a2b8c776269fc71f121d67fd716c254#diff-5bd368be1ae92eaf5520d1223b6a53983661854610dadc7c6b59939596d2dd97L53
Ooooooh snap, this is a current issue? I thought it was something wrong with my Ubuntu setup.
What do we do? Do we wait? Do we need to change a config?
https://packages.microsoft.com/repos/vscode still works tho (I don’t have issue anymore so I guess it’s fixed… until it breaks again?). I wonder why I have this URL instead of the new one since I set up this computer in mid-2021, though.
I think I got the apt repository instructions from the Debian Wiki page, which still advertises the 'vscode' part. The Microsoft docs say it should be 'code'.
Help
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (contrib/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (contrib/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (non-free/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (non-free/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (main/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (main/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (main/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (contrib/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (contrib/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (contrib/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (contrib/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (contrib/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (contrib/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (non-free/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Packages (non-free/binary-all/Packages) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (non-free/i18n/Translation-en_US) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Translations (non-free/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (non-free/Contents-amd64) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2 W: Target Contents-deb (non-free/Contents-all) is configured multiple times in /etc/apt/sources.list:2 and /etc/apt/sources.list.d/sources.list:2
And again: E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
.
Works again this morning but was broken overnight it appears:
curl "https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease"
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Origin: microsoft-ubuntu-jammy-prod jammy
Label: microsoft-ubuntu-jammy-prod jammy
Suite: jammy
Codename: jammy
Date: Wed, 24 Apr 2024 12:42:41 +0000
Architectures: amd64 arm64 armhf all
Components: main
Description: Generated by aptly
Acquire-By-Hash: yes
SHA256:
e4ae629721c9c7c1c71d424b36525f9a31b195e219999e86163806bfac2ac2f7 973660 main/binary-amd64/Packages
2953c7288de6732c996b00d4771517bc21793229c47909b5d0e5ae301f79f5e7 141783 main/binary-amd64/Packages.gz
bf30a7590d5931f8315212274cb066382be37cd3ef07a70d7198507a4cfc50e4 255301 main/binary-arm64/Packages
ed4c200582c197867256fcf7ef6b89a1cbed7127da2519b0656e0fad87a4e89d 36061 main/binary-arm64/Packages.gz
290c360a71a8f28ad979c69055d879191f95b0fdd335fce210be4d6e09f99db0 130479 main/binary-armhf/Packages
061b88a07bc1a35bce4e88ff2e9cb96bc4a456aa485ce02530d22e426135492f 12716 main/binary-armhf/Packages.gz
a4c11acd19034029d5dee035f6c5b20ae9961d7e9cecc2d14c9eac51e3555441 4503 main/binary-all/Packages
a3a474aa2d3ec1e4711cf2207406dd7940222a3c380e2c43adca13b10cb796ae 1035 main/binary-all/Packages.gz
e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 0 main/source/Sources
1036ef97866e1f255a0980629a2ea5b8f105e6b08838d031ff0ecdbd36043530 28 main/source/Sources.gz
SHA512:
d2b7333f8d0c5a96db183740b6ff31a3579e55f6208208bf6b9010f9f230dac5edbbd315485dfa48584d333f89e8c9a3102c4cc74874f83d15d8ad9bfe984166 973660 main/binary-amd64/Packages
9009cc5403fe0ff5cdc127ecbf3bbbc671e0f3bca1e2dafb0e5683eba3a3f23ff24aaeeffe7417070ab2acfd0779a30e702f69a7886ea44a22f3b3be9236b030 141783 main/binary-amd64/Packages.gz
ab97489959546d1c495514916af0c3c366e95e29b3e625570abce161fa15892a68abca35285009055f2d876b1b3152d14ea645c092d7ec8055f7ee012adb698d 255301 main/binary-arm64/Packages
5bc9c0bc0e7b0439cef8a56cd42d79b57c28f1ddd87a6b312d6f06c1a352013536e3a3da2a7bf24da6b615fc07b24debf22aeb5a9699068daf982a450c07cdc2 36061 main/binary-arm64/Packages.gz
165f4ecebe41ddc5795c076eac0da7a509c9c730485acb57beab82de12eec9d7818c3ec1cca7e857270993bd24cff58f2d734025387a8966fab68da89e3d43b9 130479 main/binary-armhf/Packages
4809dfa595251586aae8e62c4f08a3041b1573c0ef7920208a1ddb82816c289da9df10f489644f1a63354d8dc7e2e497abeba83508098fa865b33d083bc50038 12716 main/binary-armhf/Packages.gz
17953dd79b3669631f4a3c14831613a8323d27d54d94afaa5f945431a870dd9abe0a296cd527281e162b2f7662db357df0faccd17808c7ed5b0c2eedbc0d370e 4503 main/binary-all/Packages
427eb75d621afdcdb59bdd3600f053b73f446c1f3bea17f6a4e930da2375c5393a16d3a639af0392e81b6702d1dd12bf3a0ceb1482e00d8059cb66e9728d930d 1035 main/binary-all/Packages.gz
cf83e1357eefb8bdf1542850d66d8007d620e4050b5715dc83f4a921d36ce9ce47d0d13c5d85f2b0ff8318d2877eec2f63b931bd47417a81a538327af927da3e 0 main/source/Sources
0723e381f6f4fde0a5f91301c4dfc8d70c6fa21ee295c996b6b692c7d2014d123e7eb4c22661a1c0a7423a5b613c792030f68ccf7d059e71d3bdb52807b13ce6 28 main/source/Sources.gz
-----BEGIN PGP SIGNATURE-----
Version: BSN Pgp v1.0.0.0
iQEcBAEBCAAGBQJmKP7kAAoJEOs+lK2+EinPtU4H/3iioGU/VSYkhOzJysYVHIPH
gyj3Apwixpy8SHGNU+4SV+dXTq+yXLNzB3iUxNor39+9feG/VSFPBDV2+0IJDDWY
WlGMdNvhTPh2LxqJe8trd37WxJo6QyJVvSc0YIedjHLWSznWx7VP5nPrRlaR6WEh
00Nlr7wIa4+EWiQV5PIticT8RlqGbmShWmU7tANyFxddHa5lNP9q6zQqfocn5i7l
J6WbFt2unmukoCqGIFIN8ccZUsFBE3SHdgQL3qAupQPf1jw8JHHqOijZViJXPblg
n7tkJJIP7G17xY7BaOt2GnPwJvac7LvB4jJ782hKqUCY9VeyXs9KnLH8J2/rpA0=
-----END PGP SIGNATURE-----
Error:
Dockerfile
Logs