Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant up hangs on "Setting up grub-pc" #3

Open
SerkanYildiz opened this issue Jun 24, 2017 · 5 comments
Open

Vagrant up hangs on "Setting up grub-pc" #3

SerkanYildiz opened this issue Jun 24, 2017 · 5 comments

Comments

@SerkanYildiz
Copy link

SerkanYildiz commented Jun 24, 2017

When I execute the vagrant up command, the process hangs on:

==> default: Generation complete.
==> default: Setting up libpam-systemd:amd64 (229-4ubuntu17) ...
==> default: Setting up udev (229-4ubuntu17) ...
==> default: addgroup:
==> default: The group `input' already exists as a system group. Exiting.
==> default: update-initramfs: deferring update (trigger activated)
==> default: Setting up libfreetype6:amd64 (2.6.1-0.1ubuntu2.3) ...
==> default: Setting up grub-common (2.02~beta2-36ubuntu3.11) ...
==> default: update-rc.d: warning: start and stop actions are no longer supported; falling back to defaults
==> default: Setting up grub2-common (2.02~beta2-36ubuntu3.11) ...
==> default: Setting up grub-pc-bin (2.02~beta2-36ubuntu3.11) ...
==> default: Setting up grub-pc (2.02~beta2-36ubuntu3.11) ...
==> default:

My Vagrantfile looks like:

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
    config.vm.box = "bento/ubuntu-16.04"
    config.vm.hostname = "TestBox"

    config.vm.network "forwarded_port", guest: 80, host: 8080

    config.vm.network "private_network", ip: "192.168.33.10"

        config.vm.provider "virtualbox" do |v|
             v.memory = 2048
             v.cpus = 2
        end

    config.vm.synced_folder "public", "/var/www", :nfs => { :mount_options => ["dmode=777","fmode=666"] }
    config.ssh.insert_key = false
    config.vm.provision "shell", path: "install.sh", privileged: false
end
@Imperio8
Copy link

Imperio8 commented Jul 5, 2017

same here

@SerkanYildiz
Copy link
Author

Solved the problem by running the failing command with by logging in into the machine.

@Imperio8
Copy link

Imperio8 commented Jul 5, 2017

@SerkanYildiz I didn't understand that, would you mind explaining? (I'm noob :P )

@whatnickcodes
Copy link
Member

Get rid of:

sudo apt-get -y upgrade

@PolarGoose
Copy link

Get rid of:

sudo apt-get -y upgrade

just add the following before running the upgrade command and it will work:
export DEBIAN_FRONTEND=noninteractive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants