microsoft / openjdk

Microsoft Build of OpenJDK
https://www.microsoft.com/openjdk
MIT License
322 stars 19 forks source link

Unable to install. Repo appears broken. File Size Mismatch #259

Closed jabbera closed 2 years ago

jabbera commented 2 years ago

Describe the bug Running sudo apt-get install msopenjdk-17

yields the following:

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  msopenjdk-17
0 upgraded, 1 newly installed, 0 to remove and 4 not upgraded.
Need to get 192 MB of archives.
After this operation, 331 MB of additional disk space will be used.
Get:1 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 msopenjdk-17 amd64 17.0.3+7-LTS-33011 [192 MB]
Err:1 https://packages.microsoft.com/ubuntu/20.04/prod focal/main amd64 msopenjdk-17 amd64 17.0.3+7-LTS-33011
  File has unexpected size (191708950 != 191713622). Mirror sync in progress? [IP: 13.90.56.68 443]
  Hashes of expected file:
   - SHA512:05037c9c4c842f7e6106241ab394283822ca3597c60b0c59bcc53b7dc4312c8fc84e43dd78a6f36d96cf709a0c72b24632e1e9a9f0ffca177673562cb24450a0
   - SHA256:34a44caee840677f9c1bbee164d6266156967a8f5fe8620b2f5501628f3b1ab3
   - SHA1:36414007fa2c4c4402c5e82418d69289e5db8890 [weak]
   - MD5Sum:02105ca342edd16fa8b7e6b24cca1656 [weak]
   - Filesize:191713622 [weak]
E: Failed to fetch https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/m/msopenjdk-17/msopenjdk-17_17.0.3_amd64.deb  File has unexpected size (191708950 != 191713622). Mirror sync in progress? [IP: 13.90.56.68 443]
   Hashes of expected file:
    - SHA512:05037c9c4c842f7e6106241ab394283822ca3597c60b0c59bcc53b7dc4312c8fc84e43dd78a6f36d96cf709a0c72b24632e1e9a9f0ffca177673562cb24450a0
    - SHA256:34a44caee840677f9c1bbee164d6266156967a8f5fe8620b2f5501628f3b1ab3
    - SHA1:36414007fa2c4c4402c5e82418d69289e5db8890 [weak]
    - MD5Sum:02105ca342edd16fa8b7e6b24cca1656 [weak]
    - Filesize:191713622 [weak]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

The Packages file expects 191713622:

Package: msopenjdk-17
Priority: extra
Section: java
Installed-Size: 323643
Maintainer: Microsoft
Architecture: amd64
Version: 17.0.3+7-LTS-33011
Provides: java-compiler, java-sdk, java-sdk-headless, java10-sdk, java11-sdk, java12-sdk, java13-sdk, java14-sdk, java15-sdk, java16-sdk, java2-sdk, java5-sdk, java6-sdk, java7-sdk, java8-sdk, java9-sdk, java10-sdk-headless, java11-sdk-headless, java12-sdk-headless, java13-sdk-headless, java14-sdk-headless, java15-sdk-headless, java16-sdk-headless, java2-sdk-headless, java5-sdk-headless, java6-sdk-headless, java7-sdk-headless, java8-sdk-headless, java9-sdk-headless, java-runtime, java-runtime-headless, java10-runtime, java11-runtime, java12-runtime, java13-runtime, java14-runtime, java15-runtime, java16-runtime, java2-runtime, java5-runtime, java6-runtime, java7-runtime, java8-runtime, java9-runtime, java10-runtime-headless, java11-runtime-headless, java12-runtime-headless, java13-runtime-headless, java14-runtime-headless, java15-runtime-headless, java16-runtime-headless, java2-runtime-headless, java5-runtime-headless, java6-runtime-headless, java7-runtime-headless, java8-runtime-headless, java9-runtime-headless
Depends: ca-certificates, fonts-dejavu, java-common, libasound2, libc6, libfreetype6, libfontconfig1, libx11-6, libxext6, libxi6, libxrender1, libxtst6, zlib1g
Filename: pool/main/m/msopenjdk-17/msopenjdk-17_17.0.3_amd64.deb
Size: 191713622
MD5sum: 02105ca342edd16fa8b7e6b24cca1656
SHA1: 36414007fa2c4c4402c5e82418d69289e5db8890
SHA256: 34a44caee840677f9c1bbee164d6266156967a8f5fe8620b2f5501628f3b1ab3
SHA512: 05037c9c4c842f7e6106241ab394283822ca3597c60b0c59bcc53b7dc4312c8fc84e43dd78a6f36d96cf709a0c72b24632e1e9a9f0ffca177673562cb24450a0
Description: OpenJDK Development Kit 17 (JDK) with Hotspot by Microsoft
Homepage: https://www.microsoft.com
License: GPL-2.0+CE
Vendor: Microsoft

Whereas the actual file size is 191708950:

image

Please correct this!

d3r3kk commented 2 years ago

Apologies!

This was a problem with our originally published RPMs and DEB packages and we re-published in (what we've come to learn) an incorrect manner. We have a fix incoming (and we've done the requisite learning such that it won't happen again - we'll update our pipelines to handle re-publish correctly). ETA 5pm PST April 28th. Will update you if we experience further delays.

d3r3kk commented 2 years ago

The problem appears mitigated now.

@jabbera please try now.

d3r3kk commented 2 years ago

Closing as we did reproduce the issue and then corrected, re-open if you see the issue @jabbera. Thanks!

jabbera commented 2 years ago

Verified! Thanks.