Marius,

On Tuesday 23 January 2007 00:42, Marius Scurtescu wrote:
> I tried installing vbox on a Ubuntu Edgy machine and run into problems with
> it.
>
> The installation ended with an error and pointed to
> /var/log/vbox-install.log, its contents:
> make: Entering directory `/opt/VirtualBox-1.3.2/src'
> Makefile:42: *** Error: unable to find the sources of your current
> Linux kernel. Specify KERN_DIR= and run Make again.. Stop.
> make: Leaving directory `/opt/VirtualBox-1.3.2/src'
>
> Seems that I did not have the sources for my current kernel.
>
> Decided to uninstall, but that would not work either, not even a
> forced one. On every attempt (or apt-get/synaptic operation) it would
> say "subprocess post-installation script returned error exit status
> 1".
>
> Two notes:
> 1. If the kernel source is required can it be added as a dependency of
> the .deb package?

We will add more dependencies. However, the right dependency is _not_
the kernel source package but the suitable linux-header package for your
current running kernel (!) because there are different configurations for
the same kernel version (SMP/no SMP, 386/686, ...). A package is required
which contains a link

  /lib/modules/`uname -r`/build

which points to the directory containing the right kernel headers.

> 2. Is the same script run on both install and uninstall? Can you have
> two separate ones? (so at least you can uninstall if the install
> fails).

The problem here is that the prerm script fails if not suitable kernel
module was found.

> Instead of just installing the kernel source I followed instructions
> in this blog (don't ask why):
> http://www.ubuntugeek.com/create-and-manage-virtual-machines-using-virtualb
>ox.html#comment-185
>
> Now synaptic is completely hosed (cannot run any searches).
>
> Any suggestions how can I get out of this mess?

Yes: Please read 

  http://www.virtualbox.org/wiki/User_FAQ

Look for "Debian packages".

Apologies for these problems with the Debian packages. This should be fixed
in our release which is expected this week.

Kind regards,

Frank
-- 
## InnoTek Systemberatung GmbH, http://www.innotek.de ##

Attachment: pgpXx4371Fcwm.pgp
Description: PGP signature

_______________________________________________
vbox-users mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-users

Reply via email to