NFS yum安装报错error: %pre(rpcbind-0.2.0-49.el7.x86_64) scriptlet failed, exit status 1

Downloading packages:
(1/2): rpcbind-0.2.0-49.el7.x86_64.rpm                                                                                                                                                  |  60 kB  00:00:00     
(2/2): nfs-utils-1.3.0-0.68.el7.2.x86_64.rpm                                                                                                                                            | 413 kB  00:00:00     
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                                                                                          887 kB/s | 473 kB  00:00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
error: %pre(rpcbind-0.2.0-49.el7.x86_64) scriptlet failed, exit status 1
Error in PREIN scriptlet in rpm package rpcbind-0.2.0-49.el7.x86_64
error: rpcbind-0.2.0-49.el7.x86_64: install failed
  Installing : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64                                                                                                                                                         2/2 
warning: user rpcuser does not exist - using root
warning: user rpcuser does not exist - using root
warning: user rpcuser does not exist - using root
warning: user rpcuser does not exist - using root
chown: invalid user: 'rpcuser:rpcuser'
warning: %post(nfs-utils-1:1.3.0-0.68.el7.2.x86_64) scriptlet failed, exit status 1
Non-fatal POSTIN scriptlet failure in rpm package 1:nfs-utils-1.3.0-0.68.el7.2.x86_64
  Verifying  : 1:nfs-utils-1.3.0-0.68.el7.2.x86_64                                                                                                                                                         1/2 
  Verifying  : rpcbind-0.2.0-49.el7.x86_64                                                                                                                                                                 2/2 

Installed:
  nfs-utils.x86_64 1:1.3.0-0.68.el7.2                                                                                                                                                                          

Failed:
  rpcbind.x86_64 0:0.2.0-49.el7                                                                                                                                                                                

Complete!

这时候尝试创建账号,如果出现以下报错

[root@node01 ~]# useradd rpcuser
useradd: existing lock file /etc/shadow.lock without a PID
useradd: cannot lock /etc/shadow; try again later.

删除/etc/shadow.lock

[root@node01 ~]# rm -rf /etc/shadow.lock

然后重新yum安装nfs就可以了

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值