我正在尝试安装 exim4,以下是该命令的输出sudo apt-get install exim4
Reading package lists... Done
Building dependency tree
Reading state information... Done
exim4 is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 60 not upgraded.
5 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n]
Setting up exim4-config (4.84.2-2+deb8u4) ...
Adding system-user for exim (v4)
groupadd: 'Debian-exim' is not a valid group name
adduser: `/usr/sbin/groupadd -g 115 Debian-exim' returned error code 3. Exiting.
dpkg: error processing package exim4-config (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of exim4-base:
exim4-base depends on exim4-config (>= 4.82) | exim4-config-2; however:
Package exim4-config is not configured yet.
Package exim4-config-2 is not installed.
Package exim4-config which provides exim4-config-2 is not configured yet.
dpkg: error processing package exim4-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4-daemon-light:
exim4-daemon-light depends on exim4-base (>= 4.84.2); however:
Package exim4-base is not configured yet.
dpkg: error processing package exim4-daemon-light (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exim4:
exim4 depends on exim4-base (>= 4.84.2-2+deb8u4); however:
Package exim4-base is not configured yet.
exim4 depends on exim4-base (<< 4.84.2-2+deb8u4.1); however:
Package exim4-base is not configured yet.
exim4 depends on exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom; however:
Package exim4-daemon-light is not configured yet.
Package exim4-daemon-heavy is not installed.
Package exim4-daemon-custom is not installed.
dpkg: error processing package exim4 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package exim4-daemon-light which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package exim4-daemon-light which provides mail-transport-agent is not configured yet.
dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
exim4-config
exim4-base
exim4-daemon-light
exim4
mailutils
E: Sub-process /usr/bin/dpkg returned an error code (1)
第一次失败是'Debian-exim' is not a valid group name
在脚本中/var/lib/dpkg/info/exim4-config.postinst
,我发现了引发错误的命令:
adduser --system --group --quiet --home /var/spool/exim4 --no-create-home --disabled-login --force-badname Debian-exim
该命令的输出是
groupadd: 'Debian-exim' is not a valid group name
adduser: `/usr/sbin/groupadd -g 115 Debian-exim' returned error code 3. Exiting.
在此之前,我能够在三台机器上安装 Exim4。这次我认为我做的一切都一样。
我不知道为什么不想用选项创建带有大写字母的组--force-badname
。
如何解决这个问题,并创建这个系统组?
Debian GNU/Linux 8.8 (jessie)
更新
我假设该命令adduser --group
正在运行groupadd
,但不支持选项--force-badname
。但我仍然不知道该如何处理它。
答案1
我在安装 backuppc 时遇到了同样的问题。
我把上面的命令替换adduser
为addgroup
,然后创建了 Debain-exim 组名。之后安装成功
addgroup --system --group --quiet --home /var/spool/exim4 --no-create-home --disabled-login --force-badname Debian-exim
笔记:
- 我没有检查参数是否合适,
addgroup
但我没有收到错误 - 我还删除了
--quiet
论点,以便我能够看到发生了什么