Tails OS - Package architecture does not match.

Discussions related to using VirtualBox on Linux hosts.
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Tails OS - Package architecture does not match.

Post by twerkle »

I'm trying to install VirtualBox on a Tails OS.
Laptop BIOS doesn't have Virtualization option.


I tried the Debain instructions under the linux host section and it have me a error:

Code: Select all

Module build for the currently running kernel was skipped since the
kernel source for this kernel does not seem to be installed.
So I tried:

Code: Select all

sudo apt-get update
sudo apt-get install dkms build-essential
And then downloaded the AMD64 Debain Jessie .deb
Trying to install it I recieved this error:

Code: Select all

dpkg: error processing archive virtualbox-5.0.5.0.16-105871-Debain-jessie_amd64.deb (--install): package architecture (amd64) does not match system (i386)
uname -r reutrns:

Code: Select all

3.16.0-4-amd64
If I install the 32 bit (i386) I get:

Code: Select all

Trying to register the VirtualBox DKMS kernel modules using DKMSError! echo 
Your kernel headers for kernel 3.16.0-4-amd64 cannot be found at /lib/modules/3.16.0-4-amd64/build or /lib/modules/3.16.0-4-amd64/source.
...failed.
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules ...failed!
/var/log/vbox-install.log

Code: Select all

Uninstalling modules from DKMS
Attempting to install using DKMS

creating symlink /var/lib/dkms/voxhost.5.0.16/source -> /usr/src/vboxhost-5.0.16

DKMS: add completed. 
Failed to install using DKMS, attempting to install without
Makefile:185: *** Error: unable to fund sources of your current linux kernel. Specify KERN_DIR=<directory> and run Make again. Stop.
VirtualBox at this point shows up on the Applications list but trying to run a VM outputs this error:

Code: Select all

Kernel driver not installed (rc=-1908)
I then ran:

Code: Select all

# apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,') virtualbox
and reinstalled the (i386) .deb file and running a VM gives new error:

Code: Select all

RTR3InitEx failed with rc=-1912 (rc=-1912)

The VirtualBox kernel modules do not match this version of VirtualBox. The installation of VirtualBox was apparently not successful. Executing 

'/sbin/rcvboxdrv setup'

may correct this.
I run '/sbin/rcvboxdrv setup' and it completes but VirtualBox gives the same error when running a VM.

Out of ideas.

I'm new to linux so sorry if I missed something obvious. I don't understand why it won't let me install the AMD64 version. Any help on the installation would be much appreciated. Thanks in advance, let me know if you need me to post more information.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tails OS - Package architecture does not match.

Post by Perryg »

I would purge the current install of VirtualBox and then run the following:

Code: Select all

# apt-get install linux-headers-$(uname -r)
Then install the i386 version of VirtualBox and reboot the host.
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:I would purge the current install of VirtualBox and then run the following:

Code: Select all

# apt-get install linux-headers-$(uname -r)
Then install the i386 version of VirtualBox and reboot the host.
This gives the error:

Code: Select all

Recompiling VirtualBox kernel modules ...failed!
/var/log/vbox-install.log

Code: Select all

/usr/share/virtualbox/src/vboxhost/build_in_temp: 62: /user/share/virtualbox/src/vboxhost/build_in_tmp: make: not found
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tails OS - Package architecture does not match.

Post by Perryg »

What was the message when you tried to install the linux-headers-$(uname -r)?

Also where did you get your copy of VirtualBox from and what is the exact name of the install?
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:What was the message when you tried to install the linux-headers-$(uname -r)?

Also where did you get your copy of VirtualBox from and what is the exact name of the install?

Code: Select all

Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  cpp-4.8 gcc-4.8 gcc-4.8-base libasan0 libgcc-4.8-dev
  linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-common linux-kbuild-3.16
Suggested packages:
  gcc-4.8-locales gcc-4.8-multilib gcc-4.8-doc libgcc1-dbg libgomp1-dbg
  libitm1-dbg libatomic1-dbg libasan0-dbg libtsan0-dbg libquadmath0-dbg
Recommended packages:
  libc6-dev
The following NEW packages will be installed:
  cpp-4.8 gcc-4.8 gcc-4.8-base libasan0 libgcc-4.8-dev
  linux-compiler-gcc-4.8-x86 linux-headers-3.16.0-4-amd64
  linux-headers-3.16.0-4-common linux-kbuild-3.16
0 upgraded, 9 newly installed, 0 to remove and 3 not upgraded.
Need to get 0 B/16.3 MB of archives.
After this operation, 59.5 MB of additional disk space will be used.
Do you want to continue? [Y/n] y
Selecting previously unselected package gcc-4.8-base:i386.
(Reading database ... 143829 files and directories currently installed.)
Preparing to unpack .../gcc-4.8-base_4.8.4-1_i386.deb ...
Unpacking gcc-4.8-base:i386 (4.8.4-1) ...
Selecting previously unselected package libasan0:i386.
Preparing to unpack .../libasan0_4.8.4-1_i386.deb ...
Unpacking libasan0:i386 (4.8.4-1) ...
Selecting previously unselected package cpp-4.8.
Preparing to unpack .../cpp-4.8_4.8.4-1_i386.deb ...
Unpacking cpp-4.8 (4.8.4-1) ...
Selecting previously unselected package libgcc-4.8-dev:i386.
Preparing to unpack .../libgcc-4.8-dev_4.8.4-1_i386.deb ...
Unpacking libgcc-4.8-dev:i386 (4.8.4-1) ...
Selecting previously unselected package gcc-4.8.
Preparing to unpack .../gcc-4.8_4.8.4-1_i386.deb ...
Unpacking gcc-4.8 (4.8.4-1) ...
Selecting previously unselected package linux-compiler-gcc-4.8-x86.
Preparing to unpack .../linux-compiler-gcc-4.8-x86_3.16.7-ckt20-1+deb8u4_i386.deb ...
Unpacking linux-compiler-gcc-4.8-x86 (3.16.7-ckt20-1+deb8u4) ...
Selecting previously unselected package linux-headers-3.16.0-4-common.
Preparing to unpack .../linux-headers-3.16.0-4-common_3.16.7-ckt20-1+deb8u4_i386.deb ...
Unpacking linux-headers-3.16.0-4-common (3.16.7-ckt20-1+deb8u4) ...
Selecting previously unselected package linux-kbuild-3.16.
Preparing to unpack .../linux-kbuild-3.16_3.16.7-ckt20-1_i386.deb ...
Unpacking linux-kbuild-3.16 (3.16.7-ckt20-1) ...
Selecting previously unselected package linux-headers-3.16.0-4-amd64.
Preparing to unpack .../linux-headers-3.16.0-4-amd64_3.16.7-ckt20-1+deb8u4_i386.deb ...
Unpacking linux-headers-3.16.0-4-amd64 (3.16.7-ckt20-1+deb8u4) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up gcc-4.8-base:i386 (4.8.4-1) ...
Setting up libasan0:i386 (4.8.4-1) ...
Setting up cpp-4.8 (4.8.4-1) ...
Setting up libgcc-4.8-dev:i386 (4.8.4-1) ...
Setting up gcc-4.8 (4.8.4-1) ...
Setting up linux-compiler-gcc-4.8-x86 (3.16.7-ckt20-1+deb8u4) ...
Setting up linux-headers-3.16.0-4-common (3.16.7-ckt20-1+deb8u4) ...
Setting up linux-kbuild-3.16 (3.16.7-ckt20-1) ...
Setting up linux-headers-3.16.0-4-amd64 (3.16.7-ckt20-1+deb8u4) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 3.16.0-4-amd64
Processing triggers for libc-bin (2.19-18+deb8u3) ...

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

Re: Tails OS - Package architecture does not match.

Post by Perryg »

What does uname -r in a terminal report?
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:What does uname -r in a terminal report?

Code: Select all

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

Re: Tails OS - Package architecture does not match.

Post by Perryg »

Then you do need to install the amd64 version. You never replied to where you got your copy of VirtualBox from.
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:Then you do need to install the amd64 version. You never replied to where you got your copy of VirtualBox from.
I'm sorry I didn't see that. I downloaded the .deb package from the downloads page. I tried to install the amd64 version and it gave me an error i posted in the first post saying it doesn't match the architecture.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tails OS - Package architecture does not match.

Post by Perryg »

And the exact name of the install package is?
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:And the exact name of the install package is?
virtualbox-5.0_5.0.16-105871-Debain-jessie_amd64.deb
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tails OS - Package architecture does not match.

Post by Perryg »

It looks like you are going to need to ask the tails folks what is going on. Something about your host is just not right.
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:It looks like you are going to need to ask the tails folks what is going on. Something about your host is just not right.
Thanks for your help. I tried to install VirtualBox on to Ubuntu 14.04 which was booted from a usb and I was able to install the package without errors but when launching the icon shows up but the GUI never loads. Do you think there is an issue because Tails and Ubuntu are being booted from a USB?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Tails OS - Package architecture does not match.

Post by Perryg »

Not sure. Post the complete /var/log/vbox-install.log ( as an attachment )
twerkle
Posts: 10
Joined: 22. Mar 2016, 19:37

Re: Tails OS - Package architecture does not match.

Post by twerkle »

Perryg wrote:Not sure. Post the complete /var/log/vbox-install.log ( as an attachment )

Here you go. Sorry for the delay.
Attachments
vbox-install.log
(1.29 KiB) Downloaded 13 times
Post Reply