Error setting up .NET core repository on Ubuntu 19.04
I am attempting to install .NET Core from the instructions that are provided here
https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1904
After running sudo apt-get update after adding the repository I get the following error-
```File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:
Same issue, looks like this same/similar type of issue has happened multiple times now, what's going on and how can this be prevented in the future? Is .NET Core not recommended for production workloads?
Thanks!
https://github.com/microsoft/vscode/issues/41094
https://github.com/dotnet/core/issues/3221
Err:9 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
File has unexpected size (23655 != 156065). Mirror sync in progress?
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
I'm reaching out to the Microsoft Linux repo admins (filing ticket, emailing).
This is reported for 18.04 and 19.10 as well. The Microsoft Linux repo admins did some maintenance around the time of the first report, so this may be related.
I have similar issue at Debian 9 stretch.
W: Conflicting distribution: https://packages.microsoft.com/debian/9/prod stretch InRelease (expected stretch but got stable)
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:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Hashes of received file:
- SHA512:a18b4df496d00477e52cf62e01c9f6c9534926ad0e3bf17f94fc28fc9bd91d5ee5e906b460477e2c1b280a5757a067937c9b2724bd6c72066e982a19306f28b8
- SHA256:94e637dd6df186bbed5a19f2e7bdc2dcc8f7bb0feb2f1eaf93f05b45dd322cc4
- SHA1:fb9e80e17952a577030e9266737b23269c8d878b [weak]
- MD5Sum:4360374f4ec05159ef14908c0dbf4116 [weak]
- Filesize:68668 [weak]
Last modification reported: Fri, 13 Dec 2019 01:35:23 +0000
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
I've sent out a ticket and mail, waiting for acknowledgement from the repo admins.
Same issue, looks like this same/similar type of issue has happened multiple times now, what's going on and how can this be prevented in the future?
Check out https://github.com/dotnet/core/issues/2731 for more on the situation with this service.
Is .NET Core not recommended for production workloads?
We're aware these outages have significant impact on a lot of people, and do our best to make sure issues are being resolved. We support installing from the Microsoft Linux repos, and it's a good way to keep a machine up to date on .NET Core since it works with ordinary apt upgrade/yum update/etc.
I will mention, though, there are other ways to get .NET Core that might be a better fit depending on how you run .NET Core in production. See linux-setup.md, or you might also be interested in the .NET Core Docker images.
This is quite embarrassing for Microsoft really. Doing proper repository updates is not that difficult.
similar issue at Ubuntu 18.04.3
Err:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 3,959 B in 1s (6,081 B/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Facing this in 16.04 as well
W: GPG error: https://packages.microsoft.com/repos/azurecore xenial InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY B02C46DF417A0893
W: The repository 'https://packages.microsoft.com/repos/azurecore xenial InRelease' is not signed.
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.bz2 Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Same Issue Here
Err:7 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 13.9 1.48.226 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a7 8282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 246 kB in 1s (183 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/19.04/prod di sco InRelease (expected disco but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/19.04/prod/dists/disco/ main/binary-amd64/Packages.bz2 File has unexpected size (23655 != 156065). Mirr or sync in progress? [IP: 13.91.48.226 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a 78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Facing this in 18.04. Broke our ansible server.
$ sudo apt update
Hit:1 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:3 http://ap-southeast-1.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3959 B]
Hit:5 http://ppa.launchpad.net/ansible/ansible/ubuntu bionic InRelease
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Hit:6 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]
Err:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.76.190.189 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 78.5 kB in 2s (50.5 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.76.190.189 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Same issue for ubuntu 16.04
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
The command '/bin/sh -c apt-get update -qq' returned a non-zero code: 100
Same issue on ubuntu18.04
Ign:1 http://dl.google.com/linux/chrome/deb stable InRelease
Get:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3,959 B]
Hit:3 http://dl.google.com/linux/chrome/deb stable Release
Hit:4 https://packages.microsoft.com/repos/ms-teams stable InRelease
Hit:5 https://download.docker.com/linux/ubuntu bionic InRelease
Get:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]
Err:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Hit:7 http://apt.postgresql.org/pub/repos/apt bionic-pgdg InRelease
Hit:8 http://repo.mysql.com/apt/ubuntu bionic InRelease
Hit:9 http://ppa.launchpad.net/linuxuprising/java/ubuntu bionic InRelease
Hit:11 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:12 https://www.charlesproxy.com/packages/apt charles-proxy InRelease
Hit:13 https://download.mono-project.com/repo/ubuntu stable-bionic InRelease
Get:14 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:15 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:16 http://archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Fetched 256 kB in 2s (109 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.75.127.55 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Doing apt instead of apt-get it will ask to accept the changes but the next issue is the file size doesnt match:
File has unexpected size (84552 != 156065). Mirror sync in progress?
My mssql odbc driver on Databricks Cluster (Ubuntu 16.04) is working fine till last night. This morning I started my cluster again to see it can no longer be installed. I found that there was an updated last night to the repository link. I'm not sure if my issue also falls under the same category. but below's my log.
url https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
sudo apt-get update
sudo ACCEPT_EULA=Y apt-get -q -y install msodbcsql17
Error Log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 79 100 79 0 0 567 0 --:--:-- --:--:-- --:--:-- 568
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [166 kB]
Err:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hash Sum mismatch
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 339 kB in 0s (575 kB/s)
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package msodbcsql17
Got this on Debian 10 after doing an 'apt update':
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Origin' value from 'microsoft-debian-buster-prod buster' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Label' value from 'microsoft-debian-buster-prod buster' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Suite' value from 'buster' to 'stable'
E: Repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' changed its 'Codename' value from 'buster' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]
Seems like they mixed up the repos for vscode and .netcore somehow?
Same Issue Here:
Err:12 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages
File has unexpected size (156354 != 156065). Mirror sync in progress? [IP: 13.74.252.37 80]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N] y
Get:14 http://us.archive.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:15 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]
Err:15 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.74.252.37 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 181 kB in 24s (7,602 B/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (156354 != 156065). Mirror sync in progress? [IP: 13.74.252.37 80]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (84552 != 156065). Mirror sync in progress? [IP: 13.74.252.37 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
@OlliC Sure looks like it. Here are the first few lines of https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod/dists/bionic/InRelease:
$ curl https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod/dists/bionic/InRelease | head -n 10
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 3959 100 3959 0 0 60907 0 --:--:-- --:--:-- --:--:-- 60907
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Origin: vscode stable
Label: vscode stable
Suite: stable
Codename: stable
Date: Thu, 12 Dec 2019 19:59:19 UTC
Architectures: amd64
Components: main
This seems to impact at least:
This happens to 16.04 too (I guess for other the same). It is quite unpleasant, since it breaks any provisionings requiring dotnet repository as a dependency.
Same issue here:
Err:10 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages
File has unexpected size (156354 != 156065). Mirror sync in progress? [IP: 13.80.10.205 80]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Hit:1 http://azure.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://azure.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:3 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease [3959 B]
Get:4 http://azure.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Get:6 http://azure.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages [8570 kB]
Get:7 http://azure.archive.ubuntu.com/ubuntu bionic/universe Translation-en [4941 kB]
Get:8 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages [156 kB]
Err:8 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Get:9 http://azure.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages [151 kB]
Get:10 http://azure.archive.ubuntu.com/ubuntu bionic/multiverse Translation-en [108 kB]
Get:11 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main amd64 Packages [817 kB]
Get:12 http://azure.archive.ubuntu.com/ubuntu bionic-updates/main Translation-en [288 kB]
Get:13 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted amd64 Packages [24.1 kB]
Get:14 http://azure.archive.ubuntu.com/ubuntu bionic-updates/restricted Translation-en [6620 B]
Get:15 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages [1033 kB]
Get:16 http://azure.archive.ubuntu.com/ubuntu bionic-updates/universe Translation-en [319 kB]
Get:17 http://azure.archive.ubuntu.com/ubuntu bionic-updates/multiverse amd64 Packages [9284 B]
Get:18 http://azure.archive.ubuntu.com/ubuntu bionic-updates/multiverse Translation-en [4508 B]
Get:19 http://azure.archive.ubuntu.com/ubuntu bionic-backports/main amd64 Packages [2512 B]
Get:20 http://azure.archive.ubuntu.com/ubuntu bionic-backports/main Translation-en [1644 B]
Get:21 http://azure.archive.ubuntu.com/ubuntu bionic-backports/universe amd64 Packages [4028 B]
Get:22 http://azure.archive.ubuntu.com/ubuntu bionic-backports/universe Translation-en [1856 B]
Get:23 http://security.ubuntu.com/ubuntu bionic-security/main amd64 Packages [593 kB]
Get:24 http://security.ubuntu.com/ubuntu bionic-security/main Translation-en [194 kB]
Get:25 http://security.ubuntu.com/ubuntu bionic-security/restricted amd64 Packages [15.1 kB]
Get:26 http://security.ubuntu.com/ubuntu bionic-security/restricted Translation-en [4684 B]
Get:27 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages [627 kB]
Get:28 http://security.ubuntu.com/ubuntu bionic-security/universe Translation-en [210 kB]
Get:29 http://security.ubuntu.com/ubuntu bionic-security/multiverse amd64 Packages [6120 B]
Get:30 http://security.ubuntu.com/ubuntu bionic-security/multiverse Translation-en [2600 B]
Fetched 18.2 MB in 4s (4124 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease (expected disco but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/19.04/prod/dists/disco/main/binary-amd64/Packages.bz2 File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead`
Not working on ubuntu 19.04 azure vm
Facing the same issue here for Ubuntu 16.04 during install .NET core runtime 2.2
qingh@15554221bccd4fc58675ae85a8e7da15000001:~$ sudo apt-get -y update && sudo apt-get install -y aspnetcore-runtime-2.2
Get:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48 InRelease
Ign:1 file:/var/cuda-repo-10-0-local-10.0.130-410.48 InRelease
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48 Release [574 B]
Hit:3 http://azure.archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://azure.archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:2 file:/var/cuda-repo-10-0-local-10.0.130-410.48 Release [574 B]
Hit:5 http://azure.archive.ubuntu.com/ubuntu xenial-backports InRelease
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Hit:8 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu xenial InRelease
Get:9 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease [3,959 B]
Get:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [156 kB]
Err:10 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hash Sum mismatch
Fetched 114 kB in 0s (214 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.bz2 Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
I'm getting the same issue as OlliC on Ubuntu 18.04, multiple machines:
$ sudo apt update
...
Get:5 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3 959 B]
...
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Origin' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Label' value from 'microsoft-ubuntu-bionic-prod bionic' to 'vscode stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Suite' value from 'bionic' to 'stable'
E: Repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' changed its 'Codename' value from 'bionic' to 'stable'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.
Do you want to accept these changes and continue updating from this repository? [y/N]
Fetched 3 727 kB in 3s (1 235 kB/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease (expected bionic but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/InRelease
E: Some index files failed to download. They have been ignored, or old ones used instead.
$ echo $?
100
As has already been pointed out, Microsoft's APT repositories have been broken multiple times before and this has a large impact on many people. It's not only people trying to install .NET Core, either, but anyone running apt update as part of a script that does other things - which may be completely unrelated - is affected. I don't want to entirely ignore errors from apt update, but it doesn't provide a way to ignore errors for Microsoft's repositories only.
Does Microsoft not have any automated tests or monitoring at all for this stuff?
Hit:1 http://np.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://np.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://np.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:4 http://repo.mysql.com/apt/ubuntu bionic InRelease [19.4 kB]
Ign:5 http://dl.google.com/linux/chrome/deb stable InRelease
Hit:6 http://ppa.launchpad.net/graphics-drivers/ppa/ubuntu bionic InRelease
Hit:7 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:8 https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease [3,959 B]
Hit:9 http://dl.google.com/linux/chrome/deb stable Release
Hit:10 http://ppa.launchpad.net/ondrej/php/ubuntu bionic InRelease
Get:13 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages [156 kB]
Err:13 https://packages.microsoft.com/ubuntu/19.04/prod disco/main amd64 Packages
File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 13.76.190.189 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Hit:11 https://packagecloud.io/slacktechnologies/slack/debian jessie InRelease
Fetched 19.4 kB in 3s (5,902 B/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/ubuntu/19.04/prod disco InRelease (expected disco but got stable)
E: Failed to fetch https://packages.microsoft.com/ubuntu/19.04/prod/dists/disco/main/binary-amd64/Packages.bz2 File has unexpected size (23655 != 156065). Mirror sync in progress? [IP: 13.76.190.189 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
At least the InRelease file is borked. It contains reference to VSCode as seen by:
`Origin: vscode stable
Label: vscode stable
Suite: stable
Codename: stable
Date: Thu, 12 Dec 2019 19:59:19 UTC
Architectures: amd64
Components: main
Description: Generated by aptly`
facing the same issue .. :(
Hit:1 http://azure.archive.ubuntu.com/ubuntu xenial InRelease
Hit:2 http://azure.archive.ubuntu.com/ubuntu xenial-updates InRelease
Hit:3 http://azure.archive.ubuntu.com/ubuntu xenial-backports InRelease
Get:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [156 kB]
Err:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hash Sum mismatch
Hit:6 http://security.ubuntu.com/ubuntu xenial-security InRelease
Fetched 110 kB in 0s (205 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.bz2 Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
#
Debian 10
Err:9 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages
File has unexpected size (18556 != 156065). Mirror sync in progress? [IP:]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
Fetched 3,959 B in 1s (5,032 B/s)
Reading package lists... Done
W: Conflicting distribution: https://packages.microsoft.com/debian/10/prod buster InRelease (expected buster but got stable)
N: Skipping acquire of configured file 'main/binary-armhf/Packages' as repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' doesn't support architecture 'armhf'
N: Skipping acquire of configured file 'main/binary-arm64/Packages' as repository 'https://packages.microsoft.com/debian/10/prod buster InRelease' doesn't support architecture 'arm64'
E: Failed to fetch https://packages.microsoft.com/debian/10/prod/dists/buster/main/binary-amd64/Packages.bz2 File has unexpected size (18556 != 156065). Mirror sync in progress? [IP: 13.80.10.205 443]
Hashes of expected file:
- Filesize:156065 [weak]
- SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b
- SHA256:c850f35f1979831ac75641978c397e51519fa22313598ec12bde5f52277044c0
- SHA1:1f65f4a7388c22bcf7b7f30fb7bc337c60d94b2e [weak]
- MD5Sum:4153a12e4a5629bfb14ed98f4c8ac234 [weak]
Release file created at: Thu, 12 Dec 2019 19:59:19 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.
Same issue here running on Windows 10, docker for linux and trying to use "mcr.microsoft.com/mssql/server:2017-latest"
Step 1/12 : FROM mcr.microsoft.com/mssql/server:2017-latest
---> a4b86c4000e7
Step 2/12 : RUN apt-get clean && apt-get update
---> Running in 4c3d7e6d1807
Get:1 http://archive.ubuntu.com/ubuntu xenial InRelease [247 kB]
Get:2 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Get:3 https://packages.microsoft.com/ubuntu/16.04/prod xenial InRelease [3959 B]
Get:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease [109 kB]
Get:5 http://security.ubuntu.com/ubuntu xenial-security/universe Sources [141 kB]
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Get:7 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [166 kB]
Get:8 http://security.ubuntu.com/ubuntu xenial-security/main amd64 Packages [1019 kB]
Err:7 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hash Sum mismatch
Get:9 http://archive.ubuntu.com/ubuntu xenial/universe Sources [9802 kB]
Get:10 http://security.ubuntu.com/ubuntu xenial-security/restricted amd64 Packages [12.7 kB]
Get:11 http://security.ubuntu.com/ubuntu xenial-security/universe amd64 Packages [593 kB]
Get:12 http://security.ubuntu.com/ubuntu xenial-security/multiverse amd64 Packages [6280 B]
Get:13 http://archive.ubuntu.com/ubuntu xenial/main amd64 Packages [1558 kB]
Get:14 http://archive.ubuntu.com/ubuntu xenial/restricted amd64 Packages [14.1 kB]
Get:15 http://archive.ubuntu.com/ubuntu xenial/universe amd64 Packages [9827 kB]
Get:16 http://archive.ubuntu.com/ubuntu xenial/multiverse amd64 Packages [176 kB]
Get:17 http://archive.ubuntu.com/ubuntu xenial-updates/universe Sources [332 kB]
Get:18 http://archive.ubuntu.com/ubuntu xenial-updates/main amd64 Packages [1396 kB]
Get:19 http://archive.ubuntu.com/ubuntu xenial-updates/restricted amd64 Packages [13.1 kB]
Get:20 http://archive.ubuntu.com/ubuntu xenial-updates/universe amd64 Packages [996 kB]
Get:21 http://archive.ubuntu.com/ubuntu xenial-updates/multiverse amd64 Packages [19.3 kB]
Get:22 http://archive.ubuntu.com/ubuntu xenial-backports/main amd64 Packages [7942 B]
Get:23 http://archive.ubuntu.com/ubuntu xenial-backports/universe amd64 Packages [8807 B]
Fetched 26.6 MB in 10s (2626 kB/s)
Reading package lists...
[91mE: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Service 'databasedx' failed to build: The command '/bin/sh -c apt-get clean && apt-get update' returned a non-zero code: 100
[0m
A non-critical error occurred while getting containers ready. Your project will continue to function normally. The error was: Service 'databasedx' failed to build: The command '/bin/sh -c apt-get clean && apt-get update' returned a non-zero code: 100
when will this be fixed?
That's why you don't let interns play with production servers.
Interestingly enough, only the InRelease file for Debian 10 seems to be broken. The Release file has the correct file size (didn't check the hashes but they also agree on the file size).
This fixes it temporially for me:
https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/m-p/41138#M4501
That's why you don't let interns play with production servers.
Interestingly enough, only the InRelease file for Debian 10 seems to be broken. The Release file has the correct file size (didn't check the hashes but they also agree on the file size).
Same as I stated for Ubuntu a few posts above. It looks like someone replaced the wrong file. Perhaps a VSCode intern with a too long leash?
This fixes it temporially for me:
https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/m-p/41138#M4501
This did the job for me as well.
Someones wrong Production release affected to my Production release today.
Friday 13th...
Same here. Friday 13th :)
This fixes it temporially for me:
https://github.community/t5/GitHub-Actions/ubuntu-latest-Apt-repository-list-issues/m-p/41138#M4501
It doesn't FIX the problem - it removes .net core and other Microsoft techologies from the update management, leaving you with a stale system (or even an inconsistent one if some packages dependant on .NET get updated without the Microsoft tech being updated).
Microsoft NEEDS to address this - it's not the first time (see similar issue from -Aug- Apr 21.)
Seems to happen regularily:
20 Nov: #3851
21 Apr: #3226 #3224 #3222 #3221
19 Jul: #3052
15 May: #2608
That results in a service level of ~99%. Which is just piss poor for a Billion dollar company.
@BrianStone There's a bunch more: https://github.com/dotnet/core/search?p=2&q=packages.microsoft.com&type=Issues .
Even worse then.
Is it with this core project that we file an issue for repository issues? Seems everyone is having issues with the repository (https://packages.microsoft.com) after its release update yesterday at 8 pm .
https://stackoverflow.com/questions/59316620/cloud-foundry-hosting-on-ubuntu-fails/59321059#59321059
This is quite embarrassing for Microsoft really. Doing proper repository updates is not that difficult.
@niklasholm Microsoft lack the capacity for shame and embarrassment based on our engagements with them. Do better, folks, this just isn't good enough.
This is the second strike against dotnet core on Ubuntu this month for my team, with the kernel 5.0.0 + dotnet-core problems being the first.
My mssql odbc driver on Databricks Cluster (Ubuntu 16.04) is working fine till last night. This morning I started my cluster again to see it can no longer be installed. I found that there was an updated last night to the repository link. I'm not sure if my issue also falls under the same category. but below's my log.
url https://packages.microsoft.com/keys/microsoft.asc | apt-key add - curl https://packages.microsoft.com/config/ubuntu/16.04/prod.list > /etc/apt/sources.list.d/mssql-release.list sudo apt-get update sudo ACCEPT_EULA=Y apt-get -q -y install msodbcsql17Error Log
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 79 100 79 0 0 567 0 --:--:-- --:--:-- --:--:-- 568
Get:1 http://security.ubuntu.com/ubuntu xenial-security InRelease [109 kB]
Hit:3 http://archive.ubuntu.com/ubuntu xenial InRelease
Hit:4 http://archive.ubuntu.com/ubuntu xenial-updates InRelease
Get:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages [166 kB]
Err:5 https://packages.microsoft.com/ubuntu/16.04/prod xenial/main amd64 Packages
Hash Sum mismatch
Get:6 http://archive.ubuntu.com/ubuntu xenial-backports InRelease [107 kB]
Fetched 339 kB in 0s (575 kB/s)
Reading package lists...
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.gz Hash Sum mismatch
E: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package msodbcsql17
Exactly the same thing is happening to us. Can't install the package with the exact same hash error. But then again the problem is the repository...
I've sent out a ticket and mail, waiting for acknowledgement from the repo admins.
Update: they are now working on it. Unfortunately no ETA.
Update: they are now working on it
Some high speed fixes here
This is not the first time. Where's the regression/smoke tests? It only needs a couple of calls to test it, surely?
This is not the first time. Where's the regression/smoke tests? It only needs a couple of calls to test it, surely?
It's Microsoft.
Same for me: Ubuntu 18.04, 18.10, 19.04 all broken.
Yeah, I'm on debian 10 and trying to do a fresh install and getting the same problem.
In my case since it is a fresh install leaving it stale is not a work around. I literally can't do what I'm needing to do until I can install dotnet core sdk.
@CrossBound As an alternative, you can manually download the various packages with wget and install them using dpkg, e.g.
wget https://packages.microsoft.com/repos/microsoft-ubuntu-bionic-prod/pool/main/d/dotnet-sdk-3.1/dotnet-sdk-3.1.100-x64.deb
dpkg -i dotnet-sdk-3.1/dotnet-sdk-3.1.100-x64.deb
You'd need to do that for the various packages (runtime, runtime-deps, hostfx,...), but it should at least unblock you.
Looking forward to the day Debian/Ubuntu natively ship a version of .NET Core 😄 .
a way to install msodbcsql17, and other packages in this repo:
curl https://packages.microsoft.com/debian/10/prod/pool/main/m/msodbcsql17/msodbcsql17_17.4.2.1-1_amd64.deb \
-o /tmp/msodbcsql17.deb && \
ACCEPT_EULA=Y dpkg -i /tmp/msodbcsql17.deb
I posted an update on https://github.com/dotnet/core/issues/3995, also copying here FYI:
I just got an update from the Linux repo admins that they've reverted the recent service changes that caused this problem in the first place, and they're now working on fixing up the individual repos so that they're available again.
Looks like the issue is now fixed :)
Get:8 https://packages.microsoft.com/ubuntu/19.10/prod eoan InRelease [10.5 kB]
!!!
Can confirm it's also working on my end as well
Ubuntu 16.04 (Local pc) - working
Debian 10 (Docker container) - not working
still waiting...
Working in my Debian Buster containers now.
Good to hear that it's starting to work! The repo admins report that the metadata should be fixed for all the feeds we've seen affected by this. I'm also getting success on my machine for Ubuntu 19.04 and Debian 9. I'm in contact directly with one of the devs who is working on Debian 10 now, and they'll then refresh all the Debian package feeds to make sure none are missed.
Working in my Debian Buster containers now.
Right now:
Err:5 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages
Working in my Debian Buster containers now.
Right now:
Err:5 https://packages.microsoft.com/debian/10/prod buster/main amd64 Packages
I will run a fresh build again to see if it works. I'm using moodlehq/moodle-php-apache:7.4-buster and php:7.3-apache-buster which both are on buster and were failing a bit ago. I'll tell you my results @Morgan-iv when the build is done running.
Working on Travis CI, Ubuntu 18.04
This is working for me on Debian 10 (Buster) now
Same, working on Debian 10 (Buster) in Docker
Same, working on Debian 10 (Buster) in Docker
My fresh build is still running but I'm glad it is working for you too now. @Morgan-iv!
Working on my side. Oh blessed day :clap:
Still have an issue here. sudo apt-get update works fine, but sudo apt-get install dotnet-sdk-3.0 tells me it can't find the package
Still have an issue here.
sudo apt-get updateworks fine, butsudo apt-get install dotnet-sdk-3.0tells me it can't find the package
You can try solutions from this comments as temporary fix:
https://github.com/dotnet/core/issues/3988#issuecomment-565524036
https://github.com/dotnet/core/issues/3988#issuecomment-565527310
@Remorc a few possibilities come to mind:
Did you apply a sudo rm -f ... workaround linked earlier in the thread? This actually removes the Microsoft feed altogether, so apt-get update may succeed but the install will then fail because your client doesn't know about the feed anymore. The "Troubleshoot the package manager" steps on the repo install page should help you get set back up: https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1904. (Make sure to select your distro at the top of the page.)
Are you trying to install on a non-x64 device? The repo only has packages for x86-64 at the moment, so you need to install a different way to get .NET Core for other architectures. (https://dotnet.microsoft.com/download/dotnet-core/3.1)
If that doesn't help, please file a new issue so we can properly look into it, and please include the apt update logs if you can. Thanks!
@dagood Thank you for this information! Unfortunately, I was attempting to install on a non-x64 device
@Remorc Thanks for confirming. I noticed the new site isn't as clear as the old one about this, so I filed https://github.com/dotnet/docs/issues/16245 to get that corrected.
It looks like this has been resolved! Expect additional followup later at https://github.com/dotnet/core/issues/3995, but for now I'm closing this issue because the install errors should be fixed. Please do let us know if you still see this, or see it again.
Similar issue here as well: (Ubuntu 16.04)
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages.bz2 Hash Sum mismatch
@seraphire That build ran before this was fixed, have you hit it more recently?
@The-real-Urb I can't quite figure out what the error is in there. I don't see anything that ties it to this issue based on the logs. Can you open a new issue, and include info about mspackages.sh? A few things I'm interested in are the the goal of the script, and which error message(s) seem like a problem on our end. (Also, I edited your comment to put the logs in a <details> block, they are quite long to scroll through! Hope you don't mind.)
@The-real-Urb I can't quite figure out what the error is in there. I don't see anything that ties it to this issue based on the logs. Can you open a new issue, and include info about
mspackages.sh? A few things I'm interested in are the the goal of the script, and which error message(s) seem like a problem on our end. (Also, I edited your comment to put the logs in a<details>block, they are quite long to scroll through! Hope you don't mind.)
@dagood , never mind, I tried to download a non existing version...
I can't install on Ubuntu 16.04
E: Failed to fetch https://packages.microsoft.com/ubuntu/16.04/prod/dists/xenial/main/binary-amd64/Packages Writing more data than expected (622228 > 606754)
@marlonchalegre: see https://github.com/dotnet/core/issues/4122
Most helpful comment
Same issue, looks like this same/similar type of issue has happened multiple times now, what's going on and how can this be prevented in the future? Is .NET Core not recommended for production workloads?
Thanks!
https://github.com/microsoft/vscode/issues/41094
https://github.com/dotnet/core/issues/3221
https://answers.microsoft.com/en-us/skype/forum/all/skypeforlinux-file-has-unexpected-size-2248-2466/433d5ea9-276e-427f-82b0-97dffa9cd32f
https://answers.microsoft.com/en-us/skype/forum/all/file-has-unexpected-size-2248-2456-mirror-sync-in/4958ccb9-a5d9-4799-a567-dbbff46c347f