W10 choco install ghc fail

This is a new laptop, I already had git and didn't want atom, so tried this:
choco install supercollider sc3plugins msys2 ghc

  • looks like ghc did not install

...
ghc v8.10.2 [Approved]
ghc package files install completed. Performing other installation steps.
The package ghc wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y

Downloading ghc 64 bit
from 'https://downloads.haskell.org/~ghc/8.10.2/ghc-8.10.2-x86_64-unknown-mingw32.tar.xz'
Progress: 4% - Saving 17.96 MB of 408.45 MB ERROR: The remote file either doesn't exist, is unauthorized, or is forbidden for url 'https://downloads.haskell.org/~ghc/8.10.2/ghc-8.10.2-x86_64-unknown-mingw32.tar.xz'. Exception calling "Read" with "3" argument(s): "The decryption operation failed, see inner exception."
Error computing hash for 'C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall'
Hash will be special code for locked file or file too big instead.
Captured error:
The process cannot access the file 'C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall' because it is being used by another process.
The install of ghc was NOT successful.
Error while running 'C:\ProgramData\chocolatey\lib\ghc\tools\chocolateyInstall.ps1'.
See log for details.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
(5) Access is denied: [\?\C:\ProgramData\chocolatey\lib-bad\ghc]
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
(5) Access is denied: [\?\C:\ProgramData\chocolatey\lib-bad\ghc]
Maximum tries of 3 reached. Throwing error.
This is try 1/3. Retrying after 300 milliseconds.
Error converted to warning:
(32) The process cannot access the file because it is being used by another process: [\?\C:\ProgramData\chocolatey\lib-bad\ghc\tmp\ghcInstall]
This is try 2/3. Retrying after 400 milliseconds.
Error converted to warning:
(32) The process cannot access the file because it is being used by another process: [\?\C:\ProgramData\chocolatey\lib-bad\ghc\tmp\ghcInstall]
Maximum tries of 3 reached. Throwing error.
Could not move bad package to failure directory It will show as installed.
C:\ProgramData\chocolatey\lib\ghc
The error:
(32) The process cannot access the file because it is being used by another process: [\?\C:\ProgramData\chocolatey\lib-bad\ghc\tmp\ghcInstall]

Chocolatey installed 6/8 packages. 2 packages failed.
See the log for details (C:\ProgramData\chocolatey\logs\chocolatey.log).

Installed:

  • chocolatey-core.extension v1.3.5.1
  • msys2 v20200816.0.0
  • cabal v3.2.0.0
  • sc3plugins v3.9.0
  • git v2.28.0
  • supercollider v3.9.3.0

Failures

  • ghc (exited 404) - Error while running 'C:\ProgramData\chocolatey\lib\ghc\tools\chocolateyInstall.ps1'.
    See log for details.
  • git.install - User canceled powershell portion of installation for 'C:\ProgramData\chocolatey\lib\git.install\tools\chocolateyInstall.ps1'.
    Specify -n to skip automated script actions.

That's strange.. If you run it again, does the same happen?

I guess the download had some bad bits
Better this time

choco install ghc
Chocolatey v0.10.15
Installing the following packages:
ghc
By installing you accept licenses for the packages.
Progress: Downloading ghc 8.10.2... 100%

ghc v8.10.2 [Approved]
ghc package files install completed. Performing other installation steps.
The package ghc wants to run 'chocolateyInstall.ps1'.
Note: If you don't run this script, the installation will fail.
Note: To confirm automatically next time, use '-y' or consider:
choco feature enable -n allowGlobalConfirmation
Do you want to run the script?([Y]es/[A]ll - yes to all/[N]o/[P]rint): y

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 'E529D31FF4F41E47FA891BD609B4B87A82D2949F6E6BF1DEAC20DE02DD6425F4'.
Downloading ghc 64 bit
from 'https://downloads.haskell.org/~ghc/8.10.2/ghc-8.10.2-x86_64-unknown-mingw32.tar.xz'
Progress: 100% - Completed download of C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall (408.45 MB).
Download of ghcInstall (408.45 MB) completed.
Hashes match.
C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall
Extracting C:\ProgramData\chocolatey\lib\ghc\tmp\ghcInstall to C:\ProgramData\chocolatey\lib\ghc\tools...
C:\ProgramData\chocolatey\lib\ghc\tools
Extracting C:\ProgramData\chocolatey\lib\ghc\tools\ghcInstall~ to C:\ProgramData\chocolatey\lib\ghc\tools...
C:\ProgramData\chocolatey\lib\ghc\tools
PATH environment variable does not have C:\ProgramData\chocolatey\lib\ghc\tools\ghc-8.10.2\bin in it. Adding...
Hiding shims for 'C:\ProgramData\chocolatey\lib\ghc\tools'.
Environment Vars (like PATH) have changed. Close/reopen your shell to
see the changes (or in powershell/cmd.exe just type refreshenv).
The install of ghc was successful.
Software installed to 'C:\ProgramData\chocolatey\lib\ghc\tools'

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

Great, does it work? :slight_smile: