Bug 250741

Summary: installing sndio 1.7.0 fails on 12.2
Product: Ports & Packages Reporter: Philip Homburg <pch-freebsd-bugs-1>
Component: Individual Port(s)Assignee: Fernando ApesteguĂ­a <fernape>
Status: Closed Not A Bug    
Severity: Affects Only Me CC: a.wolk, fernape
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   

Description Philip Homburg 2020-10-30 16:39:52 UTC
pkg upgrade tries to install sndio 1.7.0 (on 12.2). This fails with:

[1/16] Installing sndio-1.7.0...
===> Creating groups.
Using existing group '_sndio'.
===> Creating users
Creating user '_sndio' with uid '702'.
pw: user '_sndio' disappeared during update
pkg: PRE-INSTALL script failed
Comment 1 Philip Homburg 2020-11-05 12:20:54 UTC
I found the issue. _sndio was in master.passwd but not in pwd.db.

After running pwd_mkdb it installed fine.

I have no clue where the inconsistency came from.
Comment 2 Fernando ApesteguĂ­a freebsd_committer freebsd_triage 2020-11-10 18:54:03 UTC
Glad to hear you figure it out.

Closing since it is resolved and there are no more notifications about this.
Comment 3 Adam Wolk 2020-11-30 09:41:32 UTC
I had the same issue after upgrading to 12.1-RELEASE-p10. This ticket helped me resolve it.

root@aw:~ # pkg install chromium                                                                                                                               
Updating FreeBSD repository catalogue...                                                                                                                       
FreeBSD repository is up to date.                                                                                                                              
All repositories are up to date.                                                                                                                               
Checking integrity... done (0 conflicting)                                                                                                                     
The following 2 package(s) will be affected (of 0 checked):                                                                                                    
                                                                                                                                                               
New packages to be INSTALLED:                                                                                                                                  
        chromium: 85.0.4183.121_1                                                                                                                              
        sndio: 1.7.0                                                           
                                                                               
Number of packages to be installed: 2                                          
                                                                               
The process will require 275 MiB more space.                              
                                                                               
Proceed with this action? [y/N]: y                                             
[1/2] Installing sndio-1.7.0...                                                
===> Creating groups.                                                          
Using existing group '_sndio'.                                                 
===> Creating users                                                            
Creating user '_sndio' with uid '702'.                                         
pw: user '_sndio' disappeared during update                                    
pkg: PRE-INSTALL script failed  



After running
root@aw:~ # pwd_mkdb /etc/master.passwd

I was able to install chrome as expected.


Proceed with this action? [y/N]: y
[1/2] Installing sndio-1.7.0...
===> Creating groups.
Using existing group '_sndio'.
===> Creating users
Using existing user '_sndio'.
[1/2] Extracting sndio-1.7.0: 100%
[2/2] Installing chromium-85.0.4183.121_1...
[2/2] Extracting chromium-85.0.4183.121_1: 100%
=====


I'm adding this comment to note that this wasn't affecting only a single user, it also blocked a popular package from installing.