to, 2005-09-08 kello 07:24 +0200, Marc Haber kirjoitti: > However, the experimental version of shadow returns a different error > code on chage failure due to shadow not enabled, and adduser is not > yet adapted. Which version of shadow do you have installed?
The version in etch, 3.67 (same version in unstable, according to packages.qa.debian.org). The following is the error messages I get, I've attached the entire piuparts log file (the log is for bcron-run, which tries to use adduser). chage: can't open shadow password fileadduser: `/usr/bin/chage -M 99999 cron' returned error code 1. Aborting.
0m0.0s INFO: ------------------------------------------------------------------------------ 0m0.0s INFO: piuparts version 0.9-in-development starting up. 0m0.0s INFO: Command line arguments: /home/liw/piuparts.bzr/piuparts.py -d etch -b ../etch.tar.gz --tmpdir=. -kavl bcron-run.log bcron-run 0m0.0s DEBUG: Created temporary directory ./tmpxANbfO 0m0.0s DEBUG: Unpacking ../etch.tar.gz into ./tmpxANbfO 0m0.0s DEBUG: Starting command: tar -C './tmpxANbfO' -zxf '../etch.tar.gz' 0m2.0s DEBUG: Command ok: "tar -C './tmpxANbfO' -zxf '../etch.tar.gz'" 0m2.0s DEBUG: Starting command: chroot ./tmpxANbfO apt-get update 0m2.0s DUMP: Hit http://liw.iki.fi etch/main Packages 0m2.0s DUMP: Hit http://liw.iki.fi etch/main Release 0m2.0s DUMP: Reading Package Lists... 0m2.0s DEBUG: Command ok: 'chroot ./tmpxANbfO apt-get update' 0m2.0s DEBUG: Starting command: chroot ./tmpxANbfO apt-get clean 0m2.0s DEBUG: Command ok: 'chroot ./tmpxANbfO apt-get clean' 0m2.2s DEBUG: Starting command: chroot ./tmpxANbfO dpkg --get-selections '*' 0m2.2s DUMP: adduser install 0m2.2s DUMP: apt install 0m2.2s DUMP: apt-utils install 0m2.2s DUMP: aptitude install 0m2.2s DUMP: base-config install 0m2.2s DUMP: base-files install 0m2.2s DUMP: base-passwd install 0m2.2s DUMP: bash install 0m2.2s DUMP: bsdmainutils install 0m2.2s DUMP: bsdutils install 0m2.2s DUMP: console-common install 0m2.2s DUMP: console-data install 0m2.2s DUMP: console-tools install 0m2.2s DUMP: coreutils install 0m2.2s DUMP: cpio install 0m2.2s DUMP: cron install 0m2.2s DUMP: debconf install 0m2.2s DUMP: debconf-i18n install 0m2.2s DUMP: debianutils install 0m2.2s DUMP: dhcp-client install 0m2.2s DUMP: diff install 0m2.2s DUMP: dmidecode install 0m2.2s DUMP: dpkg install 0m2.2s DUMP: dselect install 0m2.2s DUMP: e2fslibs install 0m2.2s DUMP: e2fsprogs install 0m2.2s DUMP: ed install 0m2.2s DUMP: fdutils install 0m2.2s DUMP: findutils install 0m2.2s DUMP: gcc-3.3-base install 0m2.2s DUMP: gettext-base install 0m2.2s DUMP: grep install 0m2.2s DUMP: groff-base install 0m2.2s DUMP: gzip install 0m2.2s DUMP: hostname install 0m2.2s DUMP: ifupdown install 0m2.2s DUMP: info install 0m2.2s DUMP: initscripts install 0m2.2s DUMP: iptables install 0m2.2s DUMP: iputils-ping install 0m2.2s DUMP: klogd install 0m2.2s DUMP: laptop-detect install 0m2.2s DUMP: libacl1 install 0m2.2s DUMP: libattr1 install 0m2.2s DUMP: libblkid1 install 0m2.2s DUMP: libc6 install 0m2.2s DUMP: libcap1 install 0m2.2s DUMP: libcomerr2 install 0m2.2s DUMP: libconsole install 0m2.2s DUMP: libdb1-compat install 0m2.2s DUMP: libdb3 install 0m2.2s DUMP: libdb4.2 install 0m2.2s DUMP: libgcc1 install 0m2.2s DUMP: libgcrypt11 install 0m2.2s DUMP: libgdbm3 install 0m2.2s DUMP: libgnutls11 install 0m2.2s DUMP: libgpg-error0 install 0m2.2s DUMP: liblocale-gettext-perl install 0m2.2s DUMP: liblockfile1 install 0m2.2s DUMP: liblzo1 install 0m2.2s DUMP: libncurses5 install 0m2.2s DUMP: libncursesw5 install 0m2.2s DUMP: libnewt0.51 install 0m2.2s DUMP: libopencdk8 install 0m2.2s DUMP: libpam-modules install 0m2.2s DUMP: libpam-runtime install 0m2.2s DUMP: libpam0g install 0m2.2s DUMP: libpcap0.7 install 0m2.2s DUMP: libpcre3 install 0m2.2s DUMP: libpopt0 install 0m2.2s DUMP: libselinux1 install 0m2.2s DUMP: libsigc++-1.2-5c102 install 0m2.2s DUMP: libslang2 install 0m2.2s DUMP: libss2 install 0m2.2s DUMP: libssl0.9.7 install 0m2.2s DUMP: libstdc++5 install 0m2.2s DUMP: libtasn1-2 install 0m2.2s DUMP: libtext-charwidth-perl install 0m2.2s DUMP: libtext-iconv-perl install 0m2.2s DUMP: libtext-wrapi18n-perl install 0m2.2s DUMP: libtextwrap1 install 0m2.2s DUMP: libuuid1 install 0m2.2s DUMP: libwrap0 install 0m2.2s DUMP: login install 0m2.2s DUMP: logrotate install 0m2.2s DUMP: lsb-base install 0m2.2s DUMP: makedev install 0m2.2s DUMP: man-db install 0m2.2s DUMP: manpages install 0m2.2s DUMP: mawk install 0m2.2s DUMP: modutils install 0m2.2s DUMP: mount install 0m2.2s DUMP: nano install 0m2.2s DUMP: ncurses-base install 0m2.2s DUMP: ncurses-bin install 0m2.2s DUMP: net-tools install 0m2.2s DUMP: netbase install 0m2.2s DUMP: netkit-inetd install 0m2.2s DUMP: nvi install 0m2.2s DUMP: passwd install 0m2.2s DUMP: pciutils install 0m2.2s DUMP: perl-base install 0m2.2s DUMP: ppp install 0m2.2s DUMP: pppconfig install 0m2.2s DUMP: pppoe install 0m2.2s DUMP: pppoeconf install 0m2.2s DUMP: procps install 0m2.2s DUMP: psmisc install 0m2.3s DUMP: sed install 0m2.3s DUMP: slang1a-utf8 install 0m2.3s DUMP: sysklogd install 0m2.3s DUMP: sysv-rc install 0m2.3s DUMP: sysvinit install 0m2.3s DUMP: tar install 0m2.3s DUMP: tasksel install 0m2.3s DUMP: tcpd install 0m2.3s DUMP: telnet install 0m2.3s DUMP: util-linux install 0m2.3s DUMP: wget install 0m2.3s DUMP: whiptail install 0m2.3s DUMP: zlib1g install 0m2.3s DEBUG: Command ok: "chroot ./tmpxANbfO dpkg --get-selections '*'" 0m2.3s DEBUG: Starting command: chroot ./tmpxANbfO apt-get -y install 'bcron-run' 0m2.3s DUMP: Reading Package Lists... 0m2.4s DUMP: Building Dependency Tree... 0m2.4s DUMP: The following extra packages will be installed: 0m2.4s DUMP: bcron courier-authdaemon courier-base courier-mta gcc-4.0-base libfam0c102 0m2.4s DUMP: libperl5.8 libstdc++6 perl perl-modules runit ucspi-unix 0m2.4s DUMP: Suggested packages: 0m2.4s DUMP: runit-run mail-reader courier-doc courier-filter-perl 0m2.4s DUMP: libterm-readline-gnu-perl libterm-readline-perl-perl fgetty 0m2.4s DUMP: Recommended packages: 0m2.4s DUMP: fam perl-doc 0m2.4s DUMP: The following packages will be REMOVED: 0m2.4s DUMP: cron logrotate 0m2.4s DUMP: The following NEW packages will be installed: 0m2.4s DUMP: bcron bcron-run courier-authdaemon courier-base courier-mta gcc-4.0-base 0m2.4s DUMP: libfam0c102 libperl5.8 libstdc++6 perl perl-modules runit ucspi-unix 0m2.5s DUMP: 0 upgraded, 13 newly installed, 2 to remove and 0 not upgraded. 0m2.5s DUMP: Need to get 9320kB of archives. 0m2.5s DUMP: After unpacking 33.6MB of additional disk space will be used. 0m2.5s DUMP: Get:1 http://liw.iki.fi etch/main perl-modules 5.8.7-3 [2326kB] 0m2.7s DUMP: Get:2 http://liw.iki.fi etch/main perl 5.8.7-3 [3371kB] 0m3.0s DUMP: Get:3 http://liw.iki.fi etch/main bcron 0.09-2 [66.5kB] 0m3.0s DUMP: Get:4 http://liw.iki.fi etch/main runit 1.3.0-1 [105kB] 0m3.0s DUMP: Get:5 http://liw.iki.fi etch/main ucspi-unix 0.36-3 [12.7kB] 0m3.0s DUMP: Get:6 http://liw.iki.fi etch/main libperl5.8 5.8.7-3 [514kB] 0m3.0s DUMP: Get:7 http://liw.iki.fi etch/main gcc-4.0-base 4.0.1-2 [174kB] 0m3.0s DUMP: Get:8 http://liw.iki.fi etch/main libstdc++6 4.0.1-2 [353kB] 0m3.1s DUMP: Get:9 http://liw.iki.fi etch/main libfam0c102 2.7.0-7 [25.8kB] 0m3.1s DUMP: Get:10 http://liw.iki.fi etch/main courier-base 0.47-8 [233kB] 0m3.1s DUMP: Get:11 http://liw.iki.fi etch/main courier-authdaemon 0.47-8 [55.6kB] 0m3.1s DUMP: Get:12 http://liw.iki.fi etch/main courier-mta 0.47-8 [2078kB] 0m3.3s DUMP: Get:13 http://liw.iki.fi etch/main bcron-run 0.09-2 [7318B] 0m3.4s DUMP: Preconfiguring packages ... 0m5.0s DUMP: Fetched 9320kB in 0s (11.7MB/s) 0m5.1s DUMP: (Reading database ... 7514 files and directories currently installed.) 0m5.1s DUMP: Removing logrotate ... 0m5.1s DUMP: Removing cron ... 0m5.1s DUMP: Stopping periodic command scheduler: cron. 0m5.2s DUMP: Selecting previously deselected package perl-modules. 0m5.2s DUMP: (Reading database ... 7487 files and directories currently installed.) 0m5.2s DUMP: Unpacking perl-modules (from .../perl-modules_5.8.7-3_all.deb) ... 0m5.5s DUMP: Selecting previously deselected package perl. 0m5.5s DUMP: Unpacking perl (from .../archives/perl_5.8.7-3_i386.deb) ... 0m5.8s DUMP: Selecting previously deselected package bcron. 0m5.8s DUMP: Unpacking bcron (from .../archives/bcron_0.09-2_i386.deb) ... 0m5.8s DUMP: Selecting previously deselected package runit. 0m5.8s DUMP: Unpacking runit (from .../runit_1.3.0-1_i386.deb) ... 0m5.9s DUMP: Selecting previously deselected package ucspi-unix. 0m5.9s DUMP: Unpacking ucspi-unix (from .../ucspi-unix_0.36-3_i386.deb) ... 0m5.9s DUMP: Selecting previously deselected package libperl5.8. 0m5.9s DUMP: Unpacking libperl5.8 (from .../libperl5.8_5.8.7-3_i386.deb) ... 0m5.9s DUMP: Selecting previously deselected package gcc-4.0-base. 0m5.9s DUMP: Unpacking gcc-4.0-base (from .../gcc-4.0-base_4.0.1-2_i386.deb) ... 0m6.0s DUMP: Selecting previously deselected package libstdc++6. 0m6.0s DUMP: Unpacking libstdc++6 (from .../libstdc++6_4.0.1-2_i386.deb) ... 0m6.0s DUMP: Selecting previously deselected package libfam0c102. 0m6.0s DUMP: Unpacking libfam0c102 (from .../libfam0c102_2.7.0-7_i386.deb) ... 0m6.0s DUMP: Selecting previously deselected package courier-base. 0m6.0s DUMP: Unpacking courier-base (from .../courier-base_0.47-8_i386.deb) ... 0m6.1s DUMP: Selecting previously deselected package courier-authdaemon. 0m6.1s DUMP: Unpacking courier-authdaemon (from .../courier-authdaemon_0.47-8_i386.deb) ... 0m6.1s DUMP: Selecting previously deselected package courier-mta. 0m6.1s DUMP: Unpacking courier-mta (from .../courier-mta_0.47-8_i386.deb) ... 0m6.3s DUMP: Selecting previously deselected package bcron-run. 0m6.3s DUMP: Unpacking bcron-run (from .../bcron-run_0.09-2_all.deb) ... 0m6.3s DUMP: Setting up bcron (0.09-2) ... 0m6.3s DUMP: Setting up runit (1.3.0-1) ... 0m6.4s DUMP: Adding SV inittab entry... 0m6.4s DUMP: 0m6.4s DUMP: Setting up ucspi-unix (0.36-3) ... 0m6.4s DUMP: Setting up libperl5.8 (5.8.7-3) ... 0m6.4s DUMP: 0m6.4s DUMP: Setting up gcc-4.0-base (4.0.1-2) ... 0m6.4s DUMP: Setting up libstdc++6 (4.0.1-2) ... 0m6.5s DUMP: 0m6.5s DUMP: Setting up libfam0c102 (2.7.0-7) ... 0m6.5s DUMP: 0m6.5s DUMP: Setting up perl-modules (5.8.7-3) ... 0m6.5s DUMP: Setting up perl (5.8.7-3) ... 0m6.5s DUMP: 0m6.5s DUMP: Setting up courier-base (0.47-8) ... 0m6.8s DUMP: 0m6.8s DUMP: Setting up courier-authdaemon (0.47-8) ... 0m6.8s DUMP: Starting Courier authdaemon: done. 0m6.8s DUMP: 0m6.8s DUMP: Setting up courier-mta (0.47-8) ... 0m7.3s DUMP: Starting Courier mail server: done. 0m7.3s DUMP: Starting Courier mail filter: done. 0m7.3s DUMP: Starting Courier SMTP server: done. 0m7.3s DUMP: 0m7.3s DUMP: Setting up bcron-run (0.09-2) ... 0m7.4s DUMP: Installing new version of config file /etc/crontab ... 0m7.4s DUMP: Adding system user `cron'... 0m7.4s DUMP: Adding new group `cron' (102). 0m7.4s DUMP: Adding new user `cron' (102) with group `cron'. 0m7.5s DUMP: chage: can't open shadow password fileadduser: `/usr/bin/chage -M 99999 cron' returned error code 1. Aborting. 0m7.5s DUMP: Cleaning up. 0m7.5s DUMP: Removing user `cron'. 0m7.5s DUMP: Removing group `cron'. 0m7.5s DUMP: groupdel: group cron does not exist 0m7.5s DUMP: dpkg: error processing bcron-run (--configure): 0m7.5s DUMP: subprocess post-installation script returned error exit status 1 0m7.5s DUMP: Errors were encountered while processing: 0m7.5s DUMP: bcron-run 0m7.5s DUMP: E: Sub-process /usr/bin/dpkg returned an error code (1) 0m7.5s ERROR: Command failed (status=25600): "chroot ./tmpxANbfO apt-get -y install 'bcron-run'" Reading Package Lists... Building Dependency Tree... The following extra packages will be installed: bcron courier-authdaemon courier-base courier-mta gcc-4.0-base libfam0c102 libperl5.8 libstdc++6 perl perl-modules runit ucspi-unix Suggested packages: runit-run mail-reader courier-doc courier-filter-perl libterm-readline-gnu-perl libterm-readline-perl-perl fgetty Recommended packages: fam perl-doc The following packages will be REMOVED: cron logrotate The following NEW packages will be installed: bcron bcron-run courier-authdaemon courier-base courier-mta gcc-4.0-base libfam0c102 libperl5.8 libstdc++6 perl perl-modules runit ucspi-unix 0 upgraded, 13 newly installed, 2 to remove and 0 not upgraded. Need to get 9320kB of archives. After unpacking 33.6MB of additional disk space will be used. Get:1 http://liw.iki.fi etch/main perl-modules 5.8.7-3 [2326kB] Get:2 http://liw.iki.fi etch/main perl 5.8.7-3 [3371kB] Get:3 http://liw.iki.fi etch/main bcron 0.09-2 [66.5kB] Get:4 http://liw.iki.fi etch/main runit 1.3.0-1 [105kB] Get:5 http://liw.iki.fi etch/main ucspi-unix 0.36-3 [12.7kB] Get:6 http://liw.iki.fi etch/main libperl5.8 5.8.7-3 [514kB] Get:7 http://liw.iki.fi etch/main gcc-4.0-base 4.0.1-2 [174kB] Get:8 http://liw.iki.fi etch/main libstdc++6 4.0.1-2 [353kB] Get:9 http://liw.iki.fi etch/main libfam0c102 2.7.0-7 [25.8kB] Get:10 http://liw.iki.fi etch/main courier-base 0.47-8 [233kB] Get:11 http://liw.iki.fi etch/main courier-authdaemon 0.47-8 [55.6kB] Get:12 http://liw.iki.fi etch/main courier-mta 0.47-8 [2078kB] Get:13 http://liw.iki.fi etch/main bcron-run 0.09-2 [7318B] Preconfiguring packages ... Fetched 9320kB in 0s (11.7MB/s) (Reading database ... 7514 files and directories currently installed.) Removing logrotate ... Removing cron ... Stopping periodic command scheduler: cron. Selecting previously deselected package perl-modules. (Reading database ... 7487 files and directories currently installed.) Unpacking perl-modules (from .../perl-modules_5.8.7-3_all.deb) ... Selecting previously deselected package perl. Unpacking perl (from .../archives/perl_5.8.7-3_i386.deb) ... Selecting previously deselected package bcron. Unpacking bcron (from .../archives/bcron_0.09-2_i386.deb) ... Selecting previously deselected package runit. Unpacking runit (from .../runit_1.3.0-1_i386.deb) ... Selecting previously deselected package ucspi-unix. Unpacking ucspi-unix (from .../ucspi-unix_0.36-3_i386.deb) ... Selecting previously deselected package libperl5.8. Unpacking libperl5.8 (from .../libperl5.8_5.8.7-3_i386.deb) ... Selecting previously deselected package gcc-4.0-base. Unpacking gcc-4.0-base (from .../gcc-4.0-base_4.0.1-2_i386.deb) ... Selecting previously deselected package libstdc++6. Unpacking libstdc++6 (from .../libstdc++6_4.0.1-2_i386.deb) ... Selecting previously deselected package libfam0c102. Unpacking libfam0c102 (from .../libfam0c102_2.7.0-7_i386.deb) ... Selecting previously deselected package courier-base. Unpacking courier-base (from .../courier-base_0.47-8_i386.deb) ... Selecting previously deselected package courier-authdaemon. Unpacking courier-authdaemon (from .../courier-authdaemon_0.47-8_i386.deb) ... Selecting previously deselected package courier-mta. Unpacking courier-mta (from .../courier-mta_0.47-8_i386.deb) ... Selecting previously deselected package bcron-run. Unpacking bcron-run (from .../bcron-run_0.09-2_all.deb) ... Setting up bcron (0.09-2) ... Setting up runit (1.3.0-1) ... Adding SV inittab entry... Setting up ucspi-unix (0.36-3) ... Setting up libperl5.8 (5.8.7-3) ... Setting up gcc-4.0-base (4.0.1-2) ... Setting up libstdc++6 (4.0.1-2) ... Setting up libfam0c102 (2.7.0-7) ... Setting up perl-modules (5.8.7-3) ... Setting up perl (5.8.7-3) ... Setting up courier-base (0.47-8) ... Setting up courier-authdaemon (0.47-8) ... Starting Courier authdaemon: done. Setting up courier-mta (0.47-8) ... Starting Courier mail server: done. Starting Courier mail filter: done. Starting Courier SMTP server: done. Setting up bcron-run (0.09-2) ... Installing new version of config file /etc/crontab ... Adding system user `cron'... Adding new group `cron' (102). Adding new user `cron' (102) with group `cron'. chage: can't open shadow password fileadduser: `/usr/bin/chage -M 99999 cron' returned error code 1. Aborting. Cleaning up. Removing user `cron'. Removing group `cron'. groupdel: group cron does not exist dpkg: error processing bcron-run (--configure): subprocess post-installation script returned error exit status 1 Errors were encountered while processing: bcron-run E: Sub-process /usr/bin/dpkg returned an error code (1)