Failure due to existing/required .NET Release?
Hi,
Using the installation script the process aborts with errors:
2019-08-31 12:40:24,729 1968 [INFO ] - Running on: Windows 7 Professional, (Professional), Windows Kernel: 6.1.7601
2019-08-31 12:40:24,776 1968 [INFO ] - Installing for OS: Win7 SP1/2008R2 SP1
2019-08-31 12:40:24,838 1968 [ERROR] - ERROR: .NET Framework 4.5.2 or later required. Use package named "dotnet4.5 to upgrade. Your .NET Release is "378389" but needs to be at least "378389".
2019-08-31 12:40:25,088 1968 [ERROR] - The install of powershell was NOT successful.
2019-08-31 12:40:25,088 1968 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'.
See log for details.
2019-08-31 12:40:27,120 1968 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-08-31 12:40:27,120 1968 [INFO ] -
2019-08-31 12:40:27,135 1968 [ERROR] - Failures
2019-08-31 12:40:27,135 1968 [ERROR] - - powershell (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'.
See log for details.
Relevant section from the log file:
2019-08-31 12:40:24,526 1968 [DEBUG] - ---------------------------Script Execution---------------------------
2019-08-31 12:40:24,526 1968 [DEBUG] - Running 'ChocolateyScriptRunner' for PowerShell v5.1.14409.20180811 with packageScript 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1', packageFolder:'C:\ProgramData\chocolatey\lib\PowerShell', installArguments: '', packageParameters: '',
2019-08-31 12:40:24,526 1968 [DEBUG] - Running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
2019-08-31 12:40:24,729 1968 [INFO ] - Running on: Windows 7 Professional, (Professional), Windows Kernel: 6.1.7601
2019-08-31 12:40:24,776 1968 [INFO ] - Installing for OS: Win7 SP1/2008R2 SP1
2019-08-31 12:40:24,838 1968 [ERROR] - ERROR: .NET Framework 4.5.2 or later required. Use package named "dotnet4.5 to upgrade. Your .NET Release is "378389" but needs to be at least "378389".
2019-08-31 12:40:24,854 1968 [DEBUG] - Built-in PowerShell host called with ['[System.Threading.Thread]::CurrentThread.CurrentCulture = '';[System.Threading.Thread]::CurrentThread.CurrentUICulture = ''; & import-module -name 'C:\ProgramData\chocolatey\helpers\chocolateyInstaller.psm1'; & 'C:\ProgramData\chocolatey\helpers\chocolateyScriptRunner.ps1' -packageScript 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1' -installArguments '' -packageParameters '''] exited with '-1'.
2019-08-31 12:40:24,854 1968 [DEBUG] - Calling command ['"C:\Windows\System32\shutdown.exe" /a']
2019-08-31 12:40:24,885 1968 [DEBUG] - Command ['"C:\Windows\System32\shutdown.exe" /a'] exited with '1116'
2019-08-31 12:40:25,010 1968 [DEBUG] - Capturing package files in 'C:\ProgramData\chocolatey\lib\PowerShell'
2019-08-31 12:40:25,010 1968 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nupkg'
with checksum 'EFEFB5386C6A693490A02BB189EA148D'
2019-08-31 12:40:25,010 1968 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\PowerShell.nuspec'
with checksum 'EE595452035C1EDB3CD1FC4B3FC3AF27'
2019-08-31 12:40:25,010 1968 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'
with checksum '08A23313BC54709344AE618CE6020BE3'
2019-08-31 12:40:25,010 1968 [DEBUG] - Found 'C:\ProgramData\chocolatey\lib\PowerShell\tools\chocolateyUninstall.ps1'
with checksum '06BDEE8254D1120913F843855A88FA5B'
2019-08-31 12:40:25,026 1968 [DEBUG] - Attempting to create directory "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811".
2019-08-31 12:40:25,073 1968 [DEBUG] - There was no original file at 'C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.files'
2019-08-31 12:40:25,073 1968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.arguments".
2019-08-31 12:40:25,073 1968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.extra".
2019-08-31 12:40:25,073 1968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.version".
2019-08-31 12:40:25,073 1968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.sxs".
2019-08-31 12:40:25,073 1968 [DEBUG] - Attempting to delete file "C:\ProgramData\chocolatey\.chocolatey\PowerShell.5.1.14409.20180811\.pin".
2019-08-31 12:40:25,073 1968 [DEBUG] - Sending message 'HandlePackageResultCompletedMessage' out if there are subscribers...
2019-08-31 12:40:25,088 1968 [ERROR] - The install of powershell was NOT successful.
2019-08-31 12:40:25,088 1968 [ERROR] - Error while running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'.
See log for details.
2019-08-31 12:40:25,088 1968 [DEBUG] - Moving 'C:\ProgramData\chocolatey\lib\PowerShell'
to 'C:\ProgramData\chocolatey\lib-bad\PowerShell'
2019-08-31 12:40:27,088 1968 [DEBUG] - Attempting to delete file "C:\Users\root\AppData\Local\NuGet\Cache\PowerShell.5.1.14409.20180811.nupkg".
2019-08-31 12:40:27,120 1968 [WARN ] -
Chocolatey installed 0/1 packages. 1 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).
2019-08-31 12:40:27,120 1968 [INFO ] -
2019-08-31 12:40:27,135 1968 [ERROR] - Failures
2019-08-31 12:40:27,135 1968 [ERROR] - - powershell (exited -1) - Error while running 'C:\ProgramData\chocolatey\lib\PowerShell\tools\ChocolateyInstall.ps1'.
See log for details.
2019-08-31 12:40:27,135 1968 [DEBUG] - Sending message 'PostRunMessage' out if there are subscribers...
2019-08-31 12:40:27,151 1968 [DEBUG] - Exiting with -1
Any tips?
Thank you!
@0xtf We've recently added a new requirement for FLARE VM:
Chocolatey now requires PowerShell v3 (or higher) and .NET 4.0 (or higher) due to recent upgrades to TLS 1.2. Please ensure .NET 4+ and PowerShell v3+ are installed prior to attempting FLARE VM installation. Below are links to download .NET 4.5 and WMF 5.1 (PowerShell 5.1).
.NET 4.5 https://www.microsoft.com/en-us/download/details.aspx?id=30653 WMF 5.1 https://www.microsoft.com/en-us/download/details.aspx?id=54616
Please install these, reboot, and attempt a FLARE VM installation
Thank you for your feedback! We've been working on major updates to FLARE VM over the last year. The now revamped FLARE VM has just been released and will make the project more open and maintainable. Please check out our blog post at https://www.mandiant.com/resources/blog/flarevm-open-to-public and give the new installation a try.
If this problem still persists with the new installation, please report:
- new tools or tool-related issues at https://github.com/mandiant/VM-Packages/issues
- ideas and issues related to the installer script and configuration at https://github.com/mandiant/flare-vm/issues
Please note that we use this message to close all legacy issues in this repository. We look forward to your feedback and support for the next generation of FLARE VM.