Ubuntu 18.04 (Bionic) MS repo contains hash mismatches
- Dominant language
- PowerShell
- Stars
- 22k
- Forks
- 4.9k
- Avg merge
- 5d 5h
- Merged PRs (30d)
- 29
Description
While I was trying to sync my repository from ```https://packages.microsoft.com/ubuntu/18.04/prod``` it seemed to fail because there are md5 hash mismatches.
Error message:
```
Downloading https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/InRelease...
Downloading https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/Release...
Downloading https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/Release.gpg...
openpgp: Signature made Sat, 16 Jan 2021 04:35:06 IST using RSA key ID EB3E94ADBE1229CF
openpgp: Good signature from "Microsoft (Release signing) "
Downloading & parsing package files...
Downloading https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages.bz2...
Building download queue...
Download queue: 1 items (6.17 MiB)
Downloading https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/a/adutil-preview/adutil-preview_0.7.022_amd64.deb...
ERROR: unable to update: download errors:
https://packages.microsoft.com/ubuntu/18.04/prod/pool/main/a/adutil-preview/adutil-preview_0.7.022_amd64.deb: md5 hash mismatch "5a7e403baf89f827a538c69c933bf722" != "99722ef91df57fac1723ce50450ce029
```
The file ```https://packages.microsoft.com/ubuntu/18.04/prod/dists/bionic/main/binary-amd64/Packages``` was changed at January 16th, 2020, and seems to contains now a wrong hash. I was able to sync a week ago.
I also was able to confirm it manually by downloading the file, compute the hash, and compare it to the one found inside the "Packages" file.
Solution:
```The "Packages" file in the mirror needs to be re-generated.```
Please let me know if you need any more information.
I'm cc'ing @dagood because I saw you've handled a similar issues [#3988](https://github.com/dotnet/core/issues/3988) & [#2608](https://github.com/dotnet/core/issues/2608) in the past.
Best,
Ofir.
Contributor guide
Assessment
This issue has not been assessed yet.