你好需要这个错误的帮助:
[root@localhost ~]# rpm --addsign php-composer-ca-bundle-1.0.2-1.fc22.remi.noarc
rpm: /usr/bin/rpmsign: No existe el fichero o el directorio
[root@localhost ~]# mkdir /usr/bin/rpmsign
rpm: /usr/bin/rpmsign: Permiso denegado
系统是Fedora 22 没有互联网连接通过yum install解决
答案 0 :(得分:3)
您收到一条错误消息,指出文件/usr/bin/rpmsign
不存在:
rpm: /usr/bin/rpmsign: No existe el fichero o el directorio
(英文,那将是rpm: /usr/bin/rpmsign: No such file or directory
。)
您只需将创建缺少的内容作为mkdir
的目录来回复:
[root@localhost ~]# mkdir /usr/bin/rpmsign
我想这遵循一定的逻辑,但问题是,那不能只是任何文件。 RPM正在寻找实际 rpmsign
可执行文件。当RPM尝试执行该目录时,您会收到错误Permiso denegado
(权限被拒绝)。 (我假设您的问题中有一条缺失的行,您尝试再次运行rpm --addsign
。)
因此,您需要做的是首先rmdir /usr/bin/rpmsign
,因为您创建的目录将妨碍安装实际的RPM。碰巧这是由rpm-sign
包提供的。您可以通过运行dnf whatprovides /usr/bin/rpmsign
找到 - 或者,您实际上可以直接告诉DNF(或Yum;无所谓)来安装它:
$ sudo dnf install /usr/bin/rpmsign
Last metadata expiration check: 2:45:11 ago on Wed May 4 08:23:32 2016.
Dependencies resolved.
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
rpm-sign x86_64 4.13.0-0.rc1.13.fc23 updates 55 k
Transaction Summary
================================================================================
Install 1 Package
Total download size: 55 k
Installed size: 17 k
Is this ok [y/N]: y
Downloading Packages:
rpm-sign-4.13.0-0.rc1.13.fc23.x86_64.rpm 140 kB/s | 55 kB 00:00
--------------------------------------------------------------------------------
Total 44 kB/s | 55 kB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Installing : rpm-sign-4.13.0-0.rc1.13.fc23.x86_64 1/1
Verifying : rpm-sign-4.13.0-0.rc1.13.fc23.x86_64 1/1
Installed:
rpm-sign.x86_64 4.13.0-0.rc1.13.fc23
Complete!