ScoopInstaller / Main

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

netcat@1.12: hash check failed #5797

Closed okpalandev closed 4 months ago

okpalandev commented 4 months ago

I had previously download nmap using winget command. After which, I tried to install netcat using --global resulted in this error:

Scoop was updated successfully!
Installing 'netcat' (1.12) [64bit] from 'main' bucket
netcat-win32-1.12.zip (109.3 KB) [================================================================================================================] 100%
Copy-Item: C:\Users\koodu\scoop\apps\scoop\current\lib\install.ps1:94
Line |
  94 |              Copy-Item $cached $to
     |              ~~~~~~~~~~~~~~~~~~~~~
     | Operation did not complete successfully because the file contains a virus or potentially unwanted software. :
     | 'C:\Users\koodu\scoop\cache\netcat#1.12#https_eternallybored.org_misc_netcat_netcat-win32-1.12.zip'
Checking hash of netcat-win32-1.12.zip ... Get-FileHash: C:\Users\koodu\scoop\apps\scoop\current\lib\install.ps1:679
Line |
 679 |      $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T …
     |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\ProgramData\scoop\apps\netcat\1.12\netcat-win32-1.12.zip' because it does not exist.
InvalidOperation: C:\Users\koodu\scoop\apps\scoop\current\lib\install.ps1:679
Line |
 679 |      $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T …
     |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | You cannot call a method on a null-valued expression.
ERROR Hash check failed!
App:         main/netcat
URL:         https://eternallybored.org/misc/netcat/netcat-win32-1.12.zip
Expected:    413f85a1dbac60ab5516742d76beff4f4da22b8ef1a424f10f36ec77e6d274b1
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=netcat%401.12%3a+hash+check+failed
github-actions[bot] commented 4 months ago

Cannot reproduce

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

Hash mismatch could be caused by these factors: