[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: install local deb file

On Mon, Nov 03, 2003 at 06:51:26AM -0500, Haines Brown wrote:
> Colin Watson wrote:
> > On Sun, Nov 02, 2003 at 06:50:59PM -0500, Haines Brown wrote:
> > > In any case, the dpkg -i <file> does not work. I'll give the
> > > specifics:
> > > 
> > >  # dpkg -i /storage/debs/libdvdcss2.deb
> > >  dpkg: error processing /storage/debs/libdvdcss2.deb (--install):
> > >   cannot access archive: No such file or directory
> > 
> > So that file doesn't exist. Are you sure you put it there?
> Thanks for the reply. It turned out that the command had to be issued
> in that directory, apparently, not by supplying the path.

I'm confused; 'dpkg -i' is quite happy to take absolute paths. What does
'ls -l /storage/debs/libdvdcss2.deb' say?

Are you sure that it isn't really

> Once I did that, it went OK, except that the package had an unmet
> dependency.
> The .deb extension should not be present.

I beg to differ; it certainly should. 'dpkg -i' takes the exact name of
the file, and does not do any magic with extensions. For aptitude,
you're correct that the extension should not be used, but aptitude
requires you to generate a Packages file or to use a properly set up
mirror somewhere else.

> So I went to install the dependency (libc6 at version at least
> 2.3.2-1), and I found it is testing (currently libc6-dev 2.3.2-9). So
> I tried to cook up an address for testing in /etc/apt/sources.list,
> but my efforts failed,

  deb http://ftp.debian.org testing main

(adjust to use a more local mirror if you like)

> so instead I downloaded the .deb file (libc6_2.3.2-9_i386.deb).
> Now when I try # aptitude install libc6=2.3.2-9, I'm back where I
> started: 

If you've just downloaded the .deb file, use 'dpkg -i
libc6_2.3.2-9_i386.deb' to install it. If that doesn't work, confirm
that the file is really there using 'ls -l libc6_2.3.2-9_i386.deb'.


Colin Watson                                  [cjwatson@flatline.org.uk]

Reply to: