For 12.10 - need to do both steps. For 12.04 need only to do second step... ignore my system names...showing for purposes as placeholders for your computer name..
Step 1 lrbjr-dv7-64@lrbjrdv764-HP-Pavilion-dv7-Notebook-PC:~$ sudo apt-get install build-essential linux-headers-`uname -r` [sudo] password for lrbjr-dv7-64: Reading package lists... Done Building dependency tree Reading state information... Done build-essential is already the newest version. The following packages were automatically installed and are no longer required: libasprintf0c2:i386 libgomp1:i386 Use 'apt-get autoremove' to remove them. The following NEW packages will be installed: linux-headers-3.5.0-23 linux-headers-3.5.0-23-generic 0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded. Need to get 13.1 MB of archives. After this operation, 69.9 MB of additional disk space will be used. Get:1 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main linux-headers-3.5.0-23 all 3.5.0-23.35 [12.1 MB] Get:2 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/main linux-headers-3.5.0-23-generic amd64 3.5.0-23.35 [963 kB] Fetched 13.1 MB in 1min 29s (145 kB/s) Selecting previously unselected package linux-headers-3.5.0-23. (Reading database ... 200411 files and directories currently installed.) Unpacking linux-headers-3.5.0-23 (from .../linux-headers-3.5.0-23_3.5.0-23.35_all.deb) ... Selecting previously unselected package linux-headers-3.5.0-23-generic. Unpacking linux-headers-3.5.0-23-generic (from .../linux-headers-3.5.0-23-generic_3.5.0-23.35_amd64.deb) ... Setting up linux-headers-3.5.0-23 (3.5.0-23.35) ... Setting up linux-headers-3.5.0-23-generic (3.5.0-23.35) ... Examining /etc/kernel/header_postinst.d. run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-23-generic /boot/vmlinuz-3.5.0-23-generic Step 2 lrbjr-dv7-64@lrbjrdv764-HP-Pavilion-dv7-Notebook-PC:~$ sudo /etc/init.d/vboxdrv setup * Stopping VirtualBox kernel modules [ OK ] * Uninstalling old VirtualBox DKMS kernel modules Error! There are no instances of module: vboxhost 4.2.6 located in the DKMS tree. [ OK ] * Trying to register the VirtualBox kernel modules using DKMS [ OK ] * Starting VirtualBox kernel modules [ OK ] lrbjr-dv7-64@lrbjrdv764-HP-Pavilion-dv7-Notebook-PC:~$ IT WORKS... -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1016165 Title: virtualbox-guest-dkms 4.1.16-dfsg-2: virtualbox-guest kernel module failed to build [error: implicit declaration of function ‘do_mmap’] To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/virtualbox/+bug/1016165/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs