<fixed w' a 15.04 install> Ubuntu 14.04 install issues

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

<fixed w' a 15.04 install> Ubuntu 14.04 install issues

Post by Echo4Golf »

Hello all!

I'm having issues installing VirtualBox on a new install of Ubuntu 14.04.3 on a Dell server. I've tried both the virtualbox-4.3 and 5.0 distributions and am using apt-get to install. My kernel is GNU/Linux 3.19.0-26-generic x86_64. The issues seem to revolve around DKMS (which is installed, along with the generic headers package) and inability to compile. I see the issue is long standing and there are several versions of B-Box and Ubuntu that have shown the problem for certain users. I'm sure there's a fix, but I haven't found one that works and, at this point, suspect I've run up against a simple bit of knowledge that I'm missing.

Any suggestions appreciated!
Jerry
Last edited by Echo4Golf on 24. Aug 2015, 23:59, edited 1 time in total.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 14.04 install issues

Post by Perryg »

Can we assume that since you are using apt-get to install you are installing the repo version of VirtualBox. We support the version from virtualbox.org.

Packages needed are as follows.
dkms build-essential linux-headerd-$(uname -r)

I suggest that you use dpkg or gdebi as the package manager and install the one from here ( after you remove theirs )
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: Ubuntu 14.04 install issues

Post by Echo4Golf »

Can we assume that since you are using apt-get to install you are installing the repo version of VirtualBox. We support the version from virtualbox dot org
I started with the repo version but have since added the download dot virtualbox dot org string to my sources file and installed using that.
Packages needed are as follows.
dkms build-essential linux-headerd-$(uname -r)


I have the latest versions of these packages installed.
I suggest that you use dpkg or gdebi as the package manager and install the one from here ( after you remove theirs )
I can try that, although I've also tried the Ubuntu Desktop manager with the same results.

I will report back.

Thanks,
Jerry
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: Ubuntu 14.04 install issues

Post by Echo4Golf »

Well, I gave it a try with wget and dpkg and got the same results. GCC is installed as are the rest of the build essentials.

Code: Select all

root@yut:~# dpkg -i virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb
------------
(Reading database ... 201145 files and directories currently installed.)
Preparing to unpack virtualbox-5.0_5.0.2-102096~Ubuntu~trusty_amd64.deb ...
Unpacking virtualbox-5.0 (5.0.2-102096~Ubuntu~trusty) ...
Setting up virtualbox-5.0 (5.0.2-102096~Ubuntu~trusty) ...
addgroup: The group `vboxusers' already exists as a system group. Exiting.
Stopping VirtualBox kernel modules ...done.
Uninstalling old VirtualBox DKMS kernel modules ...done.
Trying to register the VirtualBox kernel modules using DKMS

Error! Bad return sttus for module build on kernel: 3.19.0-26-generic (x86_64)
Consult /var/lib/dkms/vboxhost/5.0.2/build/make.log for more information.

...failed!

(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
(Look at /var/log/vbox-install.log to find out what went wrong)
Processing triggers for ureadahead (0.100.0-16) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for gnome-menus (3.10.1-0ubuntu2) ...
Processing triggers for desktop-file-utils (0.22-1ubuntu1) ...
Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.54ubuntu1.1) ...
-------------------

-------------------
vbox-install.log
------------------
Uninstalling modules from DKMS
Attempting to install using DKMS

Creating symlink /var/lib/dkms/vboxhost/5.0.2/source ->
/usr/src/vboxhost-5.0.2

DKMS: add completed.

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area....
make KERNELRELEASE=3.19.0-26-generic -C /lib/modules/3.19.0-26-generic/build M=$
Failed to install using DKMS, attempting to install without
make KBUILD_VERBOSE=1 SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 CONFIG_MODULE_SIG$
arch/x86/Makefile:114: stack-protector enabled but compiler support broken
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector no$
make[1]: gcc: Command not found
test -e include/generated/autoconf.h -a -e include/config/auto.conf || ( $
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.$
echo >&2 " Run 'make oldconfig && make prepare' on kernel src t$
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem -I./arc$
/bin/sh: 1: gcc: not found
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
echo >&2; \
echo >&2 " ERROR: Kernel configuration is invalid."; \
echo >&2 " include/generated/autoconf.h or include/config/auto.$
echo >&2 " Run 'make oldconfig && make prepare' on kernel src t$
echo >&2 ; \
/bin/false)
mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
make -f ./scripts/Makefile.build obj=/tmp/vbox.0
gcc -Wp,-MD,/tmp/vbox.0/linux/.SUPDrv-linux.o.d -nostdinc -isystem -I./arc$
/bin/sh: 1: gcc: not found
make[2]: *** [/tmp/vbox.0/linux/SUPDrv-linux.o] Error 127
-----------------------------

-----------------------------
make.log
-----------------------------
DKMS make.log for vboxhost-5.0.2 for kernel 3.19.0-26-generic (x86_64)
Mon Aug 24 13:54:13 EDT 2015
make: Entering directory `/usr/src/linux-headers-3.19.0-26-generic'
arch/x86/Makefile:114: stack-protector enabled but compiler support broken
arch/x86/Makefile:129: CONFIG_X86_X32 enabled but no binutils support
Makefile:669: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector no$
make: gcc: Command not found
LD /var/lib/dkms/vboxhost/5.0.2/build/built-in.o
LD /var/lib/dkms/vboxhost/5.0.2/build/vboxdrv/built-in.o
CC [M] /var/lib/dkms/vboxhost/5.0.2/build/vboxdrv/linux/SUPDrv-linux.o
/bin/sh: 1: gcc: not found
make[2]: *** [/var/lib/dkms/vboxhost/5.0.2/build/vboxdrv/linux/SUPDrv-linux.o] $
make[1]: *** [/var/lib/dkms/vboxhost/5.0.2/build/vboxdrv] Error 2
make: *** [_module_/var/lib/dkms/vboxhost/5.0.2/build] Error 2
make: Leaving directory `/usr/src/linux-headers-3.19.0-26-generic'
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 14.04 install issues

Post by Perryg »

Code: Select all

/bin/sh: 1: gcc: not found
Post the exact results from the terminal when you run the following.

sudo apt-get install dkms build-essential linux-headers-$(uname -r)

also
uname -r
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: Ubuntu 14.04 install issues

Post by Echo4Golf »

I'm root right now so the sudo doesn't matter, does it?

Code: Select all

root@yut:~# sudo apt-get install dkms build-essential linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
build-essential is already the newest version.
dkms is already the newest version.
linux-headers-3.19.0-26-generic is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

Code: Select all

root@yut:~# uname -r
3.19.0-26-generic
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 14.04 install issues

Post by Perryg »

Sorry I don't do root access for security reasons. VirtualBox was designed to operate in user space and while you can force it in root you must know what you are doing and I do not help with that.

Perhaps someone else will.
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: Ubuntu 14.04 install issues

Post by Echo4Golf »

I don't necessarily need to be root. Thanks for the thought though. I think the issue is that for some reason the GCC command line is not working. I wonder if the permissions are wrong. I think what I"ll do next is remove everything and try again using sudo. I've never run into an issue with sudo /i, but we'll see. Thanks for your help.
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: Ubuntu 14.04 install issues

Post by Echo4Golf »

Well I ran the same series of commands as user or under sudo and still the same results. I'm pretty much stumped. Maybe I should try a clean server install? I dunno. Switch to Debian?

Jerry
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Ubuntu 14.04 install issues

Post by Perryg »

I have tested this on just about every Linux package that there is. Ubuntu does make it harder because they try to force their own version but as long as you are careful and read you should be able to install just fine. Just stay away from allowing root. Almost every distro out these days do not enable it by default. There is a reason.
Debian, Ubuntu, Mint are all the same just packaged differently.
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: Ubuntu 14.04 install issues

Post by Echo4Golf »

OK gang. Trying again on a clean install of Ubuntu 15.04. Let's see where this takes us!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: <fixed w' a 15.04 install> Ubuntu 14.04 install issues

Post by Perryg »

I see you have marked this as fixed but no resolution.

New Server install then

Code: Select all

sudo apt-get install dkms build-essential linux-headers-$(uname -r)
then

Code: Select all

wget the install from virtualbox.org

Code: Select all

sudo dpkg -i ( the complete package name ) --nox11
at this point it should post various errors about missing packages.
run

Code: Select all

sudo apt-get -f install
This brings in all depends and finish the install.
Echo4Golf
Posts: 8
Joined: 24. Aug 2015, 18:17

Re: <fixed w' a 15.04 install> Ubuntu 14.04 install issues

Post by Echo4Golf »

Thanks Perry,

I thought I had posted the resolution. (In fact, I thought your post was mine at first!) That is exactly what I wound up doing. Everything's working at this point and the kids now have a Minecraft server that I can work around. I think next will be getting the LAMP server up on a different VM so that I can work on it separately without bugging the rest of the machine.

Thanks again!
Jerry (echo4golf)
Post Reply