git_daemon disappeared during update

I just tried pkg install git and got:-
Code:
Creating user 'git_daemon' with uid '964'.
pw: user 'git_daemon' disappeared during update
pkg: PRE-INSTALL script failed
Anyone seen this before?
 
Yeah, I get that too from time to time. Your password database is out of sync with /etc/passwd. The quickest and simplest solution is to run vipw(8), save and exit without making any changes. That should get them back into sync again.
 
The trick only works for errors like "user <blah> disappeared during update", that's an indication the databases are out of sync. You can also try forcing a reinstall: pkg install -f git.
 
Got that same error as this one indicates, here's my output:


[greg@freebsd /usr/local/etc]$ pkg install -f 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.20.1

Number of packages to be installed: 1

The process will require 29 MiB more space.

Proceed with this action? [y/N]: y
[1/1] Installing git-2.20.1...
===> 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


No dice as well.
 
The vipw(8) trick works but you must save the file (don't make any changes though). The save triggers the rebuild. If you don't save the file nothing is triggered.
 
I experienced the same problem during installation of Git and the mentioned rebuild of the password database solved it. What causes this problem though?
 
Hi everyone,

Some related here... After upgrade git the git gui command stops working.

Doing a reinstallation of git fixes the problem... Something is broken with the git upgrade, not only the password database.

Regards.
 
i know it's a year later, but i had the same problem. as above i did "pwd_mkdb -p /etc/master.passwd " which worked. in my experience, if you run vipw you need to actually make a change to trigger it to rebuild. well that's my experience anyway. my problem was with znc

[1/1] Installing znc-1.7.5_2...
===> Creating groups.
Using existing group 'znc'.
===> Creating users
Creating user 'znc' with uid '897'.
pw: user 'znc' disappeared during update
pkg: PRE-INSTALL script failed
 
Back
Top