Virtualbox 2.0.2 missing config (vbox.cfg) due to upgrade (through non-ose package)

Bug #280973 reported by Tessa
30
This bug affects 3 people
Affects Status Importance Assigned to Milestone
virtualbox-ose (Debian)
Fix Released
Unknown
virtualbox-ose (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: virtualbox-ose

After installing virtualbox-ose-2.0.2-dfsg-0ubuntu3 on Intrepid beta (amd64), VirtualBox doesn't work. When run from the commandline, it complains:

"Could not find VirtualBox installation. Please reinstall."

Looking at the actual virtualbox shell script which is being run, it's failing because /etc/vbox/vbox.cfg is missing. This file doesn't seem to be provided by any package on intrepid. I assume it was included in previous package versions, and there was just a packaging error that caused it to be missed from the current package, but its absence pretty much breaks VirtualBox.

DISCOVERIES (from Daniel):
virtualbox-2.1 (the "official", PUEL package) does the following in postinst:
if [ -f /etc/vbox/vbox.cfg ]; then
  echo "Found old version of /etc/vbox/vbox.cfg, removing."
  rm /etc/vbox/vbox.cfg
fi

Therefore, I think this problem happens when you install virtualbox-ose, then virtualbox-2.1 (or another package from virtualbox.org), _without_ purging virtualbox-ose before and afterwards re-install virtualbox-ose (which does not re-create the removed vbox.cfg file then).

I'm not sure how to address this though (maybe make sure during installation of virtualbox-ose that the file gets created always?) and it seems like a packaging issue with the official packages.

Revision history for this message
Philip Peitsch (philip-peitsch) wrote :

Just to add some more detail. /etc/vbox/vbox.cfg *should* be installed by virtualbox-ose (found using dpkg -S /etc/vbox/vbox.cf), but I don't know how to force it to install. Running sudo aptitude reinstall virtualbox-ose does not regenerate this file.

In order to get working eventually I had to manually extract the vbox.cfg file from the virtualbox-ose deb package, and copy it over myself.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Please try purging and reinstalling virtualbox-ose (aptitude purge virtualbox-ose && aptitude install virtualbox-ose).
Then check, if the vbox.cfg script has been installed correctly.
Please also check if purging removed the manually extracted vbox.cfg before installing it again.

Changed in virtualbox-ose:
status: New → Incomplete
Revision history for this message
Philip Peitsch (philip-peitsch) wrote :

Purging and reinstalling (sudo apt-get purge virtualbox-ose && sudo aptitude install virtualbox-ose) does reinstall vbox.cfg.

The purging does appear to remove the manually extracted vbox.cfg.

Revision history for this message
Daniel Hahler (blueyed) wrote :

Ok, this is good news.. - since that is expected.

Any chance you may have removed the vbox.cfg file manually by accident then?
(You do not have etckeeper installed, do you? This would allow to track if vbox.cfg had been installed originally and when it has been removed)

Some more question, which might help to narrow it down:
Have you only installed virtualbox-ose or virtualbox from virtualbox.org before?
Was this a fresh install of virtualbox-ose or an upgrade?

Revision history for this message
Philip Peitsch (philip-peitsch) wrote :

I definitely haven't manually deleted the file before (e.g., sudo rm vbox.cfg).

The path to the current installation went:
virtualbox-ose (Hardy) => upgrade to Intrepid => virtualbox (non-OSE version from virtualbox.org) => virtualbox-ose

Between virtualbox => virtualbox-ose appeared to be where the vbox.cfg file was lost.

Daniel Hahler (blueyed)
Changed in virtualbox-ose:
importance: Undecided → Medium
status: Incomplete → Triaged
Daniel Hahler (blueyed)
description: updated
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package virtualbox-ose - 2.2.2-dfsg-2ubuntu2

---------------
virtualbox-ose (2.2.2-dfsg-2ubuntu2) karmic; urgency=low

  [ Felix Geyer ]
  * Install virtualbox-ose-source udev rules
    - debian/rules
  * Add missing vboxuser udev rule and fix permissions for
    vboxadd (Closes: #530302)
    - debian/virtualbox-ose-guest-source.udev
  * Auto-detect mouse driver by installing HAL device information
    (Closes: #530299)
    - debian/virtualbox-ose-guest-x11.install

  [ Daniel Hahler ]
  * Remove usage/references to /etc/vbox/vbox.cfg (as handled
    upstream) (LP: #280973).
    This prevents "Could not find VirtualBox installation.
    Please reinstall." error, after having installed the
    upstream debian package.
    - debian/virtualbox-ose.files/VBox.sh: do not source
      vbox.cfg anymore.
    - Delete debian/virtualbox-ose.files/vbox.cfg
    - debian/virtualbox-ose.preinst: remove vbox.cfg on
      upgrades.
  * Move debian/virtualbox-ose.udev => virtualbox-ose-source.udev,
    to complement virtualbox-ose-guest-source.udev.
  * virtualbox-ose-source: conflict with virtualbox.org packages
    (LP: #379878).
    - debian/control

 -- Daniel Hahler <email address hidden> Sun, 24 May 2009 02:22:17 +0200

Changed in virtualbox-ose (Ubuntu):
status: Triaged → Fix Released
Changed in virtualbox-ose (Debian):
status: Unknown → New
Changed in virtualbox-ose (Debian):
status: New → Incomplete
Changed in virtualbox-ose (Debian):
status: Incomplete → New
Changed in virtualbox-ose (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.