The following helped me
Which removed virtualbox but it did not remove virtualbox-ose-dkms which was giving me the same error as OP.Code:apt-get remove virtualbox
The following worked and installed the newest version of virtualbox cleanly no errors!Code:apt-get remove virtualbox-ose-dkms
Code:prepare-kernel-sources cd /usr/src/linux cp -rf include/generated/* include/linux/ wget http://download.virtualbox.org/virtualbox/4.2.6/virtualbox-4.2_4.2.6-82870~Ubuntu~lucid_i386.deb dpkg -i virtualbox-4.2_4.2.6-82870~Ubuntu~lucid_i386.deb



