sudo apt-get upgrade fails
Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/debian9/runtime-current Operating System: Linux Debian 9 - x64
Provide details about the problem you are experiencing. Include your operating system version, exact error message, code sample, and anything else that is relevant.
Error Recieved: 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?)
googling this seems to indicate a proxy issue, but I am not going through a proxy server. I can wget the same file no problem.
Thanks!
Getting the same error here, also running Debian 9:
Hit:1 http://security.debian.org stretch/updates InRelease
Get:2 https://download.docker.com/linux/debian stretch InRelease [44.8 kB]
Ign:3 http://http.us.debian.org/debian stretch InRelease
Hit:4 http://http.us.debian.org/debian stretch-updates InRelease
Hit:5 http://http.us.debian.org/debian stretch Release
Get:7 https://packages.microsoft.com/debian/9/prod stretch InRelease [4,023 B]
Err:7 https://packages.microsoft.com/debian/9/prod stretch InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Hit:8 http://apt.postgresql.org/pub/repos/apt stretch-pgdg InRelease
Fetched 48.9 kB in 1s (34.3 kB/s)
Reading package lists... Done
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.
Same issue, it's seems that there is some change on the repository yesterday.

I use the guide provided by Microsoft for a long time. But now it's not working because of this error.
The same problem detected today when building docker images:
Hit:1 http://security-cdn.debian.org/debian-security stretch/updates InRelease
Get:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease [4023 B]
Err:2 https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch InRelease
Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)
Ign:3 http://cdn-fastly.deb.debian.org/debian stretch InRelease
Hit:4 http://cdn-fastly.deb.debian.org/debian stretch-updates InRelease
Hit:5 http://cdn-fastly.deb.debian.org/debian stretch Release
Fetched 4023 B in 0s (4176 B/s)
Reading package lists...
[91mE: Failed to fetch https://packages.microsoft.com/repos/microsoft-debian-stretch-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.
There were no any changes on our side.
This issue can be easily reproduced by running following commands in Debian:
curl https://packages.microsoft.com/config/debian/9/prod.list > /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
Same issue, cannot deploy anymore due to this bug :/
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?)
Any chances that this will be fixed in the next hours?
you can change version of debian from 9 to 10 :
curl https://packages.microsoft.com/config/debian/10/prod.list > /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
works fine in my situation
I'm trying this to install msodbcsql17.
WIth debian 9 it worked till yesterday.
With debian 10 I get:
Package 'msodbcsql17' has no installation candidate
Any ideas where I can find 'msodbcsql17' for debian 10?
We changed to debian 8 which let us install msodbcsql17 until we get debian 9 to work again.
I encountered the same issue. I think it relates this issue. https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884922 This issue explains older version of apt does not accept InRelease file that line ending with CR/LF and causes NOSPLIT error.
apt version of Debian 9 stretch is 1.4.9. InRelease file seems to be broken for this version.
$ curl -s https://packages.microsoft.com/debian/8/prod/dists/jessie/InRelease | file -
/dev/stdin: ASCII text
$ curl -s https://packages.microsoft.com/debian/9/prod/dists/stretch/InRelease | file -
/dev/stdin: ASCII text, with CRLF, LF line terminators
$ curl -s https://packages.microsoft.com/debian/10/prod/dists/buster/InRelease | file -
/dev/stdin: ASCII text
I experience the same issue even with newer apt version which contains the fix. I my case, on the Ubuntu "InRelease" https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=884922
$ curl -s https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/InRelease | file -
/dev/stdin: ASCII text, with CRLF, LF line terminators
$ apt --version
apt 1.6.12 (amd64)
$ apt changelog apt
....
apt (1.6~alpha6) unstable; urgency=medium
* Support cleartext signed InRelease files with CRLF line endings.
Thanks to Lukas Wunner for detailed report & initial patch! (Closes: 884922)
- edit wrong url
Is there any workaround for this? I'm trying to build a docker image based on an image that in turn was based on stretch. I can't change the base image and I need to install msodbcsql17 and mssql-tools. I can live with bypassing security temporarily if necessary or I could add some steps that download and fix the files, but I don't know how. Any pointers?
@erik-wramner
I tried following workaround with downloading and installing manually.
Like this
mkdir /tmp/work
cd /tmp/work
curl -fsSLO https://packages.microsoft.com/debian/9/prod/pool/main/m/msodbcsql17/msodbcsql17_17.4.2.1-1_amd64.deb
curl -fsSLO https://packages.microsoft.com/debian/9/prod/pool/main/u/unixodbc/libodbc1_2.3.7_amd64.deb
curl -fsSLO https://packages.microsoft.com/debian/9/prod/pool/main/u/unixodbc/odbcinst_2.3.7_amd64.deb
curl -fsSLO https://packages.microsoft.com/debian/9/prod/pool/main/u/unixodbc/odbcinst1debian2_2.3.7_amd64.deb
curl -fsSLO https://packages.microsoft.com/debian/9/prod/pool/main/u/unixodbc/unixodbc_2.3.7_amd64.deb
curl -fsSLO https://packages.microsoft.com/debian/9/prod/pool/main/u/unixodbc/unixodbc-dev_2.3.7_amd64.deb
sudo env ACCEPT_EULA=Y apt-get install -qq -y ./*.deb
cd -
And this works. Needless to say it is not good for security and manner.
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
I'm also affected on Debian 9. Started searching for a solution some hours ago and now this ticket suddenly explodes :fire: Good :) It worked until some weeks ago, the system configuration did not change in the meantime (no added proxy etc.).
Yea.. just came here to report this as well!
I was just trying to set up a new dotnet box today too. Sources were working the other day
I got the same issue, and It locked my release on next Monday, I cannot build a docker image on Azure pipeline anymore. 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.
Any workaround to build a docker image? I have a urgent release, please help.
@lochuynh Try this https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
It is working for me now! Thank you!
I've sent a high-importance mail to the Microsoft Linux repository admins, will report back here as I have more info. Thanks everyone for reporting this. /cc @leecow