03月12, 2020

pkg安装软件时出现创建用户失败解决

pkg安装软件时出现创建用户失败解决

问题示例:

[1/1] Installing package...
===> Creating groups.
Creating group 'package' with gid '000'.
===> Creating users
Creating user 'package' with uid '000'.
pw: user 'package' disappeared during update
pkg: PRE-INSTALL script failed

问题解析:数据库未同步
问题解决:

/usr/sbin/pwd_mkdb -p /etc/master.passwd

本文链接:https://www.moebsd.cn/post/pkg-install-user.html

-- EOF --

Comments