Skip to content

Failed to fetch due to Hash sum mismatch #86858

Closed

Description

@f3wenbo

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.

Previously:

#70584
#66339
#66238
#41117

Activity

  1. added
    install-update
    on Dec 13, 2019
  2. dpkristensen commented on Dec 13, 2019

    @dpkristensen

    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?

  3. sanjaykarki commented on Dec 13, 2019

    @sanjaykarki

    Same here with Pop!_OS 19.10

  4. moharsen commented on Dec 13, 2019

    @moharsen

    Ditto. Ubuntu 18.04.

    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: 40.76.35.62 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: Some index files failed to download. They have been ignored, or old ones used instead.

  5. xgdgsc commented on Dec 13, 2019

    @xgdgsc
    Contributor

    Same with Ubuntu 16.04

  6. scallensc commented on Dec 13, 2019

    @scallensc

    Same 19.10

  7. pffang commented on Dec 13, 2019

    @pffang

    Same with Ubuntu 16.04

  8. taoqf commented on Dec 13, 2019

    @taoqf

    Debian 10

  9. qingwang237 commented on Dec 13, 2019

    @qingwang237

    mint 19.2

  10. fitzy1321 commented on Dec 13, 2019

    @fitzy1321

    same on Pop 19.10

  11. mrizkimaulidan commented on Dec 13, 2019

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

    Same problem, Kali Linux Light

  12. gustavocipriani commented on Dec 13, 2019

    @gustavocipriani

    Same here. Ubuntu 18.04.3.

    Reading package lists... Done
    N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'https://download.virtualbox.org/virtualbox/debian bionic InRelease' doesn't support architecture 'i386'
    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: 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: Some index files failed to download. They have been ignored, or old ones used instead.

  13. mag911 commented on Dec 13, 2019

    @mag911

    Same issue here with Debian Buster
    Looks like a typo 156056 != 156065

  14. benizra-yahoo commented on Dec 13, 2019

    @benizra-yahoo

    Same error with Linux Mint 19.1 Tessa

  15. IvanRoman commented on Dec 13, 2019

    @IvanRoman

    Reporting in with the same issue. Ubuntu 18.04.3

  16. 68 remaining items

  17. cbRoy commented on Dec 13, 2019

    @cbRoy

    confirmed. not fixed.

  18. jasjuang commented on Dec 13, 2019

    @jasjuang

    Same problem here on Ubuntu 18.04.

  19. ronan-fesselier commented on Dec 13, 2019

    @ronan-fesselier

    Fixed :)

  20. jasjuang commented on Dec 13, 2019

    @jasjuang

    For me, now sudo apt update shows

    N: Skipping acquire of configured file 'main/binary-i386/Packages' as repository 'https://packages.microsoft.com/ubuntu/18.04/prod bionic InRelease' doesn't support architecture 'i386'
    
  21. hiagodotme commented on Dec 13, 2019

    @hiagodotme

    Was with the same problem, apparently normalized.

  22. tommituura commented on Dec 13, 2019

    @tommituura

    Working nicely now, xUbuntu 18.04.3. No changes by myself to any local apt source lists at any point.

  23. vazgen6 commented on Dec 13, 2019

    @vazgen6

    Finally fixed, running GNU/Linux Mint (based on Ubuntu Bionic)

  24. RMacfarlane commented on Dec 13, 2019

    @RMacfarlane

    This should now be fixed. Thanks everyone for your patience.

  25. gregorthebigmac commented on Dec 13, 2019

    @gregorthebigmac

    I ... don't think this has to do with PGP key?

    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.

  26. emnovaes commented on Dec 14, 2019

    @emnovaes

    resolved

  27. changed the title [-]Failed to fetch due to Has sum mismatch[/-] [+]Failed to fetch due to Hash sum mismatch[/+] on Dec 14, 2019
  28. deyvisonrocha commented on Dec 14, 2019

    @deyvisonrocha

    Snap install without problems.

  29. Tyriar commented on Dec 30, 2019

    @Tyriar
    Contributor

    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.

  30. locked and limited conversation to collaborators on Jan 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

install-update

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions