Closed basejumpa closed 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 vcxsrv;
and update/reinstall application
Hash mismatch could be caused by these factors:
2nd attempt (with your recommendation, still same network setup):
xxx@xxxMINGW64 ~/xxx(develop)
$ scoop install extras/vcxsrv
WARN Purging previous failed installation of vcxsrv.
ERROR 'vcxsrv' isn't installed correctly.
Removing older version (21.1.13.0).
'vcxsrv' was uninstalled.
Installing 'vcxsrv' (21.1.13.0) [64bit] from 'extras' bucket
vcxsrv-64.21.1.13.0.installer.exe (39,9 MB) [========================================================================================================================] 100%
Checking hash of vcxsrv-64.21.1.13.0.installer.exe ... Get-FileHash : The file 'C:\Users\aman\scoop\apps\vcxsrv\21.1.13.0\dl.7z' cannot be read: Operation did not complete successfully because the file contains a virus or
potentially unwanted software.
At C:\Users\xxx\scoop\apps\scoop\current\lib\install.ps1:634 char:16
+ $actual = (Get-FileHash -Path $file -Algorithm $algorithm).Hash.T ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\Users\xxx\s...21.1.13.0\dl.7z:PSObject) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : FileReadError,Get-FileHash
You cannot call a method on a null-valued expression.
At C:\Users\xxx\scoop\apps\scoop\current\lib\install.ps1:634 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\xxx\scoop\apps\scoop\current\lib\core.ps1:1379 char:16
+ return Get-Content $file -Encoding byte -TotalCount 8
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ReadError: (C:\Users\xxx\s...21.1.13.0\dl.7z:String) [Get-Content], IOException
+ FullyQualifiedErrorId : GetContentReaderIOError,Microsoft.PowerShell.Commands.GetContentCommand
ERROR Hash check failed!
App: extras/vcxsrv
URL: https://github.com/marchaesen/vcxsrv/releases/download/21.1.13/vcxsrv-64.21.1.13.0.installer.exe#/dl.7z
First bytes:
Expected: 970243b0e2c652949225d250bf37e87e2f321435d4d3757e94ff762e4578a281
Actual:
Please try again or create a new issue by using the following link and paste your console output:
https://github.com/ScoopInstaller/Extras/issues/new?title=vcxsrv%4021.1.13.0%3a+hash+check+failed
xxx@xxxMINGW64 ~/xxx(develop)
$
Checking hash of vcxsrv-64.21.1.13.0.installer.exe ... Get-FileHash : The file 'C:\Users\aman\scoop\apps\vcxsrv\21.1.13.0\dl.7z' cannot be read: Operation did not complete successfully because the file contains a virus or potentially unwanted software.
Depending on the antivirus software you are using and its settings it could block installation or quarantine binary in case of threat detection.
May relate to marchaesen/vcxsrv#23, marchaesen/vcxsrv#26.