0

I tried to install opendkim on the Ubuntu server using the Webmin command line, with the following command:

sudo apt-get -y install opendkim opendkim-tools

But I encounter a number of errors:

Setting up opendkim (2.11.0~alpha-11build1) ...
useradd: cannot lock /etc/passwd; try again later.
adduser: `/usr/sbin/useradd -d /var/run/opendkim -g opendkim -s /usr/sbin/nologin -u 111 opendkim' 
returned error code 1. 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
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have seen this solution that suggests using SUDO, but this is an automated process that I have no control over

2
  • Are there any stale .lock files in /etc (ex. ls -l /etc/*.lock)? Apr 19, 2021 at 21:20
  • .pwd.lock, passwd.lock, group.lock, gshadow.lock, shadow.lock Apr 19, 2021 at 22:43

0

You must log in to answer this question.

Browse other questions tagged .