问题描述:文件包在不同网络跟介质之间传输,导致文件破损,如何使用md5的方式去对比文件的完整性

tar:Child returned status 1

tar:Error is not recoverable:exiting now 

 

1.解压文件报错:这个文件是从百度云下载下来,然后用内网U盘传输到内网机器上,在传到服务器上进行压缩安装。解压文件一直失败

tar:Error is not recoverable:exiting now_内网

 

 

2. 技术支持提供了源文件的md5值,与我这个文件进行比较,结果发现不一致

tar:Error is not recoverable:exiting now_内网_02

 

[root@localhost] # md5sum dbscale-web-install.tar.gz

md5sum +文件名 得到一个md5值

 

 tar:Error is not recoverable:exiting now_百度云_03

 

 

3.最后找到了是内网U盘的传输给介质带来了损坏,进行了本机电脑上介质跟技术支持提供的md5值进行比较,一致吻合,最后可以解压成功

在windows上进行md5值的校验

CertUtil -hashfile C:\xxx.tar MD5

 

tar:Error is not recoverable:exiting now_解压文件_04