Errro installing dkim in fresh instalation

SYSTEM INFORMATION
OS type and version Ubuntu Linux 22.04.3
Webmin version 2.101
Usermin version 2.001
Virtualmin version 7.8.2
Theme version 21.04
Package updates All installed packages are up to date
just after to finish a new server ( w/o) problems , i found problem sending mail, looking for i found dkim not install . i tried using virtualmin, but i get an error, but all option in VM seem to be work… but mail still has problem. an investigation give me eroror in dkim compoments:

root@mnsvr:~# apt-get install dkim-filter
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
E: Unable to locate package dkim-filter
root@mnsvr:~# apt-get -y -f install opendkim
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
opendkim is already the newest version (2.11.0~beta2-6).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
[master 140a12d] saving uncommitted changes in /etc prior to apt run
4 files changed, 16 insertions(+), 1 deletion(-)
create mode 100755 webmin/xterm/shellserver.pl
Setting up opendkim (2.11.0~beta2-6) …
groupadd: existing lock file /etc/group.lock with an invalid PID ‘88173

groupadd: cannot lock /etc/group; try again later.
adduser: `/sbin/groupadd -g 130 opendkim’ returned error code 10. Exiting.
dpkg: error processing package opendkim (–configure):
installed opendkim package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
opendkim
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

any help, please???

We don’t provide the opendkim package, so I can’t say for sure what it’s trying to do or why, but…

It looks like /etc/group was locked when it tried to configure. But it also looks like the process that locked it is dead (“invalid PID”). So…it’s probably safe to delete that lock and run the configure step again, with:

dpkg --configure -a

i get this:
root@mnsvr:~# dpkg --configure -a
Setting up opendkim (2.11.0~beta2-6) …
groupadd: existing lock file /etc/group.lock with an invalid PID ‘88173

groupadd: cannot lock /etc/group; try again later.
adduser: `/sbin/groupadd -g 130 opendkim’ returned error code 10. Exiting.
dpkg: error processing package opendkim (–configure):
installed opendkim package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
opendkim
root@mnsvr:~# ^C

sorry i dont delete the lock

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.