非root安装rpm时,mockbuild does not exist



非root安装rpm时,mockbuild does not exist - using root

1、现象

[fedora@k8s-cluster-1-ycmwlao4q5wz-minion-0 ~]$ 
[fedora@k8s-cluster-1-ycmwlao4q5wz-minion-0 ~]$ sudo rpm -ivh docker-1.12.4-6.git1b5971a.fc25.src.rpm
Updating / installing...
   1:docker-2:1.12.4-6.git1b5971a.fc25warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
################################# [100%]
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root

2、添加mockbuild 用户

sudo useradd -s /sbin/nologin mockbuild

3、安装rpm

[fedora@k8s-cluster-1-ycmwlao4q5wz-minion-0 ~]$ sudo rpm -ivh docker-1.12.4-6.git1b5971a.fc25.src.rpm
Updating / installing...
   1:docker-2:1.12.4-6.git1b5971a.fc25################################# [100%]

 

posted on 2019-05-27 17:59  波神  阅读(10545)  评论(0编辑  收藏  举报


yg9538 July 22, 2022, 10:48 p.m. 559 收藏文档