-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Can't install .NET Core on Ubuntu, Debian from the Linux package repository: "File has unexpected size (23655 != 156065)" #3988
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
Comments
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!
|
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.
|
I've sent out a ticket and mail, waiting for acknowledgement from the repo admins.
Check out #2731 for more on the situation with this service.
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 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
|
Facing this in 16.04 as well
|
Same Issue Here
|
Facing this in 18.04. Broke our ansible server.
|
Same issue for ubuntu 16.04
|
Same issue on ubuntu18.04
|
Doing
|
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.
Error Log
|
Got this on Debian 10 after doing an 'apt update':
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:
|
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:
|
Not working on ubuntu 19.04 azure vm |
Right now:
|
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 |
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 👏 |
Still have an issue here. |
You can try solutions from this comments as temporary fix: |
@Remorc a few possibilities come to mind:
If that doesn't help, please file a new issue so we can properly look into it, and please include the |
@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 dotnet/docs#16245 to get that corrected. |
It looks like this has been resolved! Expect additional followup later at #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 |
@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 #4122 |
reappeared #6487 |
Err:1 http://mirrors.evowise.com/linuxmint/packages ulyssa/upstream amd64 firefox amd64 90.0+linuxmint1+uma
Not sure whether this is relevant to this thread. Got this message while trying to install firefox. Can someone help? |
Issue Title
Error setting up .NET core repository on Ubuntu 19.04
General
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-The text was updated successfully, but these errors were encountered: