bash: Fails to install through debootstrap

Bug #28422 reported by Debian Bug Importer
16
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://bugs.debian.org/342857

Revision history for this message
In , Matthias Klose (doko-cs) wrote : 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.

Revision history for this message
In , Christian Perrier (bubulle) wrote :

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/passwd/shells /etc/shells
fi

So, it seems that debianutils should embark the templates "shells"
file we have in passwd (attached), install it is
/usr/share/debianutils/shells and use it in its postinst.

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...:-|

Revision history for this message
In , Christian Perrier (bubulle) wrote :

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.

Revision history for this message
In , Matthias Klose (doko-cs) wrote : 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?

Revision history for this message
In , Bastian Blank (waldi) wrote :

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

Revision history for this message
In , Matthias Klose (doko-cs) wrote :

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

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #342857 http://bugs.debian.org/342857

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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=fr_FR.UTF-8 (charmap=UTF-8)

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

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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/passwd/shells /etc/shells
fi

So, it seems that debianutils should embark the templates "shells"
file we have in passwd (attached), install it is
/usr/share/debianutils/shells and use it in its postinst.

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...:-|

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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.

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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?

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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

Revision history for this message
Debian Bug Importer (debzilla) wrote :

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

Revision history for this message
Debian Bug Importer (debzilla) wrote :

*** Bug 28350 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Matt Kraai (kraai-ftbfs) wrote : Why not install /etc/shells during upgrade?

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

Revision history for this message
In , Clint Adams (clint) wrote : Re: Bug#342857: Why not install /etc/shells during upgrade?

> 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?

Revision history for this message
Matt Zimmerman (mdz) wrote :

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
Revision history for this message
Carthik Sharma (carthik) wrote :

Changing to "needs info" since Matt Zimmerman has asked for closing this bug.

Changed in debianutils:
status: Unconfirmed → Needs Info
Revision history for this message
In , Clint Adams (clint) wrote : add-shell

I think I forgot to close this in 2.15.

Revision history for this message
Matthias Klose (doko) wrote :

fixed, remove-shell now ignores if /etc/shells exists or not

Changed in debianutils:
status: Needs Info → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.