Skip to content

Vagrant setup issue #86

@hanlins

Description

@hanlins

Got errors running vagrant up command, the cause is that linux-herader-4.9.0-9-amd64 package is deprecated. Here's the error logs on my local environment:

...
==> router: Checking for guest additions in VM...
    router: No guest additions were detected on the base box for this VM! Guest
    router: additions are required for forwarded ports, shared folders, host only
    router: networking, and more. If SSH fails on this machine, please install
    router: the guest additions and repackage the box to continue.
    router:
    router: This is not an error message; everything may continue to work properly,
    router: in which case you may ignore this message.
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

deb [check-valid-until=no] http://snapshot.debian.org/archive/debian/20190801T025637Z/ stretch main
apt-get install -y linux-headers-`uname -r` dkms

Stdout from the command:

Reading package lists...
Building dependency tree...
Reading state information...


Stderr from the command:

E: Unable to locate package linux-headers-4.9.0-9-amd64
E: Couldn't find any package by glob 'linux-headers-4.9.0-9-amd64'
E: Couldn't find any package by regex 'linux-headers-4.9.0-9-amd64'

Workaround:
The error is actually caused by vagrant-vbguest plugin since it's also installing that linux header package

What I did is to uninstall that plugin locally

vagrant plugin uninstall vagrant-vbguest

Then add the source list in the box (following this workaround).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions