Re: [Hampshire] Dumb dpkg/aptitude question

Top Page

Reply to this message
Author: Richard Danter
Date:  
To: Hampshire LUG Discussion List
Subject: Re: [Hampshire] Dumb dpkg/aptitude question
Thanks all for the very helpful suggestions.

I think setting up my own repository for just one package is a bit of
overkill, but I will bear it in mind for the future. I am hoping I
won't need any other .deb files installing outside of the supported
repositories, but you never know.

gdebi pulls in a lot of extra packages I don't want on my server.
Trying to keep it lean and mean.

So my final solution was just this:

$ sudo dpkg -i virtualbox_<version>.deb
$ sudo aptitude install virtualbox

It's a little ugly having all the dependency warnings from the first
command, but the second command cleans it up just fine and without
having to install anything other than just what VirtualBox needs
(which IMHO is rather more than it should).

Thanks again,
Rich



2008/6/6 Alan Pope <alan@???>:
> On Fri, 2008-06-06 at 12:50 +0100, Richard Danter wrote:
>> I have a .deb file (it's the PUEL version of VirtualBox) that I want
>> to install on a headless server. dpkg -i reports lots of missing
>> dependencies and of course dpkg can't go and resolve them from the
>> usual repositories. Aptitude can get things from repositories but not
>> install a local .deb file (or am I missing something?).
>>
>
> Yup. The gdebi command :)
>
> alan@box:~$ sudo gdebi virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb
> [sudo] password for alan:
> Reading package lists:
> Reading state information: Done
> Reading state information: Done
> Reading state information: Done
>
> Requires the installation of the following packages:
> libdirectfb-1.0-0 libsdl1.2debian libsdl1.2debian-alsa
> Sun xVM VirtualBox
> VirtualBox is a powerful PC virtualization solution allowing you to run
> a
> wide range of PC operating systems on your Linux system. This includes
> Windows, Linux, FreeBSD, DOS, OpenBSD and others. VirtualBox comes with
> a broad
> feature set and excellent performance, making it the premier
> virtualization
> software solution on the market.
> Do you want to install the software package? [y/N]:y
> Done http://gb.archive.ubuntu.com hardy/main libdirectfb-1.0-0
> 1.0.1-7ubuntu3
> Done http://gb.archive.ubuntu.com hardy/main libsdl1.2debian-alsa
> 1.2.13-1ubuntu1
> Done http://gb.archive.ubuntu.com hardy/main libsdl1.2debian
> 1.2.13-1ubuntu1
> Done downloading
> Selecting previously deselected package libdirectfb-1.0-0.
> (Reading database ... 75546 files and directories currently installed.)
> Unpacking libdirectfb-1.0-0
> (from .../libdirectfb-1.0-0_1.0.1-7ubuntu3_i386.deb) ...
> Selecting previously deselected package libsdl1.2debian-alsa.
> Unpacking libsdl1.2debian-alsa
> (from .../libsdl1.2debian-alsa_1.2.13-1ubuntu1_i386.deb) ...
> Selecting previously deselected package libsdl1.2debian.
> Unpacking libsdl1.2debian
> (from .../libsdl1.2debian_1.2.13-1ubuntu1_i386.deb) ...
> Setting up libdirectfb-1.0-0 (1.0.1-7ubuntu3) ...
>
> Setting up libsdl1.2debian-alsa (1.2.13-1ubuntu1) ...
>
> Setting up libsdl1.2debian (1.2.13-1ubuntu1) ...
> Processing triggers for libc6 ...
> ldconfig deferred processing now taking place
> Selecting previously deselected package virtualbox.
> (Reading database ... 75622 files and directories currently installed.)
> Unpacking virtualbox (from
> virtualbox_1.6.2-31466_Ubuntu_hardy_i386.deb) ...
> Setting up virtualbox (1.6.2-31466_Ubuntu_hardy) ...
> Adding group `vboxusers' (GID 118) ...
> Done.
> * Starting VirtualBox kernel module * done.
> * Starting VirtualBox host networking * done.
>
>
> Easy.
>
> Cheers,
> Al.
>
> --
> Please post to: Hampshire@???
> Web Interface: https://mailman.lug.org.uk/mailman/listinfo/hampshire
> LUG URL: http://www.hantslug.org.uk
> --------------------------------------------------------------
>