sha256sum:“标准输入”:未验证文件

sha256sum:“标准输入”:未验证文件

我正在使用以下命令安装 PhoneInfoga,但它给了我这个错误:

sha256sum:“标准输入”:未验证文件

curl -sSL https://raw.githubusercontent.com/sundowndev/phoneinfoga/master/support/scripts/install | bash

Installing PhoneInfoga
Found version v2.4.1
Downloading version v2.4.1...
--2022-01-19 03:25:34--  https://github.com/sundowndev/phoneinfoga/releases/download/v2.4.1/PhoneInfoga_Linux_x86_64.tar.gz
Resolving github.com (github.com)... 140.82.121.3
Connecting to github.com (github.com)|140.82.121.3|:443... connected.
HTTP request sent, awaiting response... 302 Found
Location: https://objects.githubusercontent.com/github-production-release-asset-2e65be/154643390/021186ce-7b40-4038-ad57-d1e45dd68793?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220119%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220119T082542Z&X-Amz-Expires=300&X-Amz-Signature=13262d3f6cf2654ca8e22cfaabbb8555f78a21bfd8e917118d77e89114977384&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=154643390&response-content-disposition=attachment%3B%20filename%3Dphoneinfoga_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream [following]
--2022-01-19 03:25:35--  https://objects.githubusercontent.com/github-production-release-asset-2e65be/154643390/021186ce-7b40-4038-ad57-d1e45dd68793?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20220119%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20220119T082542Z&X-Amz-Expires=300&X-Amz-Signature=13262d3f6cf2654ca8e22cfaabbb8555f78a21bfd8e917118d77e89114977384&X-Amz-SignedHeaders=host&actor_id=0&key_id=0&repo_id=154643390&response-content-disposition=attachment%3B%20filename%3Dphoneinfoga_Linux_x86_64.tar.gz&response-content-type=application%2Foctet-stream
Resolving objects.githubusercontent.com (objects.githubusercontent.com)... 185.199.108.133, 185.199.110.133, 185.199.109.133, ...
Connecting to objects.githubusercontent.com (objects.githubusercontent.com)|185.199.108.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 6188940 (5.9M) [application/octet-stream]
Saving to: ‘PhoneInfoga_Linux_x86_64.tar.gz’

PhoneInfoga_Linux_x86_6 100%[==============================>]   5.90M  2.46MB/s    in 2.4s    

2022-01-19 03:25:38 (2.46 MB/s) - ‘PhoneInfoga_Linux_x86_64.tar.gz’ saved [6188940/6188940]

Verifying checksum...
sha256sum: 'standard input': no file was verified

答案1

那是因为安装脚本是下载的文件'磨练nfoga_Linux_x86_64.tar.gz'(注意大写“P”和“I”),而PhoneInfoga_checksums.txt文件包含同一文件的哈希值,以小写字符“p”和“i”表示p磨练nfoga_Linux_x86_64.tar.gz';

sha256sum命令在该校验和上找不到与下载的文件名匹配的相同文件名,并且它会报告sha256sum: 'standard input': no file was verified因为没有文件匹配,所以它停止执行编写的安装脚本的其余部分。

解决方案:

  1. 手动检查您下载的文件sha256sum PhoneInfoga_Linux_x86_64.tar.gz并使用来自的校验和进行验证PhoneInfoga_checksums.txt文件并执行tar xfv "PhoneInfoga_Linux_x86_64.tar.gz"以完成安装。
  2. 下载安装脚本并重命名下载的文件,然后检查校验和步骤以匹配中的文件名PhoneInfoga_checksums.txt文件。

相关内容