![无法在 webmin(Ubuntu)中安装 opendkim:“useradd:无法锁定 /etc/passwd;请稍后再试。”](https://linux22.com/image/936709/%E6%97%A0%E6%B3%95%E5%9C%A8%20webmin%EF%BC%88Ubuntu%EF%BC%89%E4%B8%AD%E5%AE%89%E8%A3%85%20opendkim%EF%BC%9A%E2%80%9Cuseradd%EF%BC%9A%E6%97%A0%E6%B3%95%E9%94%81%E5%AE%9A%20%2Fetc%2Fpasswd%EF%BC%9B%E8%AF%B7%E7%A8%8D%E5%90%8E%E5%86%8D%E8%AF%95%E3%80%82%E2%80%9D.png)
我尝试使用 Webmin 命令行在 Ubuntu 服务器上安装 opendkim,命令如下:
sudo apt-get -y install opendkim opendkim-tools
但我遇到了一些错误:
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)
我见过此解决方案这建议使用 SUDO,但这是一个我无法控制的自动化过程