当前位置:   article > 正文

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

need to get 70.1 mb of archives. after this operation, 1,184 mb of additiona

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

  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 Error! Your kernel headers for kernel 3.5.0-34-generic cannot be found.
  5. Please install the linux-headers-3.5.0-34-generic package,
  6. or use the --kernelsourcedir option to tell DKMS where it's located
  7. * Failed, trying without DKMS
  8. * Recompiling VirtualBox kernel modules
  9. * Look at /var/log/vbox-install.log to find out what went wrong


  1. root@perfIan:~# apt-get install linux-headers-3.5.0-34-generic
  2. Reading package lists... Done
  3. Building dependency tree
  4. Reading state information... Done
  5. The following extra packages will be installed:
  6. linux-headers-3.5.0-34
  7. The following NEW packages will be installed:
  8. linux-headers-3.5.0-34 linux-headers-3.5.0-34-generic
  9. 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 ]
一步步按照操作,很快搞定。







转载于:https://my.oschina.net/u/921876/blog/142238

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/木道寻08/article/detail/1000355
推荐阅读
相关标签
  

闽ICP备14008679号