git_daemon disappeared during update

balanga

Daemon

Reaction score: 101
Messages: 2,437

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?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 6,967
Messages: 28,965

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.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 6,967
Messages: 28,965

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.
 
Top