From unknown Fri Jun 20 07:20:16 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#18177 <18177@debbugs.gnu.org> To: bug#18177 <18177@debbugs.gnu.org> Subject: Status: chroot: "No such file or directory" message is so confusing Reply-To: bug#18177 <18177@debbugs.gnu.org> Date: Fri, 20 Jun 2025 14:20:16 +0000 retitle 18177 chroot: "No such file or directory" message is so confusing reassign 18177 coreutils submitter 18177 "T R" severity 18177 normal tag 18177 notabug thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Aug 02 22:22:53 2014 Received: (at submit) by debbugs.gnu.org; 3 Aug 2014 02:22:53 +0000 Received: from localhost ([127.0.0.1]:55391 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDlRk-0002jt-SA for submit@debbugs.gnu.org; Sat, 02 Aug 2014 22:22:53 -0400 Received: from eggs.gnu.org ([208.118.235.92]:49715) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDlPP-0002fb-Lt for submit@debbugs.gnu.org; Sat, 02 Aug 2014 22:20:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDlPA-0000KK-Pg for submit@debbugs.gnu.org; Sat, 02 Aug 2014 22:20:22 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: * X-Spam-Status: No, score=1.5 required=5.0 tests=BAYES_50,HTML_MESSAGE, MIME_HTML_ONLY autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:54015) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDlPA-0000KF-Mo for submit@debbugs.gnu.org; Sat, 02 Aug 2014 22:20:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDlP3-0000ot-3z for bug-coreutils@gnu.org; Sat, 02 Aug 2014 22:20:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XDlOv-00005m-Jq for bug-coreutils@gnu.org; Sat, 02 Aug 2014 22:20:05 -0400 Received: from mout.gmx.com ([74.208.4.201]:51610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XDlOv-00005i-E8 for bug-coreutils@gnu.org; Sat, 02 Aug 2014 22:19:57 -0400 Received: from [76.103.89.195] by 3capp-mailcom-lxa12.server.lan (via HTTP); Sun, 3 Aug 2014 04:19:53 +0200 MIME-Version: 1.0 Message-ID: From: "T R" To: bug-coreutils@gnu.org Subject: chroot: "No such file or directory" message is so confusing Content-Type: text/html; charset=UTF-8 Date: Sun, 3 Aug 2014 04:19:53 +0200 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K0:qSSX5SwvfRHQBMEdhcbtPUFlvfrlCTDT9XpUCefaTZa NEwb4ksiakzhX9AKOVA/zElqun6+HVDY8LPZZhkFvbqbj3XHba +iNZ7AaKqFJbNlMvAjCQYftqw9Bw7E8V0Hdz1woLA7pGRiVG08 5SUzydnlHxHSM9riicQcT7B1BfTRL4iYyhmsR5tCe5iLNy9s7x uuVlF44Y2fsL2Mn9bFn5vdAAtMM3hP0KsjHHG5ueUqPp4mt6Kg cVC92tjEF3sQZ8GM7E4WnuKMwVnatYvxVpiaSL1cnqJMMkTS3q dCqvu2WKzQ3x8zC2ittRqS4hAnP X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -3.9 (---) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Sat, 02 Aug 2014 22:22:51 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.9 (---)
chroot: Failed to run command '/bin/bash': No such file or directory
This needs to be updated with more information. It pops up when:
 
1) The file is actually not there
2) The file's dependent libraries are not there
3) The file and its libraries are there, but it can't run for some reason
 
This is too many causes to be indicated by such a brief and undocumented error message.
 
Version: Every version ever
Distribution: Every distribution of GNU/Linux
From debbugs-submit-bounces@debbugs.gnu.org Sun Aug 03 00:34:18 2014 Received: (at 18177) by debbugs.gnu.org; 3 Aug 2014 04:34:18 +0000 Received: from localhost ([127.0.0.1]:55488 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDnUw-00063T-2H for submit@debbugs.gnu.org; Sun, 03 Aug 2014 00:34:18 -0400 Received: from mail5.vodafone.ie ([213.233.128.176]:6319) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XDnUt-00063C-Oq; Sun, 03 Aug 2014 00:34:16 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: ApQBABC73VNtTAkw/2dsb2JhbAANTYcuzU+DHQGBHYR7AQEEIw8BRhALDQsCAgUUAgsCAgkDAgECAUUGDQEHAQGIQ64Yd5cmF4EsjiAHgnmBUgEEo1KQYQ Received: from unknown (HELO [192.168.1.79]) ([109.76.9.48]) by mail3.vodafone.ie with ESMTP; 03 Aug 2014 05:34:08 +0100 Message-ID: <53DDBB90.6080806@draigBrady.com> Date: Sun, 03 Aug 2014 05:33:20 +0100 From: =?UTF-8?B?UMOhZHJhaWcgQnJhZHk=?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: T R Subject: Re: bug#18177: chroot: "No such file or directory" message is so confusing References: In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 18177 Cc: 18177@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) tag 18177 notabug close 18177 stop On 08/03/2014 03:19 AM, T R wrote: > chroot: Failed to run command '/bin/bash': No such file or directory > This needs to be updated with more information. It pops up when: > > 1) The file is actually not there > 2) The file's dependent libraries are not there > 3) The file and its libraries are there, but it can't run for some > reason > > This is too many causes to be indicated by such a brief and > undocumented error message. > > Version: Every version ever > Distribution: Every distribution of GNU/Linux It's exactly the reason that there can be so many causes for the error that chroot can only indicate the error code and leave further investigation to the user. You might be thinking that chroot could check that the executable was present and could adjust the error accordingly. Though that would be racy and awkward to implement due to having to handle $PATH searching etc. So we're doing the appropriate thing here. thanks, Pádraig. From unknown Fri Jun 20 07:20:16 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 31 Aug 2014 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator