I had the same problem after upgrading from 10.10 to 11.04 beta. The cause was leftover files from a previous (third party repository) install of an older version of Virtualbox. I have removed the /var/lib/dkms/vbox* directories and reinstalled and it works fine now.
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/743151 Title: package virtualbox-ose-dkms (not installed) failed to install/upgrade: subprocess new pre-installation script returned error exit status 5 -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs