mssql-docker icon indicating copy to clipboard operation
mssql-docker copied to clipboard

Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

Open esetnik opened this issue 6 years ago • 34 comments

Error:

E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

Dockerfile

FROM php:7.2-stretch

# Set timezone to America/New_York
ENV TZ=America/New_York
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
  && echo $TZ > /etc/timezone \
  && echo "date.timezone=\"$TZ\"" >> /usr/local/etc/php/conf.d/docker-vars.ini

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/*
  
RUN pecl install sqlsrv pdo_sqlsrv && \
  docker-php-ext-enable sqlsrv pdo_sqlsrv

Logs

Step 4/19 : 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 bdd90682157e
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Get:3 http://security-cdn.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Get:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease [91.0 kB]
Get:5 http://security-cdn.debian.org/debian-security buster/updates InRelease [38.3 kB]
Get:8 http://security-cdn.debian.org/debian-security stretch/updates/main amd64 Packages [464 kB]
Get:4 http://cdn-fastly.deb.debian.org/debian buster InRelease [154 kB]
Get:6 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease [47.6 kB]
Get:7 http://cdn-fastly.deb.debian.org/debian stretch Release [118 kB]
Get:9 http://cdn-fastly.deb.debian.org/debian stretch-updates/main amd64 Packages [5152 B]
Get:10 http://cdn-fastly.deb.debian.org/debian stretch Release.gpg [2434 B]
Get:11 http://cdn-fastly.deb.debian.org/debian buster/main amd64 Packages [7851 kB]
Get:12 http://cdn-fastly.deb.debian.org/debian stretch/main amd64 Packages [7089 kB]
Fetched 16.0 MB in 3s (4528 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 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 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 libassuan0
  libcroco3 libcurl3-gnutls libksba8 libnpth0 libreadline7 libsqlite3-0
  pinentry-curses readline-common
0 upgraded, 15 newly installed, 0 to remove and 1 not upgraded.
Need to get 4997 kB of archives.
After this operation, 15.2 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.8 [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]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 4997 kB in 0s (11.0 MB/s)
Selecting previously unselected package cron.

(Reading database ... 12305 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.8_amd64.deb ...

Unpacking apt-transport-https (1.4.8) ...

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) ...

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 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.8) ...

Setting up gettext (0.19.8.1-2) ...

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   7307      0 --:--:-- --:--:-- --:--:--  7281
OK
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

100    75  100    75    0     0    994      0 --:--:-- --:--:-- --:--:--  1000
Ign:1 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:2 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:3 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian buster InRelease
Hit:5 http://security-cdn.debian.org/debian-security buster/updates InRelease
Err:7 https://packages.microsoft.com/debian/9/prod stretch InRelease
  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:6 http://cdn-fastly.deb.debian.org/debian buster-updates InRelease
Hit:8 http://cdn-fastly.deb.debian.org/debian stretch Release
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/debian/9/prod/dists/stretch/InRelease  Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
E: Some index files failed to download. They have been ignored, or old ones used instead.

esetnik avatar Jan 08 '19 18:01 esetnik

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.

forkazmoden avatar Jan 09 '19 05:01 forkazmoden

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.

esetnik avatar Jan 09 '19 15:01 esetnik

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.

esetnik avatar Jan 09 '19 15:01 esetnik

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)

esetnik avatar Jan 09 '19 16:01 esetnik

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.

esetnik avatar Jan 28 '19 17:01 esetnik

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.

esetnik avatar Jan 28 '19 17:01 esetnik

Could it be related to https://github.com/Microsoft/vscode/issues/41094 or https://github.com/Microsoft/vscode/issues/45868

esetnik avatar Jan 28 '19 17:01 esetnik

@esetnik I am encountering the same issues with 18.04

Did you ever find a solution to this by chance?

jeqb avatar Oct 11 '19 04:10 jeqb

I'm having the same problem. But only Debian stretch is affected, Debian buster seems to work

checkphi avatar Oct 11 '19 09:10 checkphi

I also have the same problem.

nignatov avatar Oct 11 '19 09:10 nignatov

same problem too ! :(

gdegoulet avatar Oct 11 '19 09:10 gdegoulet

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

Himura2la avatar Oct 11 '19 09:10 Himura2la

Same thing here! Detected this just now!

cardcc avatar Oct 11 '19 10:10 cardcc

I'm also having the same problem right now, hope it will fix itself during the day

Jean717p avatar Oct 11 '19 10:10 Jean717p

For dev purpose temporary switched to Debian 10 sources

Krokop avatar Oct 11 '19 10:10 Krokop

For dev purpose temporary switched to Debian 10 sources

This worked for me

pietercusters avatar Oct 11 '19 11:10 pietercusters

Similar issue is here: https://github.com/dotnet/core/issues/3598

kitsuyui avatar Oct 11 '19 12:10 kitsuyui

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.

dagood avatar Oct 11 '19 18:10 dagood

This is happening again.

krisives avatar Sep 29 '21 10:09 krisives

Yes this is happening again.

kevikanon avatar Sep 29 '21 10:09 kevikanon

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.

Apofis avatar Sep 29 '21 11:09 Apofis

I was just installing VS Code when running into this problem.

beltiras avatar Sep 29 '21 11:09 beltiras

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

vi4hu avatar Sep 29 '21 13:09 vi4hu

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 <)(>

Apofis avatar Sep 30 '21 06:09 Apofis

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?

ariasuni avatar Oct 25 '21 12:10 ariasuni

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?

krzysztofjeziorny avatar Oct 25 '21 12:10 krzysztofjeziorny

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?

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)

andreascian avatar Oct 25 '21 15:10 andreascian

It was changed a while ago and we didn't notice... https://github.com/microsoft/vscode-docs/commit/52cf54943a2b8c776269fc71f121d67fd716c254#diff-5bd368be1ae92eaf5520d1223b6a53983661854610dadc7c6b59939596d2dd97L53

Commaster avatar Oct 25 '21 16:10 Commaster

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?

stryker2k2 avatar Oct 25 '21 17:10 stryker2k2

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.

ariasuni avatar Nov 04 '21 14:11 ariasuni