Core: Ubuntu dotnet install fails with "File has unexpected size"

Created on 21 Aug 2019  路  41Comments  路  Source: dotnet/core

Problem encountered on https://dotnet.microsoft.com/download/linux-package-manager/ubuntu18-04/sdk-current
Operating System: Linux Ubuntu 18.04 - x64

There is something unhappy about the supplied packages-microsoft-prod.deb. I'm sure it was working a few hours ago. I can reproduce it in a docker container. Maybe I just need to wait for a CDN somewhere to update.

$ docker run -it --rm ubuntu:18.04
# apt update ; apt install wget
# wget -q https://packages.microsoft.com/config/ubuntu/18.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
# md5sum packages-microsoft-prod.deb
a743911ec6ef33668b61c51947d87ecb  packages-microsoft-prod.deb
# dpkg -i packages-microsoft-prod.deb
# apt update
Get:1 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3226 B]
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [72.5 kB]
Err:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (72463 != 72485). Mirror sync in progress? [IP: 13.91.48.226 443]
  Hashes of expected file:
   - Filesize:72485 [weak]
   - SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9
   - SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54
   - SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]
   - MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]
  Release file created at: Tue, 20 Aug 2019 22:43:21 +0000

Most helpful comment

Is there any fallback to this, or workaround? Any old(er) archive(s) we can point to?

All 41 comments

Me too, it seems:

```$ sudo apt-get update
Hit:1 http://security.ubuntu.com/ubuntu bionic-security InRelease
Get:2 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3226 B]
Hit:3 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:4 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [66.6 kB]
Err:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:

  • Filesize:66619 [weak]
  • SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
  • SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
  • SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
  • MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
    Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
    Fetched 3226 B in 3s (1027 B/s)```

This was reported over at https://github.com/dotnet/core-setup/issues/7778 as well, and I see it on my machine too. Not closing the issue though--I think it will useful to have this issue active as a signpost for others hitting it until we can get in contact with the repo admins to fix it. /cc @leecow

I also encountered this problem.

Ditto; here's the file info and server IP, in case it helps. Or, even if it doesn't, LOL!

Err:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 13.91.48.226 443]
  Hashes of expected file:
   - Filesize:66619 [weak]
   - SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
   - SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
   - SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
   - MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
  Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
Fetched 255 kB in 1s (342 kB/s)
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 13.91.48.226 443]
   Hashes of expected file:
    - Filesize:66619 [weak]
    - SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
    - SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
    - SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
    - MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
   Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2

This is the problem file it's expecting it to be 66619 instead it's 66537

Screenshot from 2019-08-21 01-06-56

Note that the same problem happened before on other Microsoft Debian repositories: https://github.com/microsoft/vscode/issues/66238

Is there any fallback to this, or workaround? Any old(er) archive(s) we can point to?

How can this be escalated to the appropriate team?

I am experiencing this also.

Hit:1 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu bionic InRelease
Get:2 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]                                                                    
Get:3 http://eu-west-2.ec2.archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]                                                                             
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3226 B]                                                    
Hit:5 http://security.ubuntu.com/ubuntu bionic-security InRelease                                      
Get:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [66.6 kB]
Err:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 13.80.10.205 443]
  Hashes of expected file:
   - Filesize:66619 [weak]
   - SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
   - SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
   - SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
   - MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
  Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
Fetched 163 kB in 0s (364 kB/s)                    
Reading package lists... Done
E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2  File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 13.80.10.205 443]
   Hashes of expected file:
    - Filesize:66619 [weak]
    - SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
    - SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
    - SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
    - MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
   Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Having the same problem.

Same issue here:

Get:8 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [72.5 kB]
Err:8 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
  File has unexpected size (72463 != 72485). Mirror sync in progress? [IP: 13.80.10.205 443]
  Hashes of expected file:
   - Filesize:72485 [weak]
   - SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9
   - SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54
   - SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]
   - MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]
  Release file created at: Tue, 20 Aug 2019 22:43:21 +0000

I've the same problem :(

Holen:22 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [66,6 kB]
Fehl:22 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
Datei hat eine unerwartete Gr枚脽e (66537 != 66619). Eventuell l盲uft gerade eine Spiegel-Synchronisierung? [IP: 13.80.10.205 443]
Hashes of expected file:

  • Filesize:66619 [weak]
  • SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
  • SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
  • SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
  • MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
    Release file created at: Tue, 20 Aug 2019 22:43:21 +0000

This should take no more than 1 minute to fix, are the admins asleep?

same issue here:

E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.gz File has unexpected size (72463 != 72485). Mirror sync in progress? [IP: 13.80.10.205 443]
Hashes of expected file:
- Filesize:72485 [weak]
- SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9
- SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54
- SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]
- MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]
Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

My reluctant workaround for my DockerFile is going to Ubuntu 19.04 , which means:

https://packages.microsoft.com/config/ubuntu/19.04/prod.list

I appreciate this is not really relevant/applicable to most/all, but got me out of a hole.

Fine, problems occur, but, if they're this critical, surely someone should have a 'runbook' of sorts for this kind of thing?

My reluctant workaround for my DockerFile is going to Ubuntu 19.04 , which means:

https://packages.microsoft.com/config/ubuntu/19.04/prod.list

I appreciate this is not really relevant/applicable to most/all, but got me out of a hole.

Fine, problems occur, but, if they're this critical, surely someone should have a 'runbook' of sorts for this kind of thing?

yes, change them to 19.04 can temporarily fix this problem. thanks!

Workaround:

Manually download the binary https://dotnet.microsoft.com/download/dotnet-core/3.0
ASP.NET Core Binaries: x64 on Ubuntu 18.04 in my case.

Copy the content into a folder on your machine, I use /home/dotnet
then run:

sudo cp -a ./dotnet/. /usr/share/dotnet/
sudo chmod +x /usr/share/dotnet/
sudo ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
sudo chmod +x /usr/bin/dotnet

dotnet --info

It was not possible to find any installed .NET Core SDKs
Did you mean to run .NET Core SDK commands? Install a .NET Core SDK from:
https://aka.ms/dotnet-download
Host (useful for support):
Version: 3.0.0-preview8-28405-07
Commit: d01b2fb7bc

.NET Core SDKs installed:
No SDKs were found.

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.0.0-preview8.19405.7 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.0.0-preview8-28405-07 [/usr/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

wtf, same issue

Step 7/16 : RUN cd /usr/src/gtest/ && cmake . && make && cp *.a /usr/lib
---> Using cache
---> 312a281e5c9d
Step 8/16 : RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
---> Using cache
---> 32b41bd6d8a9
Step 9/16 : RUN curl https://packages.microsoft.com/config/ubuntu/18.04/prod.list > /etc/apt/sources.list.d/mssql-release.list
---> Using cache
---> fc3ad477ce2d
Step 10/16 : RUN apt-get update
---> Running in dbb164bc08c0
Get:1 http://security.ubuntu.com/ubuntu bionic-security InRelease [88.7 kB]
Hit:2 http://archive.ubuntu.com/ubuntu bionic InRelease
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease [88.7 kB]
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3226 B]
Get:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease [74.6 kB]
Hit:6 http://archive.canonical.com/ubuntu bionic InRelease
Get:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [72.5 kB]
Err:7 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (72463 != 72485). Mirror sync in progress? [IP: 13.80.10.205 443]
Hashes of expected file:

  • Filesize:72485 [weak]
  • SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9
  • SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54
  • SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]
  • MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]
    Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
    Fetched 255 kB in 2s (125 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 (72463 != 72485). Mirror sync in progress? [IP: 13.80.10.205 443]
    Hashes of expected file:

    • Filesize:72485 [weak]

    • SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9

    • SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54

    • SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]

    • MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]

      Release file created at: Tue, 20 Aug 2019 22:43:21 +0000

      E: Some index files failed to download. They have been ignored, or old ones used instead.

Glad to see I am not the only one with this issue lol. Hopefully Microsoft fixes it pretty soon.

Ah - this impacted me the first time I was testing an Ansible playbook last night (like 10 hours ago) so I figured I did something wrong. Good to see that other people are having the same issue.

Same, E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2 File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:
- Filesize:66619 [weak]
- SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
- SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
- SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
- MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

I have the same error:
Err:3 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (66537 != 66619). Mirror sync in progress? [IP: 13.76.190.189 443]
Hashes of expected file:

  • Filesize:66619 [weak]
    SHA512:4754fea65f57f35fc52e332a6d5cddaf65ea00bbd9e9f428d3a4325c1ac26856190ae82022cdb7a41bf1337e5c7fb1a429933bae9817bacaa8a5186c2aae9f1b
  • SHA256:f971467de90380c9920956be80642d7f6eb0e75042822ea4537d9f5190e13d9f
  • SHA1:0f8e0e8ac649a20ef2029c9f4ffc6bc1ef559257 [weak]
  • MD5Sum:8aa7d0d41b74ea8b84a434a726ea92fa [weak]
    Release file created at: Tue, 20 Aug 2019 22:43:21 +0000

How to fix it?

The only workaround for now is to use the 19.04 ubuntu repo :

https://dotnet.microsoft.com/download/linux-package-manager/ubuntu19-04/sdk-current

wget -q https://packages.microsoft.com/config/ubuntu/19.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb
sudo apt-get install apt-transport-https
sudo apt-get update
sudo apt-get install dotnet-sdk-2.2

And you can change the version 2.2 by your version

Any idea when they are going to fix this. Changing to 19.04 on a whim is not just so easy a prospect in every project. I've got a base docker container half a mile deep with installed dependencies that im trying to add dotnet core to for running unit tests on my project.

It's being escalated with the right team already - see above: https://github.com/dotnet/core/issues/3221#issuecomment-523269780

It was reported last night, so yes, most right people were asleep so far. Stay tuned.

root@1f19ded7ad77:/# apt-get update
Hit:1 http://archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://security.ubuntu.com/ubuntu bionic-security InRelease
Hit:3 http://archive.ubuntu.com/ubuntu bionic-updates InRelease
Get:4 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3226 B]
Hit:5 http://archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [72.5 kB]
Err:6 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (72463 != 72485). Mirror sync in progress? [IP: 40.76.35.62 443]
Hashes of expected file:

  • Filesize:72485 [weak]
  • SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9
  • SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54
  • SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]
  • MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]
    Release file created at: Tue, 20 Aug 2019 22:43:21 +0000
    Reading package lists... Done
    E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.gz File has unexpected size (72463 != 72485). Mirror sync in progress? [IP: 40.76.35.62 443]
    Hashes of expected file:

    • Filesize:72485 [weak]

    • SHA512:c26c6c86803325466bd742789acc9e54a745d045a6b3af1ce26d34e98c9a4904c6873db0cc9b2be7f99385ef6e6237f6e5cd6776fe6c0a1737cae2a67f8566f9

    • SHA256:3fe8d8513549a43d26d917287a5a832d0c577ee62ac37b1daae5aade614dff54

    • SHA1:e2a5cc1ecb44c77caa98eebac08b9d9f4b1e8215 [weak]

    • MD5Sum:30a55059e4b9ef8d02cca7e7acc01cdb [weak]

      Release file created at: Tue, 20 Aug 2019 22:43:21 +0000

      E: Some index files failed to download. They have been ignored, or old ones used instead.

I sent the repo admins a high-pri mail about this issue, we will hopefully have more info soon.

About pointing an 18.04 distro at the the 19.04 Microsoft repository as a workaround: we publish the same Debian packages to the 18.04 and 19.04 repositories because the dependencies are flexible, so this workaround should still get you a working .NET Core until this is fixed.

It works now, thanks.

The repo owners confirmed they've fixed this now.

it works now! :)

The same problem is here now, started today:

E: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.gz Hash Sum mismatch

...                               
Get:13 http://packages.microsoft.com/repos/vscode stable InRelease [3.959 B]                           
Get:14 https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease [3.959 B]                     
Get:16 http://packages.microsoft.com/repos/vscode stable/main amd64 Packages [156 kB]
Err:16 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
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:17 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]            
Err:17 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages                     
  File has unexpected size (84552 != 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
Fetched 88,7 kB in 17s (5.116 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.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
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.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 problem here started a couple of days ago.

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
Some index files failed to download. They have been ignored, or old ones used instead.

It's broken again with me also

Similar issue on ubuntu packages.

Get:22 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]
Err:22 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages
File has unexpected size (84552 != 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

Fetched 18.2 MB in 5s (3700 kB/s)
Reading package lists...
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.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 here, except this also occurred:

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:25 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [156 kB]                                           
Err:25 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages                                         
  File has unexpected size (84552 != 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
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: 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: Failed to fetch https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/Contents-amd64.gz  
E: Some index files failed to download. They have been ignored, or old ones used instead.
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.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.

Ubuntu 19.04 same problem. Yesterday it was fine

All MS repo's seem to be affected. Getting same error for vscode, msodbc on ubuntu 19.10

The current outage is being tracked at https://github.com/dotnet/core/issues/3988.

I'm going to lock this thread as resolved: I encourage everyone seeing this in the future to file new issues rather than add comments to this one. Because the issue is closed, new comments might not be seen by the right people in the future. A new issue is more likely to get noticed. There's nothing wrong with posting relevant comments to old issues, but I want to make sure outages are seen as soon as possible. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mmacneil picture mmacneil  路  3Comments

Luis-DdlFG picture Luis-DdlFG  路  3Comments

shanselman picture shanselman  路  3Comments

rykr picture rykr  路  3Comments

swapnild2111 picture swapnild2111  路  3Comments