Setup command not found

Asked by Ethan Waterson on 2012-12-12

Hey all,
I've been trying to fix virtual box, but I'm stuck because the setup command is not found.
What should I do?
___________________________________________________________________________________________________

Length: 33282208 (32M) [application/x-debian-package]
Saving to: `virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb'

100%[================================================================================================================================>] 33,282,208 1.22M/s in 23s

2012-12-11 20:40:01 (1.41 MB/s) - `virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb' saved [33282208/33282208]

apyrexia@apyrexia-VPCEB47GM:~$ sudo dpkg -i virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
dpkg: error processing virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb (--install):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 2 package 'virtualbox-2.1':
 error in Version string '2.1.4-42893_Ubuntu_intrepid': invalid character in revision number
Errors were encountered while processing:
 virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
apyrexia@apyrexia-VPCEB47GM:~$ sudo dpkg -i virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
dpkg: error processing virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb (--install):
 parsing file '/var/lib/dpkg/tmp.ci/control' near line 2 package 'virtualbox-2.1':
 error in Version string '2.1.4-42893_Ubuntu_intrepid': invalid character in revision number
Errors were encountered while processing:
 virtualbox-2.1_2.1.4-42893_Ubuntu_intrepid_i386.deb
apyrexia@apyrexia-VPCEB47GM:~$ sudo aptitude reinstall dkms
The following packages will be REINSTALLED:
  dkms
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 5 not upgraded.
Need to get 0 B/72.8 kB of archives. After unpacking 0 B will be used.
(Reading database ... 152080 files and directories currently installed.)
Preparing to replace dkms 2.2.0.3-1.1ubuntu1 (using .../dkms_2.2.0.3-1.1ubuntu1_all.deb) ...
Unpacking replacement dkms ...
Processing triggers for man-db ...
Setting up dkms (2.2.0.3-1.1ubuntu1) ...

apyrexia@apyrexia-VPCEB47GM:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found
apyrexia@apyrexia-VPCEB47GM:~$ sudo /etc/init.d/vboxdrv.dpkg-bak setup
sudo: /etc/init.d/vboxdrv.dpkg-bak: command not found
apyrexia@apyrexia-VPCEB47GM:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found
apyrexia@apyrexia-VPCEB47GM:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found
apyrexia@apyrexia-VPCEB47GM:~$

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu virtualbox Edit question
Assignee:
No assignee Edit question
Solved by:
Ethan Waterson
Solved:
2012-12-14
Last query:
2012-12-14
Last reply:
2012-12-12
Manfred Hampl (m-hampl) said : #1

The virtualbox version that you try to install is very outdated. It was packaged for ubuntu 8.10 (Intrepid Ibex), a release that was declared end of life April 2010.

In the meanwhile there was a change in the naming standard for Ubuntu packages, and the version number of that package you try to install was a valid version number at that time, but is not fitting to the current standards. This is the reason that you cannot even install that old package on current Ubuntu versions any more.

What ubuntu version are you using (shown by the terminal commands "lsb_release -a" and "uname -a")?
Why do you want to install the ancient virtualbox version 2.4.1, if the current version is 4.1.18?

The easiest way is to install virtalbox from the standards ubuntu repositories by using software-center.

What is the output of:

lsb_release -a; uname -a; apt-cache policy virtualbox

Thanks

Ethan Waterson (elwaterson) said : #3

Ah thanks Manfred. I realize now I was using an old tutorial. I'm new with ubuntu but getting better every day.
I did apt-get remove virtualbox then
apt-get install virtualbox so now I assume I have the up to date one.
The problem still persists
Thanks always for the patience.

@actionparsnip:
apyrexia@apyrexia-VPCEB47GM:~$ lsb_release -a; uname -a; apt-cache policy virtualbox
LSB Version: core-2.0-amd64:core-2.0-noarch:core-3.0-amd64:core-3.0-noarch:core-3.1-amd64:core-3.1-noarch:core-3.2-amd64:core-3.2-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: Ubuntu
Description: Ubuntu 12.10
Release: 12.10
Codename: quantal
Linux apyrexia-VPCEB47GM 3.5.0-19-generic #30-Ubuntu SMP Tue Nov 13 17:48:01 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
virtualbox:
  Installed: 4.1.18-dfsg-1ubuntu1.1
  Candidate: 4.1.18-dfsg-1ubuntu1.1
  Version table:
 *** 4.1.18-dfsg-1ubuntu1.1 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal-updates/universe amd64 Packages
        500 http://security.ubuntu.com/ubuntu/ quantal-security/universe amd64 Packages
        100 /var/lib/dpkg/status
     4.1.18-dfsg-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ quantal/universe amd64 Packages
apyrexia@apyrexia-VPCEB47GM:~$

--------------------------------------
Right now I'm stuck because I get this message when I try to use it

'Kernel driver not installed (rc=-1908)

The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing

'/etc/init.d/vboxdrv setup'

as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary."

When I try /etc/init.d/vboxdrv setup I get this

apyrexia@apyrexia-VPCEB47GM:~$ sudo /etc/init.d/vboxdrv setup
sudo: /etc/init.d/vboxdrv: command not found

DKMS is installed already so thats not it.

I've tried this combo which has worked for others with this same problem

sudo aptitude update
sudo aptitude install dkms
sudo /etc/init.d/vboxdrv setup

But I get the same output as above.

Ethan Waterson (elwaterson) said : #4

I figured it out on my own! with a combination of different hints in the trail.
I had to restart so I don't have the outputs, how can i get terminal history that's not just old commands?

vboxdrv simply is not in the init.d folder on Quantal, so this is a 12.10 specific fix.

I did:

sudo apt-get install linux-headers-3.5.0-17-generic
sudo apt-get remove virtualbox-dkms
sudo apt-get install virtualbox-dkms

Then restarted computer

Everything is working well