GNU bug report logs - #18177
chroot: "No such file or directory" message is so confusing

Previous Next

Package: coreutils;

Reported by: "T R" <theos <at> unforgettable.com>

Date: Sun, 3 Aug 2014 02:23:01 UTC

Severity: normal

Tags: notabug

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

Full log


Message #10 received at control <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: T R <theos <at> unforgettable.com>
Cc: 18177 <at> debbugs.gnu.org
Subject: Re: bug#18177: chroot: "No such file or directory" message is so
 confusing
Date: Sun, 03 Aug 2014 05:33:20 +0100
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.




This bug report was last modified 10 years and 294 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.