mandiant / flare-vm

A collection of software installations scripts for Windows systems that allows you to easily setup and maintain a reverse engineering environment on a VM.
Apache License 2.0
6.35k stars 896 forks source link

Installation Error with chocolatey command #459

Closed kaushik-reddy closed 1 year ago

kaushik-reddy commented 1 year ago

Hello Guys, I am facing an issue with the installation. Please check the screenshot for the error details Screenshot 2023-06-07 141149

Alqaly commented 1 year ago

same

Alqaly commented 1 year ago

https://github.com/mandiant/flare-vm/issues/458

I Did what they recommend But it didn't work I crack my head to make it work ..

Ok what i did is uninstall chocolatey

and install it agin but whith version 1.4.0

To remove Chocolatey version 2.0.0 and install Chocolatey version 1.4.0, you can follow these steps:

  1. Uninstall Chocolatey v2.0.0:

    • Open a command prompt with administrative privileges.
    • Run the following command to uninstall Chocolatey:
      choco uninstall chocolatey --version 2.0.0
  2. Verify that Chocolatey v2.0.0 has been uninstalled successfully by running:

    choco --version
  3. Install Chocolatey v1.4.0:

    • Download the Chocolatey installation script for version 1.4.0 from the following URL:

      https://chocolatey.org/install.ps1
    • Save the script to a local directory.

    • Open a command prompt with administrative privileges.

    • Navigate to the directory where you saved the installation script.

    • Run the following command to execute the installation script:

      powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File install.ps1
  4. Verify that Chocolatey v1.4.0 has been installed by running:

    choco --version

By following these steps, you should be able to remove Chocolatey version 2.0.0 and install Chocolatey version 1.4.0 on your system.

Ana06 commented 1 year ago

Closing this as it is a duplicate of https://github.com/mandiant/flare-vm/issues/458

$env:chocolateyVersion = '1.4.0' only works if choco is not installed (as it is used to specify the version during installation). Otherwise you have to uninstall it. After uninstalling it, you can run $env:chocolateyVersion = '1.4.0 and then the installation script as described in the README.

kaushik-reddy commented 1 year ago

458

I Did what they recommend But it didn't work I crack my head to make it work ..

Ok what i did is uninstall chocolatey

and install it agin but whith version 1.4.0

To remove Chocolatey version 2.0.0 and install Chocolatey version 1.4.0, you can follow these steps:

  1. Uninstall Chocolatey v2.0.0:

    • Open a command prompt with administrative privileges.
    • Run the following command to uninstall Chocolatey:
      choco uninstall chocolatey --version 2.0.0
  2. Verify that Chocolatey v2.0.0 has been uninstalled successfully by running:
    choco --version
  3. Install Chocolatey v1.4.0:

    • Download the Chocolatey installation script for version 1.4.0 from the following URL:
      https://chocolatey.org/install.ps1
    • Save the script to a local directory.
    • Open a command prompt with administrative privileges.
    • Navigate to the directory where you saved the installation script.
    • Run the following command to execute the installation script:
      powershell.exe -ExecutionPolicy Bypass -NoLogo -NonInteractive -NoProfile -File install.ps1
  4. Verify that Chocolatey v1.4.0 has been installed by running:
    choco --version

By following these steps, you should be able to remove Chocolatey version 2.0.0 and install Chocolatey version 1.4.0 on your system.

It worked, Thank you for the help.