2

I'm new to vagrant and veewee. I'm trying to build a debian 7.4 image but after running the build

veewee vbox build 'debian-7.4'

the process gets stuck on the installation of libssl because it requires the user input to restart some services (ssh ntp exim4)

debian libssl

Unfortunately this is shown inside the terminal and I couldn't find any way to hit "ok" and then, of course, I get this message.

SIGNAL: 3                                                                       
Ssh timeout 10000 sec has been reached.

Of course I can work around this by continuing the installation by hand through the virtualbox GUI but this should not happen in unattended installation.

How can I force the installation process to restart the services without waiting for the user input?

5
  • Does this software use a preseed file under the hood that you can manipulate?
    – dawud
    Apr 17, 2014 at 13:33
  • I suppose and that's what I'm trying to figure out. veewee has "definitions" but I can't understand where/what I should modify to disable interaction
    – damko
    Apr 17, 2014 at 15:54
  • Read this, the tree structure shows a preseed file.
    – dawud
    Apr 17, 2014 at 15:56
  • thank you! unfortunately I checked my definition.rb and I have already 'fb=false ', 'debconf/frontend=noninteractive '
    – damko
    Apr 17, 2014 at 16:19
  • also in the base.sh I can see 'apt-get -y install zlib1g-dev libssl-dev libreadline-gplv2-dev'. With the '-y' it should run non-interactively. I don't get what's wrong
    – damko
    Apr 17, 2014 at 16:28

2 Answers 2

0

@Pactrick gave the following answer which solved the exact same issue over on Unix & Linux exchange[1]:

"Set the environment variable DEBIAN_FRONTEND=noninteractive.

For example:

export DEBIAN_FRONTEND=noninteractive
apt-get install -y libssl

This will make apt-get select the default options."

[1]https://unix.stackexchange.com/questions/146283/how-to-prevent-prompt-that-ask-to-restart-services-when-installing-libpq-dev

0

You need to operate at the preseed level, read about debconf-set-selections.

Something like this should do:

libssl1.0.0:amd64 libssl1.0.0/restart-services string ssh ntp exim4

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .