-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Comments
Me too, it seems:
|
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!
|
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 |
Note that the same problem happened before on other Microsoft Debian repositories: microsoft/vscode#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.
|
Having the same problem. |
Same issue here:
|
I've the same problem :( Holen:22 https://packages.microsoft.com/ubuntu/18.04/prod bionic/main amd64 Packages [66,6 kB]
|
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] |
My reluctant workaround for my DockerFile is going to Ubuntu 19.04 , which means:
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 Copy the content into a folder on your machine, I use /home/dotnet
dotnet --info
|
wtf, same issue |
Step 7/16 : RUN cd /usr/src/gtest/ && cmake . && make && cp *.a /usr/lib
|
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] |
I have the same error:
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
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: #3221 (comment) It was reported last night, so yes, most right people were asleep so far. Stay tuned. |
root@1f19ded7ad77:/# apt-get update
|
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 |
|
Same problem here started a couple of days ago.
|
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]
Fetched 18.2 MB in 5s (3700 kB/s) SHA512:12e6dffcd247d1ff067acfa61a3c4eb6078c326c2858feb4f6f141a1d809e22292a78282414a5c103038ea80bb63cd734c7516782c9809c341335083d4e7611b |
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. |
|
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 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]>
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! |
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.The text was updated successfully, but these errors were encountered: