This pkg failed to install. 12.0-RELEASE-p3 > [3/3] Installing git-lite-2.21.0... > ===> Creating groups. > Creating group 'git_daemon' with gid '964'. > ===> Creating users > Creating user 'git_daemon' with uid '964'. > pw: user 'git_daemon' disappeared during update > pkg: PRE-INSTALL script failed
I was able to install other pkgs with users. This is a mess with /etc/group /etc/passwd I have to recreate some users and groups. Don't know how to properly identify the bug.
Please re-open this, and change it from "affects only me" to something more. It happened on my computer too. root@nyann:~ # freebsd-version 12.0-RELEASE-p3 root@nyann:~ # uname -a FreeBSD nyann.tanasinn.mochi 12.0-RELEASE-p3 FreeBSD 12.0-RELEASE-p3 GENERIC amd64 root@nyann:~ # pkg install git Updating FreeBSD repository catalogue... FreeBSD repository is up to date. All repositories are up to date. Checking integrity... done (0 conflicting) The following 1 package(s) will be affected (of 0 checked): New packages to be INSTALLED: git: 2.21.0 Number of packages to be installed: 1 The process will require 30 MiB more space. Proceed with this action? [y/N]: y [1/1] Installing git-2.21.0... ===> Creating groups. Using existing group 'git_daemon'. ===> Creating users Creating user 'git_daemon' with uid '964'. pw: user 'git_daemon' disappeared during update pkg: PRE-INSTALL script failed
Despite what pw says: root@nyann:~ # cat /etc/group | grep -i git git_daemon:*:964: root@nyann:~ # cat /etc/passwd | grep -i git git_daemon:*:964:964:git daemon:/nonexistent:/usr/sbin/nologin These files are affected.
This bug also happens when trying to install Murmur, for me. I found, however, this is a bug related to pw itself: root@nyann:~ # pw user show git_daemon pw: no such user `git_daemon' root@nyann:~ # pw user add foobarr pw: user 'foobarr' disappeared during update It seems pw is no longer able to add any sort of user correctly on my system, or on the system of anyone else affected by this bug. Please open this though, it is reproducible.
I was told the fix to this bug. pwd_mkdb -p /etc/master.passwd pwd_mkdb /etc/master.passwd After doing this, groups and users are creatable and the packages install.