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
When I was trying to update, I got the Hash sum mismatch error on terminal.
VSCode Version:1.40.2
OS Version:Ubuntu LTS 18.04 (Linux x64 5.0.0-37-generic)
Steps to Reproduce:
1.sudo apt update at terminal
2.Get the following error log
E: Failed to fetch http://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (156056 != 156065). Mirror sync in progress? [IP: 10.77.8.70 8080]
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.
Also seeing this, same version of VSCode and Ubuntu as OP.
In #41094 (almost 2 years ago), Daniel Imms (@Tyriar) said "the team is planning on putting together better monitoring to hopefully catch this sort of thing earlier."
Apparently whatever was planned didn't go so well? Maybe some automation is needed?
Reacted by Wenbo Chen, 57f4b3da, Firdaus Aziz, TaiSasaya, Ayush Walia, Chun-Sheng, Li, Huang Xiaoming, Admiral-Sanders, Igor, Yannick Schinko and 4 more
E: Failed to fetch https://packages.microsoft.com/repos/vscode/dists/stable/main/binary-amd64/Packages.bz2 File has unexpected size (156056 != 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.
After re-reading my comment, I think it's a GPG key, but otherwise, yes. Are you sure you read the error output after running "sudo apt-get update"? Correct me if I'm wrong here, but that's what happens when you fuck up your PGP/GPG key and upload it to the apt repo. The hash key is fucked, and apt no longer trusts it because your key doesn't match the one in the repo. Now, you can choose to trust it anyway with "sudo apt-get --allow-unauthenticated upgrade" as per this explanation, but I wouldn't recommend that, because you can't guarantee it's coming from a trusted source (in this case, MS). This is why I instead told people to hold off on updating vscode until MS fixes it, and they already have.
FYI for a little more transparency, this happened because changes were pushed to the system that drives https://packages.microsoft.com/ (for the majority of MS Linux offerings) and they caused issues with metadata sync. We have similar issues periodically where some repo files don't regenerate without their team doing some manual intervention. Unfortunately all we (the VS Code team) can do is ping them when things go wrong and hope that the underlying problems get fixed eventually.
Reacted by Per Lundberg, Mauro, Kal Sze and Vazgen
Activity
dpkristensen commentedon Dec 13, 2019
Also seeing this, same version of VSCode and Ubuntu as OP.
In #41094 (almost 2 years ago), Daniel Imms (@Tyriar) said "the team is planning on putting together better monitoring to hopefully catch this sort of thing earlier."
Apparently whatever was planned didn't go so well? Maybe some automation is needed?
sanjaykarki commentedon Dec 13, 2019
Same here with Pop!_OS 19.10
moharsen commentedon Dec 13, 2019
Ditto. Ubuntu 18.04.
xgdgsc commentedon Dec 13, 2019
Same with Ubuntu 16.04
scallensc commentedon Dec 13, 2019
Same 19.10
pffang commentedon Dec 13, 2019
Same with Ubuntu 16.04
taoqf commentedon Dec 13, 2019
Debian 10
qingwang237 commentedon Dec 13, 2019
mint 19.2
fitzy1321 commentedon Dec 13, 2019
same on Pop 19.10
mrizkimaulidan commentedon Dec 13, 2019
Same problem, Kali Linux Light
gustavocipriani commentedon Dec 13, 2019
Same here. Ubuntu 18.04.3.
mag911 commentedon Dec 13, 2019
Same issue here with Debian Buster
Looks like a typo 156056 != 156065
benizra-yahoo commentedon Dec 13, 2019
Same error with Linux Mint 19.1 Tessa
IvanRoman commentedon Dec 13, 2019
Reporting in with the same issue. Ubuntu 18.04.3
68 remaining items
cbRoy commentedon Dec 13, 2019
confirmed. not fixed.
jasjuang commentedon Dec 13, 2019
Same problem here on Ubuntu 18.04.
ronan-fesselier commentedon Dec 13, 2019
Fixed :)
jasjuang commentedon Dec 13, 2019
For me, now
sudo apt updateshowshiagodotme commentedon Dec 13, 2019
Was with the same problem, apparently normalized.
tommituura commentedon Dec 13, 2019
Working nicely now, xUbuntu 18.04.3. No changes by myself to any local apt source lists at any point.
vazgen6 commentedon Dec 13, 2019
Finally fixed, running GNU/Linux Mint (based on Ubuntu Bionic)
RMacfarlane commentedon Dec 13, 2019
This should now be fixed. Thanks everyone for your patience.
gregorthebigmac commentedon Dec 13, 2019
After re-reading my comment, I think it's a GPG key, but otherwise, yes. Are you sure you read the error output after running "sudo apt-get update"? Correct me if I'm wrong here, but that's what happens when you fuck up your PGP/GPG key and upload it to the apt repo. The hash key is fucked, and apt no longer trusts it because your key doesn't match the one in the repo. Now, you can choose to trust it anyway with "sudo apt-get --allow-unauthenticated upgrade" as per this explanation, but I wouldn't recommend that, because you can't guarantee it's coming from a trusted source (in this case, MS). This is why I instead told people to hold off on updating vscode until MS fixes it, and they already have.
emnovaes commentedon Dec 14, 2019
resolved
[-]Failed to fetch due to Has sum mismatch[/-][+]Failed to fetch due to Hash sum mismatch[/+]deyvisonrocha commentedon Dec 14, 2019
Snap install without problems.
Tyriar commentedon Dec 30, 2019
FYI for a little more transparency, this happened because changes were pushed to the system that drives https://packages.microsoft.com/ (for the majority of MS Linux offerings) and they caused issues with metadata sync. We have similar issues periodically where some repo files don't regenerate without their team doing some manual intervention. Unfortunately all we (the VS Code team) can do is ping them when things go wrong and hope that the underlying problems get fixed eventually.