vagrant で ubuntu をセットアップしている時に操作をもとめられてしまう事がありました。
おかげで vagrant を途中終了させなくてはならなくなってしました。

==> cakephp-box-003: Package configuration┌──────────────────────────┤ Configuring grub-pc ├─────────────────────
─────┐│││ The grub-pc package is being upgraded. This menu allows you to select││ which devices you'd like grub-install to be automatically run for, if││ any
.││││ Running grub-install automatically is recommended in most situations, to  ││ prevent the installed GRUB core image from getting out of sync with GRUB  ││ modules or grub.cfg.││││ If you're unsure which drive is designated as boot drive by your BIOS,    ││ it is often a good idea to install GRUB to all of them.││││ Note: it is possible to install GRUB to partition boot records as well,   ││ and some appropriate partitions are offered here. However, this forces    ││ GRUB to use the blocklist mechanism, which makes it less reliable, and    ││ therefore is not recommended.││││<Ok>☼│││└────────────────────────────

vagrant のスクリプトに以下を追加

export DEBIAN_FRONTEND=noninteractive


export DEBIAN_FRONTEND=noninteractive

info "Add apt-repository for PHP5.6, 7.0, 7.1"
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ondrej/php

info "Update OS software"
apt-get update -y
apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" upgrade


Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account log in.