Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to make api calls during an ubuntu install using curl, but it always returns the error code 127 which means the command does not exist, this is what it looks like:

d-i preseed/early_command string apt-get install curl
d-i preseed/early_command string curl -k http://myapi/get_api

Is there a way I can do this for both early and late command?

share|improve this question
up vote 1 down vote accepted

Are you sure the volume is mounted at this point? This answer seems very relevant to your problem:

The takeaway seems to be that you can use apt-get in the late stage, but not early.

share|improve this answer
But you can use apt-install -- – sendmoreinfo Jan 11 '13 at 19:04
True, I ended up using wget instead and installing packages after when needed. – Ping Pengũin Jan 23 '13 at 23:35

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.