You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Can't install .NET Core on Ubuntu, Debian from the Linux package repository: "File has unexpected size (23655 != 156065)" #3988
After running sudo apt-get update after adding the repository I get the following error-
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
Reacted by Davis Goodin, Archeri2000, Haw Jia, Aleksey Usatov, Andrej Petras, Frederik Carlier, Shaan Nobee, Luke Rosser, BannerBomb, Kate Reidy and 40 more
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?
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
Reacted by Davis Goodin, Huiqiang Jiang, Niklas Holm, kitsuyui, Andrej Petras, Evgeny Morozov, Fokko Driesprong, Marcin Worwa, David Gallmeier, Uygar Yilmaz and 5 more
Reacted by Gianni Angelozzi, Fokko Driesprong and Heinrich Ulbricht
changed the title [-]Ubuntu 19.04 [/-][+]Can't install Ubuntu 18.04/19.04/19.10 from the Linux package repository, "File has unexpected size (23655 != 156065)"[/+]on Dec 13, 2019
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.
Reacted by kitsuyui, mabeshark, Archeri2000, Huiqiang Jiang, Fokko Driesprong, Luke Carrier, Dodzi Dzakuma, Tyler Christian, Yanky Hoffman, Christian Parpart and 1 more
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.
Reacted by Davis Goodin, Hussein Danish, Chris Maiden, Daniel Del Rio and OneCodex GmbH
changed the title [-]Can't install Ubuntu 18.04/19.04/19.10 from the Linux package repository, "File has unexpected size (23655 != 156065)"[/-][+]Can't install .NET Core on Ubuntu, Debian from the Linux package repository: "File has unexpected size (23655 != 156065)"[/+]on Dec 13, 2019
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 #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.
Reacted by Miguel Espinoza, Kim Hansen, Luke Rosser, Evgeny Morozov, Bijaya Prasad Kuikel, Yannick Schinko, Luke Carrier, Gabriel Barrionuevo Rosales, Dodzi Dzakuma, RaGe and 2 more
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.
$ 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.
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
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.
@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...
Activity
mabeshark commentedon Dec 13, 2019
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!
microsoft/vscode#41094
#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
[-]Ubuntu 19.04 [/-][+]Can't install Ubuntu 18.04/19.04/19.10 from the Linux package repository, "File has unexpected size (23655 != 156065)"[/+]dagood commentedon Dec 13, 2019
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.
kitsuyui commentedon Dec 13, 2019
I have similar issue at Debian 9 stretch.
[-]Can't install Ubuntu 18.04/19.04/19.10 from the Linux package repository, "File has unexpected size (23655 != 156065)"[/-][+]Can't install .NET Core on Ubuntu, Debian from the Linux package repository: "File has unexpected size (23655 != 156065)"[/+]dagood commentedon Dec 13, 2019
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
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.
niklasholm commentedon Dec 13, 2019
This is quite embarrassing for Microsoft really. Doing proper repository updates is not that difficult.
oudi commentedon Dec 13, 2019
similar issue at Ubuntu 18.04.3
cool-mist commentedon Dec 13, 2019
Facing this in 16.04 as well
mikiab12 commentedon Dec 13, 2019
Same Issue Here
xlanor commentedon Dec 13, 2019
Facing this in 18.04. Broke our ansible server.
chensun commentedon Dec 13, 2019
Same issue for ubuntu 16.04
coopsrc commentedon Dec 13, 2019
Same issue on ubuntu18.04
purefan commentedon Dec 13, 2019
Doing
aptinstead ofapt-getit will ask to accept the changes but the next issue is the file size doesnt match:48 remaining items
kiecanBG commentedon Dec 13, 2019
Working on my side. Oh blessed day 👏
Remorc commentedon Dec 13, 2019
Still have an issue here.
sudo apt-get updateworks fine, butsudo apt-get install dotnet-sdk-3.0tells me it can't find the packageMorgan-iv commentedon Dec 13, 2019
You can try solutions from this comments as temporary fix:
#3988 (comment)
#3988 (comment)
dagood commentedon Dec 13, 2019
@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, soapt-get updatemay 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 updatelogs if you can. Thanks!Remorc commentedon Dec 13, 2019
@dagood Thank you for this information! Unfortunately, I was attempting to install on a non-x64 device
dagood commentedon Dec 13, 2019
@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.
dagood commentedon Dec 13, 2019
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.
seraphire commentedon Dec 13, 2019
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
https://dev.azure.com/git/git/_build/results?buildId=1474&view=logs&j=014a20e5-3a83-5f5b-197a-069d121f3233&t=056a7b15-6219-513f-0d0a-34b9cb5314d5&l=63
dagood commentedon Dec 14, 2019
@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 commentedon Dec 16, 2019
@dagood , never mind, I tried to download a non existing version...
marlonchalegre commentedon Jan 14, 2020
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)
lucaspimentel commentedon Jan 14, 2020
@marlonchalegre: see #4122
m00lecule commentedon Jul 21, 2021
reappeared #6487
sbhhdp commentedon Aug 15, 2021
Err:1 http://mirrors.evowise.com/linuxmint/packages ulyssa/upstream amd64 firefox amd64 90.0+linuxmint1+uma
File has unexpected size (610816 != 57055532). Mirror sync in progress? [IP: 104.17.98.61 443]
Hashes of expected file:
E: Failed to fetch https://www.zerobounce.net/ File has unexpected size (610816 != 57055532). Mirror sync in progress? [IP: 104.17.98.61 443]
Hashes of expected file:
- SHA256:996c71120e45504b713c15490182dad7486d988906896a0df7ae7c921870af43
- SHA1:327994ba213268c3098f0da7f4cc5ef9f69fd939 [weak]
- MD5Sum:15a3f6993b0f1059a9d06f68d1b1967a [weak]
- Filesize:57055532 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Not sure whether this is relevant to this thread. Got this message while trying to install firefox. Can someone help?