ScoopInstaller / Main

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

netcat@1.12: hash check failed #5798

Closed zengjiapei3000 closed 1 month ago

zengjiapei3000 commented 1 month ago
~ [1]> scoop install netcat

Installing 'netcat' (1.12) [64bit] from 'main' bucket
proxy: https://eternallybored.org/misc/netcat/netcat-win32-1.12.zip
netcat-win32-1.12.zip (109.3 KB) [=======================================================================================] 100%
Checking hash of netcat-win32-1.12.zip ... Get-FileHash : The file 'D:\Applications\Scoop\apps\netcat\1.12\netcat-win32-1.12.zip' cannot be read: Operation did not complete
successfully because the file contains a virus or potentially unwanted software.
At D:\Applications\Scoop\apps\scoop\current\lib\install.ps1:679 char:16
+     $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (D:\Applications...-win32-1.12.zip:PSObject) [Write-Error], WriteErrorException
    + FullyQualifiedErrorId : FileReadError,Get-FileHash

You cannot call a method on a null-valued expression.
At D:\Applications\Scoop\apps\scoop\current\lib\install.ps1:679 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 D:\Applications\Scoop\apps\scoop\current\lib\core.ps1:1377 char:16
+         return Get-Content $file -Encoding byte -TotalCount 8
+                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ReadError: (D:\Applications...-win32-1.12.zip:String) [Get-Content], IOException
    + FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand

ERROR Hash check failed!
App:         main/netcat
URL:         https://eternallybored.org/misc/netcat/netcat-win32-1.12.zip
First bytes:
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

image

github-actions[bot] commented 1 month 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: