Bug 250741 - installing sndio 1.7.0 fails on 12.2
Summary: installing sndio 1.7.0 fails on 12.2
Status: Closed Not A Bug
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Fernando Apesteguía
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-10-30 16:39 UTC by Philip Homburg
Modified: 2020-11-30 09:41 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 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.