gzip: stdin: unexpected end of file Linux解压文件出错

[root@localhost jdk1.8]# tar -zxvf jdk-8u161-linux-x64.tar.gz
jdk1.8.0_161/
jdk1.8.0_161/javafx-src.zip

gzip: stdin: unexpected end of file
tar: 归档文件中异常的 EOF
tar: 归档文件中异常的 EOF
tar: Error is not recoverable: exiting now
 

[root@localhost jdk1.8]# ls -lht jdk-8u161-linux-x64.tar.gz
-rw-r--r--. 1 root root 420K 10月 25 14:41 jdk-8u161-linux-x64.tar.gz
[root@localhost jdk1.8]# 
[root@localhost jdk1.8]# 
[root@localhost jdk1.8]# 
[root@localhost jdk1.8]# 
[root@localhost jdk1.8]# 
[root@localhost jdk1.8]# ls -lht jdk-8u161-linux-x64.tar.gz
-rwxrw-rw-. 1 root root 181M 10月 25 10:58 jdk-8u161-linux-x64.tar.gz
 

查了一下是因为复制过来的文件损坏了 再次复制一次就解决了

  • 3
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
这个错误提示是由gzip命令产生的,它表示在文件时遇到了意外的文件结尾。这可能是由于文件损坏或不完整导致的。\[1\]\[2\]\[3\]要决这个问题,你可以尝试重新下载或获取完整的文件,并确保文件没有被损坏。如果问题仍然存在,你可以尝试使用其他缩工具或联系文件的提供者以获取更多帮助。 #### 引用[.reference_title] - *1* [gzip: stdin: unexpected end of file tar: Unexpected EOF in archive tar: Unexpected EOF in archive ta](https://blog.csdn.net/weixin_45733714/article/details/124402222)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *2* [虚拟机Linux文件报错:gzip: stdin: unexpected end of file tar: 归档文件中异常的 EOF tar: Error ...](https://blog.csdn.net/weixin_44767236/article/details/127348690)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] - *3* [gzip: stdin: unexpected end of file tar: 归档文件中异常的 EOF决办法(多次重新下载无效)](https://blog.csdn.net/weixin_44439003/article/details/123543818)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v91^control_2,239^v3^insert_chatgpt"}} ] [.reference_item] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值