VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
gezhonglunta
帖子: 8
注册时间: 2013-02-21 15:27

VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#1

帖子 gezhonglunta » 2013-02-21 15:41

VirtualBox版本4.2.6
Ubuntu版本ubuntu 12.10 x64
安装增强包命令:sudo sh VBoxLinuxAdditions.run
提示错误:
Building the main Guest Additions module ... fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
查看了一下log文件,内容如下:
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

由于增强包无法安装,现在系统用起来很不舒服,还不能文件共享,求各位大神帮忙看看,多谢!
gezhonglunta
帖子: 8
注册时间: 2013-02-21 15:27

VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#2

帖子 gezhonglunta » 2013-02-21 15:47

VirtualBox版本4.2.6
Ubuntu版本ubuntu 12.10 x64
安装增强包命令:sudo sh VBoxLinuxAdditions.run
提示错误:
Building the main Guest Additions module ... fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
查看了一下log文件,内容如下:
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.
/tmp/vbox.0/Makefile.include.header:97: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again。 停止。
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

由于增强包无法安装,现在系统用起来很不舒服,还不能文件共享,求各位大神帮忙看看,多谢!
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

Re: VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#3

帖子 eexpress » 2013-02-21 15:51

增强包的版本,要对应程序的版本。去官网下载。
● 鸣学
gezhonglunta
帖子: 8
注册时间: 2013-02-21 15:27

Re: VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#4

帖子 gezhonglunta » 2013-02-21 16:12

eexpress 写了:增强包的版本,要对应程序的版本。去官网下载。
你好,我在这个网站上找了半天没找到,能不能帮我找一下,多谢!
https://www.virtualbox.org/wiki/Downloads
头像
YeLee
论坛版主
帖子: 26406
注册时间: 2008-08-13 8:48
系统: Fundu i64
来自: 东海硇州,一双管钥。
联系:

Re: VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#5

帖子 YeLee » 2013-02-21 17:26

http://download.virtualbox.org/virtualb ... _4.2.6.iso
这个便是对应的版本,不过,我要说的是,并非一定要对应版本,addon的版本跟host完全无关,表示我的机子的vbox不知道在次版本号上升级多少次了,guest里面的模块版本没变一样没问题。
跟着,我要说明的是事实,是你的内核头文件找不到路的问题,当然,vbox的addon在源里面便有,绕开包管理倒是一个不好的习惯。
◎当我站在道德的高度上俯视别人的时候,发现自己是多么渺小。
♥执着但不偏激,反对而不排斥,坚决捍卫矛盾体的存在方式。
★★★天气预报★★★
fcitx-yatable一个可以使用的码表输入法
[教程]几个实例攻克软件编译难关
Gentoo Development Guide
字体相关
头像
b33e
帖子: 3874
注册时间: 2011-06-07 14:20

Re: VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#6

帖子 b33e » 2013-02-21 17:59

源里面的版本有点旧,我也去官网下载的 :em06
头像
fuhaoyun
帖子: 526
注册时间: 2009-05-08 14:12
来自: http://weibo.com/u/2201287863

Re: VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#7

帖子 fuhaoyun » 2013-02-22 18:21

我也用4.2.6 amd64,下载VirtualBox 4.2.6 Oracle VM VirtualBox Extension Pack 。

双击安装,完美运行!

http://download.virtualbox.org/virtualb ... ox-extpack

只用Ubuntu/Unity:安全、高效、自由、简洁!
http://weibo.com/u/2201287863
----------------------------------------------------
用了4年Ubuntu,发现离开windows也可以活得很好
看球赛、炒股、聊天、office等等都不算问题了
一切都是习惯,困难解决了就好

DDV
帖子: 535
注册时间: 2010-08-09 9:12

Re: VirtualBox安装Ubuntu无法安装增强包(VBoxGuestAdditions)

#8

帖子 DDV » 2013-02-24 10:36

2楼答非所问…… :em20
ubuntu
回复