dbus pkg Fails Install

dave

Well-Known Member

Reaction score: 24
Messages: 431

Does anyone know how I might resolve this? It looks to me like the install script has bad logic for determining if the user/group already exist.

Code:
# pkg update & pkg upgrade
[...]
[26/86] Installing dbus-1.10.16_1...
===> Creating groups.
Creating group 'messagebus' with gid '556'.
===> Creating users
Creating user 'messagebus' with uid '556'.
pw: user 'messagebus' disappeared during update
pkg: PRE-INSTALL script failed
Code:
# cat /etc/passwd
# $FreeBSD: releng/11.2/etc/master.passwd 299365 2016-05-10 12:47:36Z bcr $
#
[...]
messagebus:*:556:556:D-BUS Daemon User:/nonexistent:/usr/sbin/nologin
Code:
# 
cat /etc/group                                                                                                                                                 ◀ 03:08:04 ◀ 2019-02-25
# $FreeBSD: releng/11.2/etc/group 294896 2016-01-27 06:28:56Z araujo $
#
[...]
messagebus:*:556:
 

ralphbsz

Son of Beastie

Reaction score: 1,613
Messages: 2,537

Search this forum; there was a related post about another package that had the same problem during upgrade. The key to fixing it was to rebuild the password database, which can be done as a side effect of vipw.
 
OP
dave

dave

Well-Known Member

Reaction score: 24
Messages: 431

Very helpful, thanks! I migrated this box from virtualbox to bhyve. I wonder if that's why the password db needs rebuilding? In any case, thanks again.
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 9,283
Messages: 33,826

I wonder if that's why the password db needs rebuilding?
I don't know why it happens, but I get it from time to time too. Luckily it's easy to recognize and fix.
 
Top