ScoopInstaller / Main

📦 The default bucket for Scoop.
https://scoop.sh
The Unlicense
1.59k stars 959 forks source link

nim@2.0.2: hash check failed #5654

Closed abdullahau closed 6 months ago

abdullahau commented 6 months ago

I had installed nim using scoop before uninstalling it. However, when I am trying to reinstall, I get the following has error:

Checking hash of nim-2.0.2_x64.zip ... Get-FileHash : The file 'C:\Users\Abdullah-Mahmood\scoop\apps\nim\2.0.2\nim-2.0.2_x64.zip' cannot be read: Operation
did not complete successfully because the file contains a virus or potentially unwanted software.
At C:\Users\Abdullah-Mahmood\scoop\apps\scoop\current\lib\install.ps1:674 char:16
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\Users\Abdull...m-2.0.2_x64.zip:PSObject) [Write-Error], WriteErrorExcepti
   on
    + FullyQualifiedErrorId : FileReadError,Get-FileHash

You cannot call a method on a null-valued expression.
At C:\Users\Abdullah-Mahmood\scoop\apps\scoop\current\lib\install.ps1:674 char:5
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (:) [], RuntimeException
    + FullyQualifiedErrorId : InvokeMethodOnNull

Get-Content : Operation did not complete successfully because the file contains a virus or potentially unwanted
software.
At C:\Users\Abdullah-Mahmood\scoop\apps\scoop\current\lib\core.ps1:1176 char:16
+         return Get-Content $file -Encoding byte -TotalCount 8
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (C:\Users\Abdull...m-2.0.2_x64.zip:String) [Get-Content], IOException
    + FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand

ERROR Hash check failed!
App:         main/nim
URL:         https://nim-lang.org/download/nim-2.0.2_x64.zip
First bytes:
Expected:    948dbf8e3fdd1b5242e3d662fd25c50e9b2586e097be8a85c22d7db2bde70bad
Actual:

Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Main/issues/new?title=nim%402.0.2%3a+hash+check+failed
github-actions[bot] commented 6 months ago

Cannot reproduce

Are you sure your scoop is up to date? Clean cache and reinstall Please run scoop update; scoop cache rm nim; and update/reinstall application

Hash mismatch could be caused by these factors: