bash: Fails to install through debootstrap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
debianutils (Debian) |
Fix Released
|
Unknown
|
|||
debianutils (Ubuntu) |
Fix Released
|
High
|
Matthias Klose |
Bug Description
Automatically imported from Debian bug report #342857 http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#1 |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#2 |
reassign 342855 debianutils
severity 342855 critical
clone 342855 -1
retitle 342855 debianutils: should provide /etc/shells (breaks debootstrap install of sid, and D-I)
retitle -1 Should remove the useless shells template file and postinst code to install it
severity -1 normal
thanks
Quoting Christian Perrier (<email address hidden>):
> Package: bash
> Version: 3.1-1
> Severity: important
>
> I hesitated tagging this as RC because it currently breaks unstable installs
> with D-I....but I leave this up to you, Mathias.
Some discussion on #debian-devel showed that the initial diagnosis is
wrong. Apologies, Mathias.
bash fails to install because the code to create /etc/shells is not in
debianutils postinst but still in passwd postinst:
# only install /etc/shells on package install
if test -z "$2" && test ! -f /etc/shells
then
cp -p /usr/share/
fi
So, it seems that debianutils should embark the templates "shells"
file we have in passwd (attached), install it is
/usr/share/
I also clone this bug report to passwd because we must think about
*removing* this templates file and the now useless code in
passwd.postinst when debianutils will have made this change.
Clint, it seems we have another transition to manage...:-|
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#3 |
Quoting Matthias Klose (<email address hidden>):
> clone 342855 -1
> reassign 342855 debianutils
> thanks
>
> should add-shell handle that case? How else can the rbash entry be created?
Hmmm, collision..:-)
I'm not sure it's worth cloning and keeping a bug in bash, indeed.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#4 |
severity 347430 important
merge 347430 342857
thanks
#342855 says it's fixed, hower Bastian recently submitted a new bug
report, so what is the issue?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#5 |
severity 347430 serious
thanks
> #342855 says it's fixed, hower Bastian recently submitted a new bug
> report, so what is the issue?
debianutils only installs them on a first time installation, this are
several chroots without that file.
Bastian
--
Witch! Witch! They'll burn ya!
-- Hag, "Tomorrow is Yesterday", stardate unknown
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#6 |
reassign 347430 debianutils
thanks
Bastian Blank writes:
> severity 347430 serious
> thanks
>
> > #342855 says it's fixed, hower Bastian recently submitted a new bug
> > report, so what is the issue?
>
> debianutils only installs them on a first time installation, this are
> several chroots without that file.
>
> Bastian
>
> --
> Witch! Witch! They'll burn ya!
> -- Hag, "Tomorrow is Yesterday", stardate unknown
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #7 |
Automatically imported from Debian bug report #342857 http://
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #8 |
Message-ID: <email address hidden>
Date: Sun, 11 Dec 2005 11:01:56 +0100
From: Christian Perrier <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: bash: Fails to install through debootstrap
Package: bash
Version: 3.1-1
Severity: important
I hesitated tagging this as RC because it currently breaks unstable installs
with D-I....but I leave this up to you, Mathias.
Installing bash with debootstrap fails:
Dec 11 09:22:10 debootstrap: Setting up bash (3.1-1) ...
Dec 11 09:22:10 debootstrap: cat:
Dec 11 09:22:10 debootstrap: /etc/shells
Dec 11 09:22:10 debootstrap: : No such file or directory
Dec 11 09:22:10 debootstrap:
Dec 11 09:22:10 debootstrap: Either another instance of /usr/sbin/add-shell is running, or it was previously interrupted.
Dec 11 09:22:10 debootstrap: Please examine /etc/shells.tmp to see if it should be moved onto /etc/shells.
Dec 11 09:22:10 debootstrap: Setting up login (4.0.13-7) ...
Dec 11 09:22:10 debootstrap: dpkg: error processing bash (--configure):
Dec 11 09:22:10 debootstrap: subprocess post-installation script returned error exit status 1
Dec 11 09:22:11 debootstrap:
Dec 11 09:22:11 debootstrap: Setting up lsb-base (3.0-12) ...
Dec 11 09:22:11 debootstrap: Setting up passwd (4.0.13-7) ...
Dec 11 09:22:14 debootstrap:
Dec 11 09:22:14 debootstrap: Setting up initscripts (2.86.ds1-6) ...
Dec 11 09:22:16 debootstrap:
Dec 11 09:22:16 debootstrap: Setting up sysvinit (2.86.ds1-6) ...
Dec 11 09:22:16 debootstrap: sysvinit: creating /dev/initctl
Dec 11 09:22:19 debootstrap: init:
Dec 11 09:22:19 debootstrap: timeout opening/writing control channel /dev/initctl
Dec 11 09:22:19 debootstrap:
Dec 11 09:22:19 debootstrap: Setting up debconf-i18n (1.4.62) ...
Dec 11 09:22:19 debootstrap: Setting up debconf (1.4.62) ...
Dec 11 09:22:20 debootstrap:
Dec 11 09:22:20 debootstrap: Errors were encountered while processing:
Dec 11 09:22:20 debootstrap: bash
This can be reproduced with debootstrap itself. It breaks all installs of
unstable with Debian Installer, also.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=
Versions of packages bash depends on:
ii base-files 3.1.9 Debian base system miscellaneous f
ii libc6 2.3.5-8.1 GNU C Library: Shared libraries an
ii libncurses5 5.5-1 Shared libraries for terminal hand
ii passwd 1:4.0.13-7 change and administer password and
bash recommends no packages.
-- no debconf information
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #9 |
Message-ID: <email address hidden>
Date: Sun, 11 Dec 2005 11:14:41 +0100
From: Matthias Klose <email address hidden>
To: Christian Perrier <email address hidden>, <email address hidden>, <email address hidden>
CC: <email address hidden>
Subject: Re: Bug#342855: bash: Fails to install through debootstrap
clone 342855 -1
reassign 342855 debianutils
thanks
should add-shell handle that case? How else can the rbash entry be created?
Christian Perrier writes:
> Package: bash
> Version: 3.1-1
> Severity: important
>
> I hesitated tagging this as RC because it currently breaks unstable installs
> with D-I....but I leave this up to you, Mathias.
>
> Installing bash with debootstrap fails:
>
> Dec 11 09:22:10 debootstrap: Setting up bash (3.1-1) ...
> Dec 11 09:22:10 debootstrap: cat:
> Dec 11 09:22:10 debootstrap: /etc/shells
> Dec 11 09:22:10 debootstrap: : No such file or directory
> Dec 11 09:22:10 debootstrap:
> Dec 11 09:22:10 debootstrap: Either another instance of /usr/sbin/add-shell is running, or it was previously interrupted.
> Dec 11 09:22:10 debootstrap: Please examine /etc/shells.tmp to see if it should be moved onto /etc/shells.
> Dec 11 09:22:10 debootstrap: Setting up login (4.0.13-7) ...
> Dec 11 09:22:10 debootstrap: dpkg: error processing bash (--configure):
> Dec 11 09:22:10 debootstrap: subprocess post-installation script returned error exit status 1
> Dec 11 09:22:11 debootstrap:
> Dec 11 09:22:11 debootstrap: Setting up lsb-base (3.0-12) ...
> Dec 11 09:22:11 debootstrap: Setting up passwd (4.0.13-7) ...
> Dec 11 09:22:14 debootstrap:
> Dec 11 09:22:14 debootstrap: Setting up initscripts (2.86.ds1-6) ...
> Dec 11 09:22:16 debootstrap:
> Dec 11 09:22:16 debootstrap: Setting up sysvinit (2.86.ds1-6) ...
> Dec 11 09:22:16 debootstrap: sysvinit: creating /dev/initctl
> Dec 11 09:22:19 debootstrap: init:
> Dec 11 09:22:19 debootstrap: timeout opening/writing control channel /dev/initctl
> Dec 11 09:22:19 debootstrap:
> Dec 11 09:22:19 debootstrap: Setting up debconf-i18n (1.4.62) ...
> Dec 11 09:22:19 debootstrap: Setting up debconf (1.4.62) ...
> Dec 11 09:22:20 debootstrap:
> Dec 11 09:22:20 debootstrap: Errors were encountered while processing:
> Dec 11 09:22:20 debootstrap: bash
>
> This can be reproduced with debootstrap itself. It breaks all installs of
> unstable with Debian Installer, also.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #10 |
Message-ID: <email address hidden>
Date: Sun, 11 Dec 2005 11:29:22 +0100
From: Christian Perrier <email address hidden>
To: <email address hidden>
Cc: <email address hidden>
Subject: Re: bash: Fails to install through debootstrap
reassign 342855 debianutils
severity 342855 critical
clone 342855 -1
retitle 342855 debianutils: should provide /etc/shells (breaks debootstrap install of sid, and D-I)
retitle -1 Should remove the useless shells template file and postinst code to install it
severity -1 normal
thanks
Quoting Christian Perrier (<email address hidden>):
> Package: bash
> Version: 3.1-1
> Severity: important
>
> I hesitated tagging this as RC because it currently breaks unstable installs
> with D-I....but I leave this up to you, Mathias.
Some discussion on #debian-devel showed that the initial diagnosis is
wrong. Apologies, Mathias.
bash fails to install because the code to create /etc/shells is not in
debianutils postinst but still in passwd postinst:
# only install /etc/shells on package install
if test -z "$2" && test ! -f /etc/shells
then
cp -p /usr/share/
fi
So, it seems that debianutils should embark the templates "shells"
file we have in passwd (attached), install it is
/usr/share/
I also clone this bug report to passwd because we must think about
*removing* this templates file and the now useless code in
passwd.postinst when debianutils will have made this change.
Clint, it seems we have another transition to manage...:-|
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #11 |
Message-ID: <email address hidden>
Date: Sun, 11 Dec 2005 11:30:20 +0100
From: Christian Perrier <email address hidden>
To: Matthias Klose <email address hidden>
Cc: <email address hidden>, <email address hidden>
Subject: Re: Bug#342855: bash: Fails to install through debootstrap
Quoting Matthias Klose (<email address hidden>):
> clone 342855 -1
> reassign 342855 debianutils
> thanks
>
> should add-shell handle that case? How else can the rbash entry be created?
Hmmm, collision..:-)
I'm not sure it's worth cloning and keeping a bug in bash, indeed.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #12 |
Message-ID: <email address hidden>
Date: Thu, 12 Jan 2006 14:51:08 +0100
From: Matthias Klose <email address hidden>
To: Clint Adams <email address hidden>, Bastian Blank <email address hidden>, <email address hidden>
CC: <email address hidden>
Subject: Re: add-shell
severity 347430 important
merge 347430 342857
thanks
#342855 says it's fixed, hower Bastian recently submitted a new bug
report, so what is the issue?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #13 |
Message-ID: <email address hidden>
Date: Thu, 12 Jan 2006 14:57:54 +0100
From: Bastian Blank <email address hidden>
To: Matthias Klose <email address hidden>
Cc: Clint Adams <email address hidden>, <email address hidden>,
<email address hidden>
Subject: Re: add-shell
severity 347430 serious
thanks
> #342855 says it's fixed, hower Bastian recently submitted a new bug
> report, so what is the issue?
debianutils only installs them on a first time installation, this are
several chroots without that file.
Bastian
--=20
Witch! Witch! They'll burn ya!
-- Hag, "Tomorrow is Yesterday", stardate unknown
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #14 |
Message-ID: <email address hidden>
Date: Thu, 12 Jan 2006 14:59:59 +0100
From: Matthias Klose <email address hidden>
To: Bastian Blank <email address hidden>
Cc: Clint Adams <email address hidden>, <email address hidden>,
<email address hidden>
Subject: Re: add-shell
reassign 347430 debianutils
thanks
Bastian Blank writes:
> severity 347430 serious
> thanks
>
> > #342855 says it's fixed, hower Bastian recently submitted a new bug
> > report, so what is the issue?
>
> debianutils only installs them on a first time installation, this are
> several chroots without that file.
>
> Bastian
>
> --
> Witch! Witch! They'll burn ya!
> -- Hag, "Tomorrow is Yesterday", stardate unknown
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Debian Bug Importer (debzilla) wrote : | #15 |
*** Bug 28350 has been marked as a duplicate of this bug. ***
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#16 |
Howdy,
Why does the postinst not install shells if debianutils is being
upgraded? I verified that the passwd postinst used to do the same
thing, but I didn't find any explanation of why.
--
Matt
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#17 |
> Why does the postinst not install shells if debianutils is being
> upgraded? I verified that the passwd postinst used to do the same
> thing, but I didn't find any explanation of why.
How is the package supposed to know that the admin didn't delete the
file on purpose?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Matt Zimmerman (mdz) wrote : | #18 |
I think we don't have this issue in Dapper, but please confirm that no further changes are necessary
Changed in debianutils: | |
assignee: | nobody → doko |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Carthik Sharma (carthik) wrote : | #19 |
Changing to "needs info" since Matt Zimmerman has asked for closing this bug.
Changed in debianutils: | |
status: | Unconfirmed → Needs Info |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
|
#20 |
I think I forgot to close this in 2.15.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Matthias Klose (doko) wrote : | #21 |
fixed, remove-shell now ignores if /etc/shells exists or not
Changed in debianutils: | |
status: | Needs Info → Fix Released |
clone 342855 -1
reassign 342855 debianutils
thanks
should add-shell handle that case? How else can the rbash entry be created?
Christian Perrier writes:
> Package: bash
> Version: 3.1-1
> Severity: important
>
> I hesitated tagging this as RC because it currently breaks unstable installs
> with D-I....but I leave this up to you, Mathias.
>
> Installing bash with debootstrap fails:
>
> Dec 11 09:22:10 debootstrap: Setting up bash (3.1-1) ...
> Dec 11 09:22:10 debootstrap: cat:
> Dec 11 09:22:10 debootstrap: /etc/shells
> Dec 11 09:22:10 debootstrap: : No such file or directory
> Dec 11 09:22:10 debootstrap:
> Dec 11 09:22:10 debootstrap: Either another instance of /usr/sbin/add-shell is running, or it was previously interrupted.
> Dec 11 09:22:10 debootstrap: Please examine /etc/shells.tmp to see if it should be moved onto /etc/shells.
> Dec 11 09:22:10 debootstrap: Setting up login (4.0.13-7) ...
> Dec 11 09:22:10 debootstrap: dpkg: error processing bash (--configure):
> Dec 11 09:22:10 debootstrap: subprocess post-installation script returned error exit status 1
> Dec 11 09:22:11 debootstrap:
> Dec 11 09:22:11 debootstrap: Setting up lsb-base (3.0-12) ...
> Dec 11 09:22:11 debootstrap: Setting up passwd (4.0.13-7) ...
> Dec 11 09:22:14 debootstrap:
> Dec 11 09:22:14 debootstrap: Setting up initscripts (2.86.ds1-6) ...
> Dec 11 09:22:16 debootstrap:
> Dec 11 09:22:16 debootstrap: Setting up sysvinit (2.86.ds1-6) ...
> Dec 11 09:22:16 debootstrap: sysvinit: creating /dev/initctl
> Dec 11 09:22:19 debootstrap: init:
> Dec 11 09:22:19 debootstrap: timeout opening/writing control channel /dev/initctl
> Dec 11 09:22:19 debootstrap:
> Dec 11 09:22:19 debootstrap: Setting up debconf-i18n (1.4.62) ...
> Dec 11 09:22:19 debootstrap: Setting up debconf (1.4.62) ...
> Dec 11 09:22:20 debootstrap:
> Dec 11 09:22:20 debootstrap: Errors were encountered while processing:
> Dec 11 09:22:20 debootstrap: bash
>
> This can be reproduced with debootstrap itself. It breaks all installs of
> unstable with Debian Installer, also.