Snmp error when installing

Discussions related to using VirtualBox on Linux hosts.
Locked
hellomynameisjeff
Posts: 3
Joined: 22. Oct 2015, 15:55

Snmp error when installing

Post by hellomynameisjeff »

I have this issue when trying to install:

Code: Select all

$ sudo apt-get install virtualbox-5.0 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed
virtualbox-5.0
0 to upgrade, 1 to newly install, 0 to remove and 0 not to upgrade.
Need to get 0 B/63.1 MB of archives.
After this operation, 154 MB of additional disk space will be used.
Preconfiguring packages ...
Selecting previously unselected package virtualbox-5.0.
(Reading database ... 235685 files and directories currently installed.)
Preparing to unpack .../virtualbox-5.0_5.0.8-103449~Ubuntu~trusty_amd64.deb ...
Unpacking virtualbox-5.0 (5.0.8-103449~Ubuntu~trusty) ...
Processing triggers for systemd (219-7ubuntu6) ...
Processing triggers for ureadahead (0.100.0-19) ...
Processing triggers for hicolor-icon-theme (0.14-0ubuntu1) ...
Processing triggers for shared-mime-info (1.3-1) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu3) ...
Processing triggers for bamfdaemon (0.5.1+15.04.20150202-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.58ubuntu1) ...
Setting up virtualbox-5.0 (5.0.8-103449~Ubuntu~trusty) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMSERROR:     Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-5.0.0.crash'
Error! Bad return status for module build on kernel: 3.19.0-28-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.8/build/make.log for more information.
...failed!
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
OS Information:

Ubuntu 15.04

Code: Select all

$ uname -a
Linux 3.19.0-28-generic #30-Ubuntu SMP Mon Aug 31 15:52:51 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
I did:

Code: Select all

for i in vboxhost vboxdrv vboxnetflt vboxnetadp; do

sudo rm -rf "/var/lib/dkms/${i}"*

done
Then:

Code: Select all

$ sudo rcvboxdrv setup
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Removing old VirtualBox kernel module ...done.
Trying to register the VirtualBox kernel modules using DKMSERROR: Cannot create report: [Errno 17] File exists: '/var/crash/virtualbox-5.0.0.crash'
Error! Bad return status for module build on kernel: 3.19.0-28-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.8/build/make.log for more information.
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
In /var/log/vbox-install.log:

Code: Select all

$ tail /var/log/vbox-install.log 
include/net/netns/mib.h:4:22: fatal error: net/snmp.h: No such file or directory
 #include <net/snmp.h>
                      ^
compilation terminated.
scripts/Makefile.build:257: recipe for target '/tmp/vbox.0/linux/VBoxNetFlt-linux.o' failed
make[2]: *** [/tmp/vbox.0/linux/VBoxNetFlt-linux.o] Error 1
Makefile:1395: recipe for target '_module_/tmp/vbox.0' failed
make[1]: *** [_module_/tmp/vbox.0] Error 2
Makefile:205: recipe for target 'vboxnetflt' failed
make: *** [vboxnetflt] Error 2
I have net-snmp and dkms and linux-headers-generic installed.

I can't figure out why it's not working.

Can anyone help?
hellomynameisjeff
Posts: 3
Joined: 22. Oct 2015, 15:55

Re: Snmp error when installing

Post by hellomynameisjeff »

Bump.
Locked