VirtualBox '/etc/init. d/vboxdrv setup': Ubuntu uses virtualbox to install virtual machines. The problem of '/etc/init. d/vboxdrv setup': 1root @ perfIan :~ # Apt-get install linux-headers-'uname-R' 2Reading package lists... done3Building dependency tree 4 Reading state information... done5E: Unable to locate package linux-headers-uname-r01root @ perfIan :~ #/Etc/init. d/vboxdrv setup02 * Stopping VirtualBox kernel modules [OK] 03 * Uninstalling old VirtualBox DKMS kernel modules [OK] 04 * Trying to register the VirtualBox kernel modules using DKMS Error! Your kernel headers for kernel 3.5.0-34-generic cannot be found.05Please install the linux-headers-3.5.0-34-generic package, 06or use the -- kernelsourcedir option to tell DKMS where it's located07 08 * Failed, trying without DKMS09 * Recompiling VirtualBox kernel modules 10 * Look at/var/log/vbox-install.log to find out what went wrong 01root @ perfIan :~ # Apt-get install linux-headers-3.5.0-34-generic02Reading package lists... done03Building dependency tree 04 Reading state information... done05The following extra packages will be installed: 06 linux-headers-3.5.0-3407The following NEW packages will be installed: 08 linux-headers-3.5.0-34 linux-headers-3.5.0-34-generic090 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.10Need to get 13.1 MB of archives.11After this operation, 70.1 MB of additional disk space will be used.12Do you want to continue [Y/n]? Y13Get: 1 http://cn.archive.ubuntu.com/ubuntu/ Quantal-updates/main linux-headers-3.5.0-34 all 3.5.0-34.55 [12.1 MB] 14Get: 2 http://cn.archive.ubuntu.com/ubuntu/ Quantal-updates/main linux-headers-3.5.0-34-generic amd64 3.5.0-34.55 [958 kB] 15 Fetched 13.1 MB in 6 min 8 s (35.4 kB/s) 16 perl: warning: Setting locale failed.17perl: warning: please check that your locale settings: 18 LANGUAGE = "en_US: en: zh_CN: zh", 19 LC_ALL = (unset), 20 LC_TIME = "zh_CN.UTF-8 ", 21 LC_MONETARY = "zh_CN.UTF-8", 22 LC_ADDRESS = "zh_CN.UTF-8", 23 LC_TELEPHONE = "zh_CN.UTF-8", 24 LC_NAME = "Zh_CN.UTF-8", 25 LC_MEASUREMENT = "zh_CN.UTF-8", 26 LC_IDENTIFICATION = "zh_CN.UTF-8", 27 LC_NUMERIC = "zh_CN.UTF-8", 28 LC_PAPER = "zh_CN.UTF-8", 29 LANG = "en_US.UTF-8: zh_CN.UTF-8 "30 are supported and installed on your system.31perl: warning: Falling back to the standard locale (" C "). 32 locale: Cannot set LC_CTYPE to default locale: No such file or directory33locale: Cannot set LC_MESSAGES to default Locale: No such file or directory34locale: Cannot set LC_ALL to default locale: No such file or directory35Selecting previusly unselected package linux-headers-3.5.0-34.36 (Reading database... 153374 files and directories currently installed .) 37 Unpacking linux-headers-3.5.0-34 (from... /linux-headers-3.5.0-34_3.5.0-34.55_all.deb )... 38 Selecting previolet unselected package linux-headers-3.5.0-3 4-generic.39Unpacking linux-headers-3.5.0-34-generic (from... /linux-headers-3.5.0-34-generic_3.5.0-34.55_amd64.deb )... 40 Setting up linux-headers-3.5.0-34 (3.5.0-34.55 )... 41 Setting up linux-headers-3.5.0-34-generic (3.5.0-34.55 )... 42 Examining/etc/kernel/header_postinst.d.43run-parts: executing/etc/kernel/header_postinst.d/dkms 3.5.0-34-generic/boot/vmlinuz-3.5.0-34-generic1root @ perfIan :~ #/Etc/init. d/vboxdrv setup2 * Stopping VirtualBox kernel modules [OK] 3 * Uninstalling old VirtualBox DKMS kernel modules [OK] 4 * Trying to register the VirtualBox kernel modules using DKMS [OK] 5 * Starting virtualBox kernel modules [OK] Step by step, it will be done soon.