Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vcredist140 / Microsoft Visual C++ fails to install #2549

Open
2 tasks done
Cancom-Stryjek opened this issue Oct 8, 2024 · 0 comments
Open
2 tasks done

Vcredist140 / Microsoft Visual C++ fails to install #2549

Cancom-Stryjek opened this issue Oct 8, 2024 · 0 comments
Labels

Comments

@Cancom-Stryjek
Copy link

Checklist

  • I have verified that this is the correct repository, and the package is maintained by the chocolatey-community user.
  • I have verified that this is happening in the latest available version of the package.

Chocolatey Version

2.3.0

Chocolatey License

None

Package Version

14.40.33810

Current Behaviour

i receive a error message during the installation of vcredist140. Error happens during the installation of 64 Bit version and 32Bit
Last Time it was working was Wednesday (02.10.2024)
Error Message:
Error - hashes do not match. Actual value was 'E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855'

Expected Behaviour

That the software will be installed without any problems

Steps To Reproduce

We Created a Virtual Maschine with Win10 and than tried to install the chocolatey package vcredist140
Problem appeared during the installation with a script and manually

Environment

- Operating System: Windows 10 Version 22h2 (OS Build 19045.4894)
- PowerShell Version: 5.1.19041.4894

Chocolatey Log

2024-10-08 13:49:14,628 5636 [DEBUG] - Running 'ChocolateyScriptRunner' for vcredist140 v14.40.33810 with packageScript 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\vcredist140', installArguments: '', packageParameters: '', preRunHookScripts: '', postRunHookScripts: '',
2024-10-08 13:49:14,628 5636 [DEBUG] - Running package script 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1'
2024-10-08 13:49:14,644 5636 [INFO ] - VERBOSE: Checking Service Pack requirements
2024-10-08 13:49:14,738 5636 [DEBUG] - Running Get-OSArchitectureWidth 
2024-10-08 13:49:14,753 5636 [DEBUG] - Running Get-OSArchitectureWidth 
2024-10-08 13:49:14,753 5636 [INFO ] - VERBOSE: Analyzing servicing information in the registry
2024-10-08 13:49:14,769 5636 [INFO ] - VERBOSE: Version of installed runtime for architecture x86 in the registry: 14.40.33810
2024-10-08 13:49:14,769 5636 [INFO ] - VERBOSE: Version of installed runtime for architecture x64 in the registry: 14.36.32532
2024-10-08 13:49:14,785 5636 [INFO ] - VERBOSE: Version number of runtime installed by this package: 14.40.33810
2024-10-08 13:49:14,785 5636 [INFO ] - VERBOSE: Runtime for architecture x86 applicable: True; version in registry: [14.40.33810]; should install: False
2024-10-08 13:49:14,785 5636 [INFO ] - Runtime for architecture x86 version 14.40.33810 is already installed.
2024-10-08 13:49:14,800 5636 [INFO ] - VERBOSE: Runtime for architecture x64 applicable: True; version in registry: [14.36.32532]; should install: True
2024-10-08 13:49:14,800 5636 [INFO ] - VERBOSE: Installing runtime for architecture x64
2024-10-08 13:49:14,847 5636 [DEBUG] - Running Install-ChocolateyPackage -packageName 'vcredist140-x64' -fileType 'exe' -silentArgs '/quiet /norestart' -validExitCodes '0 1638 3010' -url64bit 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' -checksumType64 'sha256' -checksum64 '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' 
2024-10-08 13:49:14,894 5636 [DEBUG] - Running Get-ChocolateyWebFile -packageName 'vcredist140-x64' -fileFullPath 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\vcredist140-x64Install.exe' -url '' -url64bit 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' -checksum '' -checksumType '' -checksum64 '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' -checksumType64 'sha256' -options 'System.Collections.Hashtable' -getOriginalFileName 'True' 
2024-10-08 13:49:14,910 5636 [DEBUG] - Running Get-OSArchitectureWidth -compare '64' 
2024-10-08 13:49:14,910 5636 [DEBUG] - CPU is 64 bit
2024-10-08 13:49:14,925 5636 [DEBUG] - Setting url to 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' and bitPackage to 64
2024-10-08 13:49:14,941 5636 [DEBUG] - Running Get-WebFileName -url 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' -defaultName 'vcredist140-x64Install.exe' 
2024-10-08 13:49:15,066 5636 [DEBUG] - Using header 'Content-Disposition' to determine file name.
2024-10-08 13:49:15,066 5636 [DEBUG] - Using response url to determine file name. 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe'
2024-10-08 13:49:15,066 5636 [DEBUG] - File name determined from url is 'VC_redist.x64.exe'
2024-10-08 13:49:15,113 5636 [DEBUG] - Running Get-WebHeaders -url 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' -ErrorAction 'Stop' 
2024-10-08 13:49:15,113 5636 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2024-10-08 13:49:15,113 5636 [DEBUG] - Request Headers:
2024-10-08 13:49:15,128 5636 [DEBUG] -   'Accept':'*/*'
2024-10-08 13:49:15,128 5636 [DEBUG] -   'User-Agent':'chocolatey command line'
2024-10-08 13:49:15,175 5636 [DEBUG] - Response Headers:
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Age':'91991'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Content-Disposition':'attachment; filename=VC_redist.x64.exe; filename*=UTF-8''VC_redist.x64.exe'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'X-Cache':'HIT'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'X-Ms-ApiVersion':'Distribute 1.2'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'X-Ms-Region':'prod-eus-z1'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Accept-Ranges':'bytes'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Content-Length':'25397512'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Cache-Control':'public, max-age=259200'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Content-Type':'application/octet-stream'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Date':'Tue, 08 Oct 2024 11:49:15 GMT'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'ETag':'"0xF0E45F3885C96B36B1F6EE0A6812A8CEAD235BE120BB5595CF6FE61399799467"'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Last-Modified':'Wed, 01 May 2024 19:13:30 GMT'
2024-10-08 13:49:15,191 5636 [DEBUG] -   'Server':'ECAcc (amb/6B5E)'
2024-10-08 13:49:15,206 5636 [INFO ] - File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
2024-10-08 13:49:15,222 5636 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe' -checksum '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' -checksumType 'sha256' -originalUrl 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' -ErrorAction 'Stop' 
2024-10-08 13:49:15,222 5636 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2024-10-08 13:49:15,222 5636 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a" -t="sha256" -f="C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe"]
2024-10-08 13:49:15,300 5636 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a" -t="sha256" -f="C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe"] exited with '1'.
2024-10-08 13:49:15,300 5636 [DEBUG] - Existing file failed checksum. Will be redownloaded from url.
2024-10-08 13:49:15,316 5636 [INFO ] - Downloading vcredist140-x64 64 bit
  from 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe'
2024-10-08 13:49:15,331 5636 [DEBUG] - Running Get-WebFile -url 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' -fileName 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe' -options 'System.Collections.Hashtable' 
2024-10-08 13:49:15,331 5636 [DEBUG] - Setting request timeout to  30000
2024-10-08 13:49:15,331 5636 [DEBUG] - Setting read/write timeout to  2700000
2024-10-08 13:49:15,331 5636 [DEBUG] - Setting the UserAgent to 'chocolatey command line'
2024-10-08 13:49:15,441 5636 [INFO ] - 
2024-10-08 13:49:15,441 5636 [INFO ] - Download of VC_redist.x64.exe (24.22 MB) completed.
2024-10-08 13:49:18,472 5636 [DEBUG] - No runtime virus checking built into FOSS Chocolatey. Check out Pro/Business - https://chocolatey.org/compare
2024-10-08 13:49:18,472 5636 [DEBUG] - Verifying package provided checksum of '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' for 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe'.
2024-10-08 13:49:18,472 5636 [DEBUG] - Running Get-ChecksumValid -file 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe' -checksum '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' -checksumType 'sha256' -originalUrl 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe' 
2024-10-08 13:49:18,472 5636 [DEBUG] - checksum.exe found at 'C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe'
2024-10-08 13:49:18,472 5636 [DEBUG] - Executing command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a" -t="sha256" -f="C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe"]
2024-10-08 13:49:18,540 5636 [DEBUG] - Command ['C:\ProgramData\chocolatey\helpers\..\tools\checksum.exe' -c="3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a" -t="sha256" -f="C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe"] exited with '1'.
2024-10-08 13:49:18,551 5636 [ERROR] - ERROR: Checksum for 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe' did not meet '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
2024-10-08 13:49:18,551 5636 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = '';[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.SecurityProtocolType]::SystemDefault; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1' -installArguments '' -packageParameters '' -preRunHookScripts $null -postRunHookScripts $null'] exited with '-1'.
2024-10-08 13:49:18,551 5636 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2024-10-08 13:49:18,598 5636 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2024-10-08 13:49:18,707 5636 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\vcredist140'
2024-10-08 13:49:18,707 5636 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\vcredist140\vcredist140.nupkg'
  with checksum 'B3E25F838DFC63FDAD4C768B68FB255D'
2024-10-08 13:49:18,707 5636 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\vcredist140\vcredist140.nuspec'
  with checksum 'AC4CE3E8FE1A572508BD848F962D85BB'
2024-10-08 13:49:18,707 5636 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1'
  with checksum '50A448A1EB166C2ED8EF32388688BE75'
2024-10-08 13:49:18,707 5636 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyUninstall.ps1'
  with checksum '0FFC57B43B4BD80ABCFD3A38D2AE4680'
2024-10-08 13:49:18,707 5636 [DEBUG] -  Found 'C:\ProgramData\chocolatey\lib\vcredist140\tools\data.ps1'
  with checksum '819DE5696FD27CD3C0544713088A5113'
2024-10-08 13:49:18,738 5636 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\vcredist140.14.40.33810\.arguments".
2024-10-08 13:49:18,738 5636 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\vcredist140.14.40.33810\.extra".
2024-10-08 13:49:18,738 5636 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\vcredist140.14.40.33810\.version".
2024-10-08 13:49:18,738 5636 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\vcredist140.14.40.33810\.sxs".
2024-10-08 13:49:18,738 5636 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\vcredist140.14.40.33810\.pin".
2024-10-08 13:49:18,738 5636 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\vcredist140.14.40.33810\.deploymentLocation".
2024-10-08 13:49:18,754 5636 [DEBUG] - Attempting to delete directory "C:\ProgramData\chocolatey\lib-bad\vcredist140".
2024-10-08 13:49:18,754 5636 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2024-10-08 13:49:18,754 5636 [ERROR] - The install of vcredist140 was NOT successful.
2024-10-08 13:49:18,754 5636 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1'.
 See log for details.
2024-10-08 13:49:18,769 5636 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\lib-bad\vcredist140".
2024-10-08 13:49:18,769 5636 [DEBUG] - Moving C:\ProgramData\chocolatey\lib\vcredist140 to C:\ProgramData\chocolatey\lib-bad\vcredist140\14.40.33810
2024-10-08 13:49:18,769 5636 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\vcredist140'
 to 'C:\ProgramData\chocolatey\lib-bad\vcredist140\14.40.33810'
2024-10-08 13:49:20,785 5636 [WARN ] - 
Chocolatey installed 0/1 packages. 1 packages failed.
 See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2024-10-08 13:49:20,800 5636 [INFO ] - 
2024-10-08 13:49:20,800 5636 [ERROR] - Failures
2024-10-08 13:49:20,800 5636 [ERROR] -  - vcredist140 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1'.
 See log for details.
2024-10-08 13:49:20,800 5636 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2024-10-08 13:49:20,800 5636 [DEBUG] - Exiting with -1

Anything else?

Runtime for architecture x86 version 14.40.33810 is already installed.
File appears to be downloaded already. Verifying with package checksum to determine if it needs to be redownloaded.
Error - hashes do not match. Actual value was 'E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855'.
Downloading vcredist140-x64 64 bit
from 'https://download.visualstudio.microsoft.com/download/pr/1754ea58-11a6-44ab-a262-696e194ce543/3642E3F95D50CC193E4B5A0B0FFBF7FE2C08801517758B4C8AEB7105A091208A/VC_redist.x64.exe'

Download of VC_redist.x64.exe (24.22 MB) completed.
Error - hashes do not match. Actual value was 'E3B0C44298FC1C149AFBF4C8996FB92427AE41E4649B934CA495991B7852B855'.
ERROR: Checksum for 'C:\Users\admin\AppData\Local\Temp\chocolatey\vcredist140\14.40.33810\VC_redist.x64.exe' did not meet '3642e3f95d50cc193e4b5a0b0ffbf7fe2c08801517758b4c8aeb7105a091208a' for checksum type 'sha256'. Consider passing the actual checksums through with --checksum --checksum64 once you validate the checksums are appropriate. A less secure option is to pass --ignore-checksums if necessary.
The install of vcredist140 was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1'.
See log for details.

Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Failures

  • vcredist140 (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\vcredist140\tools\chocolateyInstall.ps1'.
    See log for details.
@Cancom-Stryjek Cancom-Stryjek changed the title Vcredist140 / Microsoft Visual C++ Vcredist140 / Microsoft Visual C++ fails to install Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant