非root安裝rpm時,mockbuild does not exist - using root

一、現象git

[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

二、添加mockbuild 用戶docker

sudo useradd -s /sbin/nologin mockbuild

三、安裝rpmui

[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%]
相關文章
相關標籤/搜索