microsoft / WSL

Issues found on WSL
https://docs.microsoft.com/windows/wsl
MIT License
17.48k stars 822 forks source link

Hash Sum mismatch updating Ubuntu 24.04 LTS in WSL2 #12079

Closed drzow closed 1 month ago

drzow commented 1 month ago

Windows Version

Microsoft Windows [Version 10.0.22635.4225]

WSL Version

2.3.22.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.153.1-2

Distro Version

Ubuntu 24.04

Other Software

Intel Dual Band Wireless-AC 3168 NIC -- installed the latest driver package from Intel (23.70.2), but the device still shows version 19.51.15.3 from Microsoft. Noting this as others have reported similar issues due to an Intel NIC / WSL2 incompatibility in older versions (cannot find link now). Should also note that I am not behind a proxy or VPN.

Repro Steps

> wsl --install Ubuntu-24.04
<username>
<password>
$ sudo apt update
<password>

Expected Behavior

All sources should update cleanly. Note: When the distribution is converted to WSL1, it runs correctly.

Actual Behavior

<snip most of run -- all errors reproduced at end>

Get:57 http://archive.ubuntu.com/ubuntu noble-backports/multiverse amd64 c-n-f Metadata [116 B]
Fetched 31.3 MB in 7s (4596 kB/s)
Reading package lists... Done
E: Failed to fetch http://security.ubuntu.com/ubuntu/dists/noble-security/universe/binary-amd64/by-hash/SHA256/893ef1cdfab36a43ff2075e9b167329786f40ca96fec02603cecc7fa3525b91e  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:270092 [weak]
    - SHA256:893ef1cdfab36a43ff2075e9b167329786f40ca96fec02603cecc7fa3525b91e
    - SHA1:8b17431c9c19afc3d0d92cfc2976bc15c2394faa [weak]
    - MD5Sum:ba03e997e560c6c81d01674d7e1817f1 [weak]
   Hashes of received file:
    - SHA256:5b9c62a865d873591ef243cd0587765d303df440b3ef00ba10b8f582dcd34c9b
    - SHA1:4ad4dd4ec193f58d9cd52ff1ce12cb0e99d77659 [weak]
    - MD5Sum:111e4b31bbcc0f249e6dc3dae9f38e61 [weak]
    - Filesize:270092 [weak]
   Last modification reported: Wed, 25 Sep 2024 13:19:30 +0000
   Release file created at: Wed, 25 Sep 2024 13:19:22 +0000
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble/universe/i18n/by-hash/SHA256/84c64a22677fcf04b574f260b24da363aebb6ff27908a4eb620af3218bc670e9  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:5981548 [weak]
    - SHA256:84c64a22677fcf04b574f260b24da363aebb6ff27908a4eb620af3218bc670e9
    - SHA1:e03769fd44bd046c14f7a30a2982895c26a3b724 [weak]
    - MD5Sum:df1f189976cabd66e8c773e3cff2f004 [weak]
   Hashes of received file:
    - SHA256:bb221562ee70455475008cdaa6e393753fb5f60ac8d6b50eb402f64e6f8db04d
    - SHA1:dd78cce7d0eb6ce8a38d894b734d65bcc070c495 [weak]
    - MD5Sum:e503684d79201efe4acdf585c7c87afe [weak]
    - Filesize:5981548 [weak]
   Last modification reported: Thu, 25 Apr 2024 11:02:00 +0000
   Release file created at: Thu, 25 Apr 2024 15:10:33 +0000
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble/restricted/binary-amd64/by-hash/SHA256/aa3f9520f4e46cdcd610c7f0ce9450cda430f20085b028845e95122e9d61680c
E: Failed to fetch http://archive.ubuntu.com/ubuntu/dists/noble-updates/universe/i18n/by-hash/SHA256/98353cf0ac1137a5d88f9b3904c77ba839b2dbf3980ac270cad474fa68998693  Hash Sum mismatch
   Hashes of expected file:
    - Filesize:153716 [weak]
    - SHA256:98353cf0ac1137a5d88f9b3904c77ba839b2dbf3980ac270cad474fa68998693
    - SHA1:aaacf67677de1854d54983ddae43cc45f5e1f76c [weak]
    - MD5Sum:6dfd9ae4e93209117eea6ea584417dc8 [weak]
   Hashes of received file:
    - SHA256:bc5e2b54926b154ad3248a876ba38e22fc48c5fef2cb3537bcdf85da45b620dd
    - SHA1:3fd23defc6a757d3f62811d282a19c322718d644 [weak]
    - MD5Sum:57043fb1e9ea9d417984af2a58bd9b64 [weak]
    - Filesize:153716 [weak]
   Last modification reported: Wed, 25 Sep 2024 15:15:25 +0000
   Release file created at: Wed, 25 Sep 2024 18:37:57 +0000
E: Some index files failed to download. They have been ignored, or old ones used instead.

Diagnostic Logs

Will be emailed. Note: this appears to be the same issue as https://github.com/MicrosoftDocs/WSL/issues/495, which was closed three years ago.

github-actions[bot] commented 1 month ago

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs Download and execute [collect-wsl-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-wsl-logs.ps1) in an **administrative powershell prompt**: ``` Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1 Set-ExecutionPolicy Bypass -Scope Process -Force .\collect-wsl-logs.ps1 ``` The script will output the path of the log file once done. If this is a networking issue, please use [collect-networking-logs.ps1](https://github.com/Microsoft/WSL/blob/master/diagnostics/collect-networking-logs.ps1), following the instructions [here](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues) Once completed please upload the output files to this Github issue. [Click here for more info on logging](https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#8-collect-wsl-logs-recommended-method) If you choose to email these logs instead of attaching to the bug, please send them to wsl-gh-logs@microsoft.com with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.
microsoft-github-policy-service[bot] commented 1 month ago

This issue has been automatically closed since it has not had any author activity for the past 7 days. If you're still experiencing this issue please re-file it as a new issue.

Thank you!