Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 1 down vote accepted

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

http://askubuntu.com/a/90054

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 -- wiki.debian.org/DebianInstaller/Preseed –  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

 
discard

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.