What is the meaning of error code 127 ?

Asked by YannUbuntu

On a Ubuntu 11.10 ISO with added preseeds, i sometimes get the following error during Ubuntu's installation :
< The execution of the preconfigured command ( " /usr/bin/mypreseed1 ") failed with code error 127. >

 (this is approximate translation, not exact words).
Despite this message, installation completes fine (except the preseed which is not executed). Most computers don't get this error.

Please could you tell me in which direction i should search ?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu ubiquity Edit question
Assignee:
No assignee Edit question
Solved by:
Hilario J. Montoliu (hjmf)
Solved:
Last query:
Last reply:
Revision history for this message
Nathan Heafner (nathan1465-5) said :
#1

Hello Yann,
can you please provide the full and exact error message you receive?

Are you using pre seeds when you install ?
https://help.ubuntu.com/11.04/installation-guide/i386/preseed-intro.html

can you provide the contents of your preseed?

Revision history for this message
YannUbuntu (yannubuntu) said :
#2

Hi Nathan, thanks for your answer.
The error was reported by a French user, so the exact message is in French: < L'exécution de la commande préconfigurée ( " /usr/bin/cleanubiquitybefore ") a échoué avec le code d'erreur 127. >

The corresponding preseed is integrated in the ubuntu.seed file of the ISO (before rebuilding the ISO) the following way:
ubiquity partman/early_command string /usr/bin/cleanubiquitybefore

"/usr/bin/cleanubiquitybefore" is an executable Bash script, part of Clean-Ubiquity ( https://launchpad.net/clean-ubiquity ).

The full ISO can be found here : http://sourceforge.net/projects/ubuntu-secured/files/ubuntu-secured-remix-11.10-32bits.iso/download

Revision history for this message
Best Hilario J. Montoliu (hjmf) (hmontoliu) said :
#3

Hi YannUbuntu,

In bash scripts error code 127 is used to signal "command not found"

checkout http://tldp.org/LDP/abs/html/exitcodes.html

HTH

--
hmontoliu <at> ubuntu.com
http://hmontoliu.blogspot.com

Revision history for this message
YannUbuntu (yannubuntu) said :
#4

Thanks a lot Hilario !

Revision history for this message
YannUbuntu (yannubuntu) said :
#5

Thanks Hilario J. Montoliu (hjmf), that solved my question.

Revision history for this message
Mack (macklineviegas) said :
#6

hey m facing the same problem while commanding " ./calchep" ... could u tell me in which directory m i supposed to set this command ?