[Adduser-devel] Bug#351480: exim4-base fails to install with debootstrap

Junichi Uekawa dancer at netfort.gr.jp
Sun Feb 5 14:49:50 UTC 2006


> Looks like adduser 3.81 does falsely assume that uid and gid can be
> equal.
> Can you try the following patch?
> --- adduser     (revision 458)
> +++ adduser     (working copy)
> @@ -331,7 +331,7 @@
>             printf STDERR gtx("No UID/GID pair is available in the range %d-%d (FIRST_SYS_UID - LAST_SYS_UID).\n"),$config{"first_system_uid"},$config{"last_system_uid"};
>              dief (gtx("The user %s' was not created.\n"),$new_name);
>          }
> -        $new_gid = $new_uid;
> +        $new_gid = &first_avail_gid($config{"first_system_gid"},$config{"last_system_gid"});
>         $ingroup_name = $new_name;
>      }
>      elsif (!defined($new_uid) && !$make_group_also) {

Hmm... this is a bit difficult to check; but I used the following
procedure to verify that your patch fixes the problem:

1. Verify failure
start up a clean chroot; update to latest adduser, remove Debian-exim
user from /etc/passwd, /etc/group, and remove the entry from

reinstall exim4-base

Adding system-user for exim (v4)
groupadd: GID 100 is not unique
adduser: `/usr/sbin/groupadd -g 100 Debian-exim' returned error code 4.  Aborting.
dpkg: error processing exim4-base (--configure):
 subprocess post-installation script returned error exit status 4
Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

2. modify adduser and try reinstalling exim4-base

root at dancer64:/# vi /usr/sbin/adduser
root at dancer64:/# apt-get install exim4-base --reinstall
Reading package lists... Done
Building dependency tree... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 30 not upgraded.
1 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Do you want to continue [Y/n]?
Setting up exim4-base (4.60-3) ...
Adding system-user for exim (v4)
chage: the shadow password file is not present

root at dancer64:/# id Debian-exim
uid=100(Debian-exim) gid=102(Debian-exim) groups=102(Debian-exim)

dancer@{debian.org,netfort.gr.jp}   Debian Project

More information about the Adduser-devel mailing list