从服务器里下载一个RPM, 下载完成后安装 可一直提示rpmReadSignature 错误,导致无法安装。
原来只要在 get 之前使用一个 binary 指令就可以解决。
报错信息如下:
[root@uga-hotel ~]# rpm -ivh android-tools-20130123git98d0789-5.el7.x86_64.rpm
错误:android-tools-20130123git98d0789-5.el7.x86_64.rpm:rpmReadSignature 函数执行失败:region trailer: BAD, tag 15872 type 2047 offset 28672 count 4096
错误:不能安装 android-tools-20130123git98d0789-5.el7.x86_64.rpm
解决方法如下:
[root@uga-hotel ~]# ftp 192.168.32.205
Connected to 192.168.32.205 (192.168.32.205).
220-FileZilla Server version 0.9.43 beta
220-written by Tim Kosse (tim.kosse@filezilla-project.org)
220 Please visit http://sourceforge.net/projects/filezilla/
Name (192.168.32.205:root): a
331 Password required for a
Password:
230 Logged on
Remote system type is UNIX.
ftp> binary
200 Type set to I
ftp> cd wangjc
250 CWD successful. "/wangjc" is current directory.
ftp>
ftp> get android-tools-20130123git98d0789-2.el6.x86_64.rpm
local: android-tools-20130123git98d0789-2.el6.x86_64.rpm remote: android-tools-20130123git98d0789-2.el6.x86_64.rpm
227 Entering Passive Mode (192,168,32,205,226,24)
150 Opening data channel for file download from server of "/wangjc/android-tools-20130123git98d0789-2.el6.x86_64.rpm"
226 Successfully transferred "/wangjc/android-tools-20130123git98d0789-2.el6.x86_64.rpm"
124880 bytes received in 2.5 secs (49.98 Kbytes/sec)
ftp>解决:
[root@uga-hotel ~]# rpm -ivh android-tools-20130123git98d0789-2.el6.x86_64.rpm
警告:android-tools-20130123git98d0789-2.el6.x86_64.rpm: 头V3 RSA/SHA256 Signature, 密钥 ID 0608b895: NOKEY
准备中... ################################# [100%]
正在升级/安装...
1:android-tools-20130123git98d0789-################################# [100%]
[root@uga-hotel ~]#
网页题目:linux下使用ftp下载rpm文件并安装时提示-创新互联
转载源于:https://www.cdcxhl.com/article16/peggg.html
成都网站建设公司_创新互联,为您提供App设计、云服务器、响应式网站、网站策划、搜索引擎优化、App开发
声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联