Custom Search

Wednesday, October 28, 2015

Trying to register the VirtualBox kernel modules using DKMSError! Your kernel headers for kernel 3.13.0-63-generic cannot be found

1)
$ sudo -E apt-get install virtualbox-5.0

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgsoap4 libvncserver0
Use 'apt-get autoremove' to remove them.
Recommended packages:
  libsdl-ttf2.0-0 pdf-viewer
The following NEW packages will be installed:
  virtualbox-5.0
0 upgraded, 1 newly installed, 0 to remove and 56 not upgraded.
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 ... 85359 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 ureadahead (0.100.0-16) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
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! Your kernel headers for kernel 3.13.0-63-generic cannot be found.
Please install the linux-headers-3.13.0-63-generic package,
or use the --kernelsourcedir option to tell DKMS where it's located
 ...failed!
  (Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
  (Look at /var/log/vbox-install.log to find out what went wrong)
$

2)
$ sudo -E apt-get install linux-headers-3.13.0-63-generic

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgsoap4 libvncserver0
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  linux-headers-3.13.0-63
The following NEW packages will be installed:
  linux-headers-3.13.0-63 linux-headers-3.13.0-63-generic
0 upgraded, 2 newly installed, 0 to remove and 56 not upgraded.
Need to get 9,579 kB of archives.
After this operation, 76.8 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 http://in.archive.ubuntu.com/ubuntu/ trusty-security/main linux-headers-3.13.0-63 all 3.13.0-63.103 [8,874 kB]
Get:2 http://in.archive.ubuntu.com/ubuntu/ trusty-security/main linux-headers-3.13.0-63-generic amd64 3.13.0-63.103 [705 kB]
Fetched 9,579 kB in 0s (43.6 MB/s)                      
Selecting previously unselected package linux-headers-3.13.0-63.
(Reading database ... 86137 files and directories currently installed.)
Preparing to unpack .../linux-headers-3.13.0-63_3.13.0-63.103_all.deb ...
Unpacking linux-headers-3.13.0-63 (3.13.0-63.103) ...
Selecting previously unselected package linux-headers-3.13.0-63-generic.
Preparing to unpack .../linux-headers-3.13.0-63-generic_3.13.0-63.103_amd64.deb ...
Unpacking linux-headers-3.13.0-63-generic (3.13.0-63.103) ...
Setting up linux-headers-3.13.0-63 (3.13.0-63.103) ...
Setting up linux-headers-3.13.0-63-generic (3.13.0-63.103) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.13.0-63-generic /boot/vmlinuz-3.13.0-63-generic
$

3)
$ sudo -E apt-get install virtualbox-5.0

Reading package lists... Done
Building dependency tree      
Reading state information... Done
virtualbox-5.0 is already the newest version.
The following packages were automatically installed and are no longer required:
  libgsoap4 libvncserver0
Use 'apt-get autoremove' to remove them.
0 upgraded, 0 newly installed, 0 to remove and 56 not upgraded.
$

4)
$ sudo -E apt-get purge virtualbox-5.0

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libaudio2 libcaca0 libgsoap4 libice6 libqt4-declarative libqt4-network
  libqt4-opengl libqt4-script libqt4-sql libqt4-xml libqt4-xmlpatterns
  libqtcore4 libqtdbus4 libqtgui4 libsdl1.2debian libsm6 libvncserver0 libvpx1
  libxmu6 libxt6 qtcore4-l10n
Use 'apt-get autoremove' to remove them.
The following packages will be REMOVED:
  virtualbox-5.0*
0 upgraded, 0 newly installed, 1 to remove and 56 not upgraded.
After this operation, 154 MB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 110957 files and directories currently installed.)
Removing virtualbox-5.0 (5.0.8-103449~Ubuntu~trusty) ...
Purging configuration files for virtualbox-5.0 (5.0.8-103449~Ubuntu~trusty) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
$

5)
$ sudo -E apt-get install virtualbox-5.0

Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libgsoap4 libvncserver0
Use 'apt-get autoremove' to remove them.
Recommended packages:
  libsdl-ttf2.0-0 pdf-viewer
The following NEW packages will be installed:
  virtualbox-5.0
0 upgraded, 1 newly installed, 0 to remove and 56 not upgraded.
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 ... 110179 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 ureadahead (0.100.0-16) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
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 DKMS ...done.
Starting VirtualBox kernel modules ...done.

$

No comments:

Post a Comment