jberezanski / ChocolateyPackages

Chocolatey packages maintained by me
MIT License
83 stars 51 forks source link

Latest update 16.10.0 fails to install #107

Closed j-w-jones closed 3 years ago

j-w-jones commented 3 years ago

The previous version 16.9.5 worked fine but when I try now (with the latest version) it fails. I'm using:

choco install -y --execution-timeout=10000 visualstudio2019community --package-parameters "--add Microsoft.VisualStudio.Workload.NativeDesktop --includeRecommended --includeOptional --passive"

This is on a brand new Windows 10 VM so no previous installs of VS are present.

jberezanski commented 3 years ago

Please provide these log files:

$Env:ChocolateyInstall\Logs\chocolatey.log
$Env:TEMP\chocolatey\dd_*.log

Also: please run these commands in the VM in PowerShell with administrative rights and provide the result:

Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion' -Name BuildLabEx,DisplayVersion,CurrentBuild,ProductName
Get-HotFix | Format-Table -AutoSize

(for the record, the package installs correctly on my test machine - Windows 10 Pro 2004, fully patched on 2020-12-19)

j-w-jones commented 3 years ago

The output from the two commands are here. I have also attached a zip file of the log files.

PS C:\WINDOWS\system32> Get-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows NT\CurrentVersion' -Name BuildLabEx,DisplayVersion,CurrentBuild,ProductName

BuildLabEx : 19041.1.amd64fre.vb_release.191206-1406 DisplayVersion : 20H2 CurrentBuild : 19042 ProductName : Windows 10 Enterprise PSPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion PSParentPath : Microsoft.PowerShell.Core\Registry::HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT PSChildName : CurrentVersion PSDrive : HKLM PSProvider : Microsoft.PowerShell.Core\Registry

PS C:\WINDOWS\system32> Get-HotFix | Format-Table -AutoSize

Source Description HotFixID InstalledBy InstalledOn


DESKTOP-EGDGUSF Update KB5003254 NT AUTHORITY\SYSTEM 09/06/2021 00:00:00 DESKTOP-EGDGUSF Update KB4562830 NT AUTHORITY\SYSTEM 14/05/2021 00:00:00 DESKTOP-EGDGUSF Security Update KB4570334 18/11/2020 00:00:00 DESKTOP-EGDGUSF Update KB4577586 NT AUTHORITY\SYSTEM 14/05/2021 00:00:00 DESKTOP-EGDGUSF Security Update KB4580325 19/11/2020 00:00:00 DESKTOP-EGDGUSF Security Update KB4586864 19/11/2020 00:00:00 DESKTOP-EGDGUSF Security Update KB5003637 NT AUTHORITY\SYSTEM 09/06/2021 00:00:00 DESKTOP-EGDGUSF Update KB5003503 NT AUTHORITY\SYSTEM 09/06/2021 00:00:00

Chocolatey Logs.zip

jberezanski commented 3 years ago

Thank you!

dd_setup_20210609115726_errors.log shows this:

Package 'Win10SDK_10.0.19041,version=10.0.19041.1' failed to download from 'https://download.visualstudio.microsoft.com/download/pr/5eeaf3c7-015f-442c-8d63-aea17e5e6aef/6ec381fa716a2ed419c2141cc09606ee/a1e2a83aa8a71c48c742eeaff6e71928.cab'.
    Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.19041;PackageAction=DownloadPackage;ReturnCode=0x80096004
    Details
        WebClient download failed: SHA256 verification for 'a1e2a83aa8a71c48c742eeaff6e71928.cab' failed. Expected hash: 4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177, Actual hash: 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3
        Bits download failed: SHA256 verification for 'a1e2a83aa8a71c48c742eeaff6e71928.cab' failed. Expected hash: 4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177, Actual hash: 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3
        WinInet download failed: SHA256 verification for 'a1e2a83aa8a71c48c742eeaff6e71928.cab' failed. Expected hash: 4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177, Actual hash: 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3
    Impacted workloads
        Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=16.10.31205.180)
    Impacted components
        Windows 10 SDK (10.0.19041.0) (Microsoft.VisualStudio.Component.Windows10SDK.19041,version=16.10.31205.252)

I have reproduced this on my test machine. (The difference in my earlier test was that I installed the core package only, without adding any workloads.)

Anyway, it seems to be a bug in the Visual Studio installer (specifically, the checksum of the Win10SDK component is probably incorrect in the VS component manifest file, which drives the install process). I expect Microsoft will fix this soon.

j-w-jones commented 3 years ago

Ok. Thanks for looking into it.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jakub Bereżański @.> Sent: Wednesday, June 9, 2021 4:33:35 PM To: jberezanski/ChocolateyPackages @.> Cc: Jones J.W. J.W.Jones@Swansea.ac.uk; Author @.***> Subject: Re: [jberezanski/ChocolateyPackages] Latest update 16.10.0 fails to install (#107)

Thank you!

dd_setup_20210609115726_errors.log shows this:

Package 'Win10SDK_10.0.19041,version=10.0.19041.1' failed to download from 'https://download.visualstudio.microsoft.com/download/pr/5eeaf3c7-015f-442c-8d63-aea17e5e6aef/6ec381fa716a2ed419c2141cc09606ee/a1e2a83aa8a71c48c742eeaff6e71928.cab'. Search URL https://aka.ms/VSSetupErrorReports?q=PackageId=Win10SDK_10.0.19041;PackageAction=DownloadPackage;ReturnCode=0x80096004 Details WebClient download failed: SHA256 verification for 'a1e2a83aa8a71c48c742eeaff6e71928.cab' failed. Expected hash: 4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177, Actual hash: 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3 Bits download failed: SHA256 verification for 'a1e2a83aa8a71c48c742eeaff6e71928.cab' failed. Expected hash: 4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177, Actual hash: 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3 WinInet download failed: SHA256 verification for 'a1e2a83aa8a71c48c742eeaff6e71928.cab' failed. Expected hash: 4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177, Actual hash: 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3 Impacted workloads Desktop development with C++ (Microsoft.VisualStudio.Workload.NativeDesktop,version=16.10.31205.180) Impacted components Windows 10 SDK (10.0.19041.0) (Microsoft.VisualStudio.Component.Windows10SDK.19041,version=16.10.31205.252)

I have reproduced this on my test machine. (The difference in my earlier test was that I installed the core package only, without adding any workloads.)

Anyway, it seems to be a bug in the Visual Studio installer (specifically, the checksum of the Win10SDK component is probably incorrect in the VS component manifest file, which drives the install process). I expect Microsoft will fix this soon.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjberezanski%2FChocolateyPackages%2Fissues%2F107%23issuecomment-857806225&data=04%7C01%7CJ.W.Jones%40Swansea.ac.uk%7Cf4c532f6fc4e4dd0eb7f08d92b5bfa21%7Cbbcab52e9fbe43d6a2f39f66c43df268%7C0%7C0%7C637588496325110295%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=DvO33Dia%2BGIAB%2FTOj8OsTghetSzLnI5gNAkLqd5nhgQ%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMGLFPJZ4FEO4ERVSWW3DDTR6CU7ANCNFSM46KAKE4Q&data=04%7C01%7CJ.W.Jones%40Swansea.ac.uk%7Cf4c532f6fc4e4dd0eb7f08d92b5bfa21%7Cbbcab52e9fbe43d6a2f39f66c43df268%7C0%7C0%7C637588496325115275%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=yv4L3z0MEvMLReKsF6sLmLT40BSRcTf1UAKkLJYOxhc%3D&reserved=0.

jberezanski commented 3 years ago

part of the manifest:

                                          {
                                              "fileName":  "Installers\\a1e2a83aa8a71c48c742eeaff6e71928.cab",
                                              "sha256":  "4F1B720286118CB2BFAB2119C29873F2BA96691D213529FFE53BFD3904813177",
                                              "size":  22849294,
                                              "url":  "https://download.visualstudio.microsoft.com/download/pr/5eeaf3c7-015f-442c-8d63-aea17e5e6aef/6ec381fa716a2ed419c2141cc09606ee/a1e2a83aa8a71c48c742eeaff6e71928.cab",

When I download that file, the sha256 hash is 375A80A5B5DBB2F6BACD170636A97AAAADE93C06DB2919452218F0A696FF87A3, same as shown in the log from your machine.

jberezanski commented 3 years ago

What's funny is that inside the downloaded .cab file is just this text: DS Download API. Seems like a bug/misconfiguration on the backend or invalid url.

j-w-jones commented 3 years ago

I wonder if the Fastly outage yesterday had anything to do with it.

Get Outlook for Androidhttps://aka.ms/AAb9ysg


From: Jakub Bereżański @.> Sent: Wednesday, June 9, 2021 5:05:46 PM To: jberezanski/ChocolateyPackages @.> Cc: Jones J.W. J.W.Jones@Swansea.ac.uk; Author @.***> Subject: Re: [jberezanski/ChocolateyPackages] Latest update 16.10.0 fails to install (#107)

What's funny is that inside the downloaded .cab file is just this text: DS Download API. Seems like a bug/misconfiguration on the backend or invalid url.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjberezanski%2FChocolateyPackages%2Fissues%2F107%23issuecomment-857833749&data=04%7C01%7CJ.W.Jones%40Swansea.ac.uk%7C0eb029e9e4ee4dcaabd008d92b607a14%7Cbbcab52e9fbe43d6a2f39f66c43df268%7C0%7C0%7C637588516037530019%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=ARwhY1l6mRlEjU1TRIBKttF5TKQ3prUQuOkVkH9GTF4%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMGLFLM2AG7T7S5VOAXHZLTR6GNVANCNFSM46KAKE4Q&data=04%7C01%7CJ.W.Jones%40Swansea.ac.uk%7C0eb029e9e4ee4dcaabd008d92b607a14%7Cbbcab52e9fbe43d6a2f39f66c43df268%7C0%7C0%7C637588516037534996%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C2000&sdata=y3OuLtI%2Fz0fIeP8FwL35F1Nme5s1NBP9v3W9DG7vsWc%3D&reserved=0.

jberezanski commented 3 years ago

I thought Microsoft used Akamai as CDN, but who knows really.

VS 16.10.1 has just been released and seems to fix the problem. I've published the updated packages on chocolatey.org.

j-w-jones commented 3 years ago

They might do - I don't know. It just seemed a coincidence.

I have tried it this morning and everything is working fine.

Thanks for your help,

Jason

From: Jakub Bereżański @.> Sent: 10 June 2021 00:27 To: jberezanski/ChocolateyPackages @.> Cc: Jones J.W. J.W.Jones@Swansea.ac.uk; Author @.***> Subject: Re: [jberezanski/ChocolateyPackages] Latest update 16.10.0 fails to install (#107)

I thought Microsoft used Akamai as CDN, but who knows really.

VS 16.10.1 has just been released and seems to fix the problem. I've published the updated packages on chocolatey.org.

- You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fjberezanski%2FChocolateyPackages%2Fissues%2F107%23issuecomment-858165047&data=04%7C01%7CJ.W.Jones%40Swansea.ac.uk%7C74e36d2f8b734baabdae08d92b9e1062%7Cbbcab52e9fbe43d6a2f39f66c43df268%7C0%7C0%7C637588780142659149%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=zoMg7V%2FDe3VTnCXJOiEMcZs%2BlmnW4qPHOSGshORaTT8%3D&reserved=0, or unsubscribehttps://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FABMGLFJWJQBFHPIAIYLHFGLTR72DVANCNFSM46KAKE4Q&data=04%7C01%7CJ.W.Jones%40Swansea.ac.uk%7C74e36d2f8b734baabdae08d92b9e1062%7Cbbcab52e9fbe43d6a2f39f66c43df268%7C0%7C0%7C637588780142664128%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=zVEfKfecskHfHV66k9KwIC%2FS7YYLaAuDcYCuYymgnjY%3D&reserved=0.