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 setup my Ubuntu image via a script over on AWS and I can't get rabbitmq-server to install. It throws a Package Configuration screen that simply has one option (hit OK).

How can I bypass this? It causes my script to hang

share|improve this question
up vote 2 down vote accepted

It sounds like your install script is being stopped by a debconf dialog. You can suppress the debconf dialog by setting the environment variable DEBIAN_FRONTEND to noninteractive. For example:

DEBIAN_FRONTEND=noninteractive  apt-get install rabbitmq-server

In general, if you want to script package installations using non-default configuration settings, you will need to preseed the debconf database with the desired settings. I recommend you read the debconf man page, and pay particularly close attention to the section titled "Unattended Package Installation".

share|improve this answer
YES YES! Thank you Steven. Great advice on debconf as well. I owe you a coffee (or beer) – Keith Fitzgerald Oct 29 '10 at 15:53
I'm glad I could help. – Steven Monday Oct 29 '10 at 17:51

You might be able to use python fabric to do what you need.

In Stackoverflow, someone asked a question similar to yours so you can refer to that.

Here is the link.

share|improve this answer

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.