VirtualBox '/etc/init.d/vboxdrv setup'问题


VirtualBox '/etc/init.d/vboxdrv setup'问题
 
Ubuntu下使用virtualbox安装虚拟机,遇到'/etc/init.d/vboxdrv setup'问题:
 
1
root@perfIan:~# apt-get install linux-headers-'uname -r'
2
Reading package lists... Done
3
Building dependency tree     
4
Reading state information... Done
5
E: Unable to locate package linux-headers-uname -r
01
root@perfIan:~# /etc/init.d/vboxdrv setup
02
 * 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.
05
Please install the linux-headers-3.5.0-34-generic package,
06
or use the --kernelsourcedir option to tell DKMS where it's located
07
 
08
 * Failed, trying without DKMS
09
 * Recompiling VirtualBox kernel modules                                      
10
 * Look at /var/log/vbox-install.log to find out what went wrong
 
01
root@perfIan:~# apt-get install linux-headers-3.5.0-34-generic
02
Reading package lists... Done
03
Building dependency tree     
04
Reading state information... Done
05
The following extra packages will be installed:
06
  linux-headers-3.5.0-34
07
The following NEW packages will be installed:
08
  linux-headers-3.5.0-34 linux-headers-3.5.0-34-generic
09
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
10
Need to get 13.1 MB of archives.
11
After this operation, 70.1 MB of additional disk space will be used.
12
Do you want to continue [Y/n]? y
13
Get: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]
14
Get: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 6min 8s (35.4 kB/s)                                       
16
perl: warning: Setting locale failed.
17
perl: 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.
31
perl: warning: Falling back to the standard locale ("C").
32
locale: Cannot set LC_CTYPE to default locale: No such file or directory
33
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
34
locale: Cannot set LC_ALL to default locale: No such file or directory
35
Selecting previously 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 previously unselected package linux-headers-3.5.0-34-generic.
39
Unpacking 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.
43
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.5.0-34-generic /boot/vmlinuz-3.5.0-34-generic
1
root@perfIan:~# /etc/init.d/vboxdrv setup
2
 * 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 ]
一步步按照操作,很快搞定。
 

相关内容

    暂无相关文章