Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[email protected]: hash check failed #6398

Closed
lk9iota opened this issue Dec 15, 2024 · 2 comments
Closed

[email protected]: hash check failed #6398

lk9iota opened this issue Dec 15, 2024 · 2 comments

Comments

@lk9iota
Copy link

lk9iota commented Dec 15, 2024

I got the following error code when trying to install the Netcat package

$ scoop install main/netcat
WARN  Purging previous failed installation of netcat.
ERROR 'netcat' isn't installed correctly.
Removing older version (1.12).
'netcat' was uninstalled.
Installing 'netcat' (1.12) [64bit] from 'main' bucket
netcat-win32-1.12.zip (109.3 KB) [============================================================================] 100%
Copy-Item: C:\Users\JohnDoe\scoop\apps\scoop\current\lib\install.ps1:95
Line |
  95 |              Copy-Item $cached $to
     |              ~~~~~~~~~~~~~~~~~~~~~
     | Operation did not complete successfully because the file contains a virus or potentially unwanted software. :
     | 'C:\Users\JohnDoe\scoop\cache\netcat#1.12#d1e1447.zip'
Checking hash of netcat-win32-1.12.zip ... Get-FileHash: C:\Users\JohnDoe\scoop\apps\scoop\current\lib\install.ps1:634
Line |
 634 |      $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T …
     |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
     | Cannot find path 'C:\Users\JohnDoe\scoop\apps\netcat\1.12\netcat-win32-1.12.zip' because it does not exist.
InvalidOperation: C:\Users\JohnDoe\scoop\apps\scoop\current\lib\install.ps1:634
Line |
 634 |      $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:
Copy link
Contributor

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:

  • Network error
  • Antivirus configuration
  • Blocked site (Great Firewall of China, Corporate restrictions, ...)

@lk9iota
Copy link
Author

lk9iota commented Dec 15, 2024

it was actually the firewall rules lmao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant