Linux系统安装rpm文件:error: can‘t create transaction lock on /var/lib/rpm/.rpm.lock
在linux中用非root用户安装rpm包,提示can't create transaction lock on /var/lib/rpm/.rpm.lock错误,如下:warning: docker-ce-cli-18.09.8-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEYerror: can't
·
在linux中用非root用户安装rpm包,提示can't create transaction lock on /var/lib/rpm/.rpm.lock错误,如下:
warning: docker-ce-cli-18.09.8-3.el7.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
error: can't create transaction lock on /var/lib/rpm/.rpm.lock (Permission denied)
解决办法:
1)使用su命令登录root用户
2)在安装命令前增加sudo,临时增加权限
更多推荐
已为社区贡献1条内容
所有评论(0)