#1138692 /var/lib/dpkg/info/pcp.postinst: 92: groupadd: not found

Package:
pcp
Source:
pcp
Description:
System level performance monitoring and performance management
Submitter:
Johannes Schauer Marin Rodrigues
Date:
2026-06-08 22:53:02 UTC
Severity:
normal
#1138692#5
Date:
2026-06-02 11:43:11 UTC
From:
To:
Hi,

pcp fails to install because it tries calling groupadd in its postinst
script without depending on the passwd package:

Setting up pcp (7.1.5-1) ...
/var/lib/dpkg/info/pcp.postinst: 92: groupadd: not found
dpkg: error processing package pcp (--configure):
 old pcp package postinst maintainer script subprocess failed with exit status 127
Processing triggers for libc-bin (2.42-16) ...
Errors were encountered while processing:
 pcp
E: Sub-process /usr/bin/dpkg returned an error code (1)

Either add a dependency on passwd or change the groupadd call out for a
different mechanism like sysusers.

Thanks!

cheers, josch

#1138692#10
Date:
2026-06-08 22:35:34 UTC
From:
To:
Thanks for raising this issue Johannes.

We've been installing the sysusers.d files for some time, but the residual groupadd and useradd parts of the postinst scripts were never updated.

Will be fixed in the next PCP upload (date TBD).