安装shardingSphere最新发行版的gz压缩包解压报错,校验报错gzip: stdin: not in gzip format

解压报错

  • gzip: stdin: not in gzip format
[root@192 shardingsphere]# tar -xzvf apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz 

gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now

在这里插入图片描述

  • 百度了下,说是可能需要去除z,使用 tar -xvf,仍然不行;然后还有说是文件损坏的
  • 看了下官方文档,是需要先校验,保证内容没有被篡改,才能解压

校验报错

  • 没有下载KEYS,需要去官网下载
[root@192 shardingsphere]# gpg -i KEYS
gpg: directory `/root/.gnupg' created
gpg: new configuration file `/root/.gnupg/gpg.conf' created
gpg: WARNING: options in `/root/.gnupg/gpg.conf' are not yet active during this run
gpg: keyring `/root/.gnupg/secring.gpg' created
gpg: keyring `/root/.gnupg/pubring.gpg' created
gpg: can't open `KEYS'
  • KEYS没导入No public key,识别不到
[root@192 shardingsphere]# gpg --verify apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz.asc apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz
gpg: Signature made Sun 13 Jun 2021 10:19:56 AM CST using RSA key ID C8ADAD3A
gpg: Can't check signature: No public key
  • 去官网下载KEYS和asc文件,导入校验即可
 gpg --import KEYS
 gpg --verify downloaded_file.asc downloaded_file
  • 上面的都做了,但还是校验失败,说明源文件确实可能有问题,换一个源下载,我就是换了下面的http的第一个链接下载校验成功的
[root@192 shardingsphere]# gpg --verify apache-shardingsphere-5.0.0-alpha-shardingsphere-ui-bin.tar.gz.asc apache-shardingsphere-5.0.0-alpha-shardingsphere-ui-bin.tar.gz
gpg: Signature made Tue 17 Nov 2020 09:13:40 AM CST using RSA key ID C8ADAD3A
gpg: BAD signature from "panjuan <panjuan@apache.org>"

在这里插入图片描述

  • 再次解压,成功

正确的安装步骤

  • 下载 ShardingSphere-Proxy的最新发行版
  • 下载KEYSasc文件
  • 进行文件完整性校验,解压文件
# 下载tar文件
wget https://mirrors.bfsu.edu.cn/apache/shardingsphere/5.0.0-beta/apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz
# 下载 asc 文件
wget https://downloads.apache.org/shardingsphere/5.0.0-beta/apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz.asc
# 下载KEYS,导入
wget https://downloads.apache.org/shardingsphere/KEYS
gpg --import KEYS
# 文件校验
gpg --verify apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz.asc apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz
# 解压
tar -xzvf apache-shardingsphere-5.0.0-beta-shardingsphere-proxy-bin.tar.gz
  • 安装完成
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

坚持是一种态度

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值