Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu dotnet install fails with "File has unexpected size" #3221

Closed
russau opened this issue Aug 21, 2019 · 41 comments
Closed

Ubuntu dotnet install fails with "File has unexpected size" #3221

russau opened this issue Aug 21, 2019 · 41 comments

Comments

@russau
Copy link

russau commented Aug 21, 2019

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
@robertmaxton42
Copy link

robertmaxton42 commented Aug 21, 2019

Me too, it seems:

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

@dagood
Copy link
Member

dagood commented Aug 21, 2019

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

@zhengyiqun
Copy link

I also encountered this problem.

@mikeblas
Copy link

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.

@DemonRx
Copy link

DemonRx commented Aug 21, 2019

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

@leosongwei
Copy link

leosongwei commented Aug 21, 2019

Note that the same problem happened before on other Microsoft Debian repositories: microsoft/vscode#66238

@pollardpj
Copy link

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

@rnsc
Copy link

rnsc commented Aug 21, 2019

How can this be escalated to the appropriate team?

@rob-glas
Copy link

rob-glas commented Aug 21, 2019

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.

@daniel-melia-crisp
Copy link

Having the same problem.

@LoicGombeaud
Copy link

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

@mbre777
Copy link

mbre777 commented Aug 21, 2019

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

@niklasholm
Copy link

niklasholm commented Aug 21, 2019

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

@leeyuentuen
Copy link

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.

@pollardpj
Copy link

pollardpj commented Aug 21, 2019

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?

@leeyuentuen
Copy link

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!

@Kinkyboo
Copy link

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

@ilqvya
Copy link

ilqvya commented Aug 21, 2019

wtf, same issue

@ilqvya
Copy link

ilqvya commented Aug 21, 2019

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.

@KyleStank
Copy link

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

@ldacey
Copy link

ldacey commented Aug 21, 2019

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.

@Jim8y
Copy link

Jim8y commented Aug 21, 2019

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.

@haint87
Copy link

haint87 commented Aug 21, 2019

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?

@P4uLT
Copy link

P4uLT commented Aug 21, 2019

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

@adragoset
Copy link

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.

@karelz
Copy link
Member

karelz commented Aug 21, 2019

It's being escalated with the right team already - see above: #3221 (comment)

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

@osv77ldo
Copy link

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.

@dagood
Copy link
Member

dagood commented Aug 21, 2019

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.

@Jim8y
Copy link

Jim8y commented Aug 21, 2019

It works now, thanks.

@dagood
Copy link
Member

dagood commented Aug 21, 2019

The repo owners confirmed they've fixed this now.

@dagood dagood closed this as completed Aug 21, 2019
@Monge1h
Copy link

Monge1h commented Aug 21, 2019

it works now! :)

@renemadsen
Copy link

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

@bard83
Copy link

bard83 commented Dec 13, 2019

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

@Nello796
Copy link

Nello796 commented Dec 13, 2019

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.

@sensslen
Copy link

It's broken again with me also

@ekkelenkamp
Copy link

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.

@DemonRx
Copy link

DemonRx commented Dec 13, 2019

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.

@shinii13
Copy link

shinii13 commented Dec 13, 2019

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.

@40pyd
Copy link

40pyd commented Dec 13, 2019

Ubuntu 19.04 same problem. Yesterday it was fine

@jservca
Copy link

jservca commented Dec 13, 2019

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

stevendanna added a commit to chef/chef-server that referenced this issue Dec 13, 2019
The verify buildkite pipeline started failing with the following error
during apt-get update:

    E: Failed to fetch
    https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.gz
    File has unexpected size (93512 != 165979). Mirror sync in progress?
    [IP: 13.74.252.37 443]
       Hashes of expected file:
        - Filesize:165979 [weak]
        - SHA256:179eb71f2afb4a72bf5b11180b4d4c9ccf1644076dd75f5a7bbf880ecefafbba
        - SHA1:381a8321619083a4063fa8381bf3aa12a2dac5a3 [weak]
        - MD5Sum:54c730dd6a33c612b2ae3c23fe0cfcb7 [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.

In previous cases of this error, it has taken many hours for the
upstream repository maintainers to fix the problem. For example, see:

   dotnet/core#3221

Since we do not depend on software in this repository for our tests,
we've temporarily removed the source.

Further, we've made the bk_install.sh script exit immediately on error
and added some logging to make it a bit easier to debug in the future.

Co-authored-by: Prajakta Purohit <[email protected]>
Signed-off-by: Steven Danna <[email protected]>
@dagood
Copy link
Member

dagood commented Dec 13, 2019

The current outage is being tracked at #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!

@dotnet dotnet locked as resolved and limited conversation to collaborators Dec 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests