Junichi Uekawa
2006-Feb-05 06:34 UTC
[Adduser-devel] Bug#351480: exim4-base fails to install with debootstrap
Package: adduser Version: 3.81 Severity: serious I guess it''s a adduser bug; adduser --system --group --home /var/spool/exim4 --no-create-home \ --disabled-login --force-badname Debian-exim > /dev/null is failing due to new adduser. O: Adding system-user for exim (v4) O: groupadd: GID 100 is not unique O: adduser: `/usr/sbin/groupadd -g 100 Debian-exim'' returned error code 4. Aborting. O: Setting up libgnutls12 (1.2.9-2) ... P: Configuring package libgnutls12 O: dpkg: error processing exim4-config (--configure): O: subprocess post-installation script returned error exit status 4 O: dpkg: dependency problems prevent configuration of exim4-base: O: exim4-base depends on exim4-config (>= 4.30) | exim4-config-2; however: O: Package exim4-config is not configured yet. O: Package exim4-config-2 is not installed. O: Package exim4-config which provides exim4-config-2 is not configured yet. O: dpkg: error processing exim4-base (--configure): O: dependency problems - leaving unconfigured O: O: Setting up libpcre3 (6.4-1.1) ... P: Configuring package libpcre3 O: O: dpkg: dependency problems prevent configuration of exim4-daemon-light: O: exim4-daemon-light depends on exim4-base (>= 4.60); however: O: Package exim4-base is not configured yet. O: dpkg: error processing exim4-daemon-light (--configure): O: dependency problems - leaving unconfigured O: dpkg: dependency problems prevent configuration of at: O: at depends on mail-transport-agent; however: O: Package mail-transport-agent is not installed. O: Package exim4-daemon-light which provides mail-transport-agent is not configured yet. O: dpkg: error processing at (--configure): O: dependency problems - leaving unconfigured O: dpkg: dependency problems prevent configuration of exim4: O: exim4 depends on exim4-base (>= 4.60); however: O: Package exim4-base is not configured yet. O: exim4 depends on exim4-daemon-light | exim4-daemon-heavy | exim4-daemon-custom; however: O: Package exim4-daemon-light is not configured yet. O: Package exim4-daemon-heavy is not installed. O: Package exim4-daemon-custom is not installed. O: dpkg: error processing exim4 (--configure): O: dependency problems - leaving unconfigured O: Setting up telnet (0.17-32) ... P: Configuring package telnet O: regards, junichi -- dancer@{debian.org,netfort.gr.jp} Debian Project
Marc Haber
2006-Feb-05 09:48 UTC
[Adduser-devel] Bug#351480: exim4-base fails to install with debootstrap
tags #351480 confirmed patch moreinfo reassign #351480 adduser thanks On Sun, Feb 05, 2006 at 03:16:27PM +0900, Junichi Uekawa wrote:> I guess it''s a adduser bug;It is.> adduser --system --group --home /var/spool/exim4 --no-create-home \ > --disabled-login --force-badname Debian-exim > /dev/null > > is failing due to new adduser.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) { Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
Debian Bug Tracking System
2006-Feb-05 09:48 UTC
[Adduser-devel] Processed: Re: Bug#351480: exim4-base fails to install with debootstrap
Processing commands for control@bugs.debian.org:> tags #351480 confirmed patch moreinfoBug#351480: exim4-base fails to install with debootstrap There were no tags set. Tags added: confirmed, patch, moreinfo> reassign #351480 adduserBug#351480: exim4-base fails to install with debootstrap Bug reassigned from package `adduser'' to `adduser''.> thanksStopping processing here. Please contact me if you need assistance. Debian bug tracking system administrator (administrator, Debian Bugs database)
Junichi Uekawa
2006-Feb-05 15:03 UTC
[Adduser-devel] Bug#351480: exim4-base fails to install with debootstrap
Hi,> 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 /var/lib/dpkg/statoverride; 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: exim4-base E: Sub-process /usr/bin/dpkg returned an error code (1) 2. modify adduser and try reinstalling exim4-base root@dancer64:/# vi /usr/sbin/adduser root@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@dancer64:/# id Debian-exim uid=100(Debian-exim) gid=102(Debian-exim) groups=102(Debian-exim) regards, junichi -- dancer@{debian.org,netfort.gr.jp} Debian Project
Debian Bug Tracking System
2006-Feb-07 08:41 UTC
[Adduser-devel] Bug#351480: marked as done (exim4-base fails to install with debootstrap)
Your message dated Sun, 05 Feb 2006 13:32:23 -0800 with message-id <E1F5rUd-0006sU-3C@spohr.debian.org> and subject line Bug#351480: fixed in adduser 3.82 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: Junichi Uekawa <dancer@netfort.gr.jp> Subject: exim4-base fails to install with debootstrap Date: Sun, 05 Feb 2006 15:16:27 +0900 Size: 3794 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060205/ac58d616/attachment-0002.mht -------------- next part -------------- An embedded message was scrubbed... From: Marc Haber <mh+debian-packages@zugschlus.de> Subject: Bug#351480: fixed in adduser 3.82 Date: Sun, 05 Feb 2006 13:32:23 -0800 Size: 2900 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060205/ac58d616/attachment-0003.mht
Debian Bug Tracking System
2006-Feb-07 08:41 UTC
[Adduser-devel] Bug#351480: marked as done (exim4-base fails to install with debootstrap)
Your message dated Sun, 05 Feb 2006 13:32:23 -0800 with message-id <E1F5rUd-0006sW-4e@spohr.debian.org> and subject line Bug#351552: fixed in adduser 3.82 has caused the attached Bug report to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what I am talking about this indicates a serious mail system misconfiguration somewhere. Please contact me immediately.) Debian bug tracking system administrator (administrator, Debian Bugs database) -------------- next part -------------- An embedded message was scrubbed... From: Junichi Uekawa <dancer@netfort.gr.jp> Subject: exim4-base fails to install with debootstrap Date: Sun, 05 Feb 2006 15:16:27 +0900 Size: 3794 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060205/e13cb5a2/attachment.mht -------------- next part -------------- An embedded message was scrubbed... From: Marc Haber <mh+debian-packages@zugschlus.de> Subject: Bug#351552: fixed in adduser 3.82 Date: Sun, 05 Feb 2006 13:32:23 -0800 Size: 2900 Url: http://lists.alioth.debian.org/pipermail/adduser-devel/attachments/20060205/e13cb5a2/attachment-0001.mht