Re: install local deb file
Colin, I suspect your directions fixed my problem, but I still fumble on the final installation. > OK, I would advise two things. Firstly, /etc/apt/sources.list should > contain this instead of the last line: > > deb file:/storage/debs ./ This was accepted when I did # aptitude update > Secondly, generate the Packages.gz file like this: > > cd /storage/debs > dpkg-scanpackages . /dev/null > Packages > gzip Packages A bit different than the procedure I originally used. I have in my /storage/debs three .deb files: a libdvdcss2, which is what I am really trying to install. It has two dependencies: the libc6 is just an update; a libdb1-compat, which I must install to satisfy the libc6 update. Although a bit complicated, I packed all three into the Package.gz file, hoping that # aptitude-install libdvdcss2 would do it. It did get to the point that it said it would upgrade 1 package and install 2, so aptutde install understood the logic of the situation. However, when I told it to proceed, I got errors. Apparently the livdcdcss2 was found, but not its two depencies: Err file: debs/ libdb1-compat 2.1.3-7 File not found Err file: debs/ libc6 2.3.2-9 File not found Here's the first section of my new Packages.gz file: Package: libc6 Version: 2.3.2-9 Priority: required Section: base Maintainer: GNU Libc Maintainers <[EMAIL PROTECTED]> Depends: libdb1-compat Suggests: locales, glibc-doc Conflicts: strace (<< 4.0-0), libnss-db (<= 2.2-6.1.1), timezone, timezones, gconv-modules, libtricks, libc6-doc, libc5 (<< 5.4.33-7), libpthread0 (<< 0.7-10), libc6-bin, libwcsmbs, apt (<< 0.3.0), libglib1.2 (<< 1.2.1-2), netkit-rpc, wine (<< 0.0.20021007-1) Provides: glibc-2.3.2-9 Replaces: ldso (<= 1.9.11-9), timezone, timezones, gconv-modules, libtricks, libc6-bin, netkit-rpc, netbase (<< 4.0) Architecture: i386 Filename: ./libc6_2.3.2-9_i386.deb Size: 3730358 MD5sum: 93b2fe09ef8ebbb2612216502245a0c2 Description: GNU C Library: Shared libraries and Timezone data Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. Timezone data is also included. source: glibc installed-size: 12808 Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
On Tue, Nov 04, 2003 at 11:00:39AM -0500, Haines Brown wrote: > Colin Watson wrote: > > I think your Packages file is screwy. Can you please post: > > > > * the contents of /etc/apt/sources.list; > > > > * the first block of text from /storage/debs/Packages or > > /storage/debs/Packages.gz or whatever? > > Here is my sources.list. I've cleaned out comment lines: > > deb http://ftp.br.debian.org/debian/ woody main contrib non-free > deb http://debian.teleglobe.net/non-US/ woody/non-US main contrib non-free > deb http://security.debian.org woody/updates main contrib non-free > deb http://security.debian.org/ stable/updates main > deb file:/storage/ debs/ > > The last line refers to my separate "storage" partition on which there > is: /storage/debs. Here I put I put .deb files and the Packages.gz I > build from them. > > I assume you want me to unpack Packages.gz to inspect its > innards. Here is the first block: [...] > Filename: /storage/debs/libc6_2.3.2-9_i386.deb OK, I would advise two things. Firstly, /etc/apt/sources.list should contain this instead of the last line: deb file:/storage/debs ./ Secondly, generate the Packages.gz file like this: cd /storage/debs dpkg-scanpackages . /dev/null > Packages gzip Packages This way, the path in the last component of the sources.list line and the Filename: lines in Packages.gz will agree, and all should be well after you update. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
> On Tue, Nov 04, 2003 at 07:58:20AM -0500, Haines Brown wrote: > > # cd /storage/debs // went to place where the .debs file is located > > # ls// I see listed libdb1-compat_2.1.3-7_i386.deb > > // and libc6_2.3.2-9_i386.deb > > # apt-get update > > Ign file: debs/ Release // Is this a problem? > > ... > > # apt-get install libdb1-compat > > Reading Package Lists... Done > > Building Dependency Tree > > The following extra packages will be installed: > > libc6 > > The following NEW packages will be installed: > > libdb1-compat > > 1 packages upgraded, 1 newly installed, 0 to remove and 0 not > > upgraded. > > Need to get 0B/3761kB of archives. After unpacking 160kB will be > > used. > > Do you want to continue? [Y/n] // I continue > > Err file: debs/ libdb1-compat 2.1.3-7 > > File not found > > Err file: debs/ libc6 2.3.2-9 > > File not found > > I think your Packages file is screwy. Can you please post: > > * the contents of /etc/apt/sources.list; > > * the first block of text from /storage/debs/Packages or > /storage/debs/Packages.gz or whatever? Here is my sources.list. I've cleaned out comment lines: deb http://ftp.br.debian.org/debian/ woody main contrib non-free deb http://debian.teleglobe.net/non-US/ woody/non-US main contrib non-free deb http://security.debian.org woody/updates main contrib non-free deb http://security.debian.org/ stable/updates main deb file:/storage/ debs/ The last line refers to my separate "storage" partition on which there is: /storage/debs. Here I put I put .deb files and the Packages.gz I build from them. I assume you want me to unpack Packages.gz to inspect its innards. Here is the first block: Package: libc6 Version: 2.3.2-9 Priority: required Section: base Maintainer: GNU Libc Maintainers <[EMAIL PROTECTED]> Depends: libdb1-compat Suggests: locales, glibc-doc Conflicts: strace (<< 4.0-0), libnss-db (<= 2.2-6.1.1), timezone, timezones, gconv-modules, libtricks, libc6-doc, libc5 (<< 5.4.33-7), libpthread0 (<< 0.7-10), libc6-bin, libwcsmbs, apt (<< 0.3.0), libglib1.2 (<< 1.2.1-2), netkit-rpc, wine (<< 0.0.20021007-1) Provides: glibc-2.3.2-9 Replaces: ldso (<= 1.9.11-9), timezone, timezones, gconv-modules, libtricks, libc6-bin, netkit-rpc, netbase (<< 4.0) Architecture: i386 Filename: /storage/debs/libc6_2.3.2-9_i386.deb Size: 3730358 MD5sum: 93b2fe09ef8ebbb2612216502245a0c2 Description: GNU C Library: Shared libraries and Timezone data Contains the standard libraries that are used by nearly all programs on the system. This package includes shared versions of the standard C library and the standard math library, as well as many others. Timezone data is also included. source: glibc installed-size: 12808 Maybe you can see something amiss here. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
On Tue, Nov 04, 2003 at 07:58:20AM -0500, Haines Brown wrote: > # cd /storage/debs // went to place where the .debs file is located > # ls// I see listed libdb1-compat_2.1.3-7_i386.deb > // and libc6_2.3.2-9_i386.deb > # apt-get update > Ign file: debs/ Release // Is this a problem? > ... > # apt-get install libdb1-compat > Reading Package Lists... Done > Building Dependency Tree > The following extra packages will be installed: > libc6 > The following NEW packages will be installed: > libdb1-compat > 1 packages upgraded, 1 newly installed, 0 to remove and 0 not >upgraded. > Need to get 0B/3761kB of archives. After unpacking 160kB will be >used. > Do you want to continue? [Y/n] // I continue > Err file: debs/ libdb1-compat 2.1.3-7 > File not found > Err file: debs/ libc6 2.3.2-9 > File not found I think your Packages file is screwy. Can you please post: * the contents of /etc/apt/sources.list; * the first block of text from /storage/debs/Packages or /storage/debs/Packages.gz or whatever? My feeling is that the Packages file has been generated with the wrong paths, which should be relatively easy to fix. > The above suggests that apt is able to access the directory, see the > files it, but not access them. The files are owned by user, but the > command is run by root, so ownership not an issue. The files are > -rw---. I assume they need only be readable. The errors say "file not found", not "permission denied". Therefore apt is looking in the wrong place. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
Nick, thanks, but your second method (installing dependences first, then the package that needs them) does not work for me. Here's what I did. # cd /storage/debs // went to place where the .debs file is located # ls// I see listed libdb1-compat_2.1.3-7_i386.deb // and libc6_2.3.2-9_i386.deb # apt-get update Ign file: debs/ Release // Is this a problem? ... # apt-get install libdb1-compat Reading Package Lists... Done Building Dependency Tree The following extra packages will be installed: libc6 The following NEW packages will be installed: libdb1-compat 1 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 0B/3761kB of archives. After unpacking 160kB will be used. Do you want to continue? [Y/n] // I continue Err file: debs/ libdb1-compat 2.1.3-7 File not found Err file: debs/ libc6 2.3.2-9 File not found Failed to fetch file:/storage//storage/debs/libdb1-compat_2.1.3-7_i386.deb File not found. // I don't understand the syntax here. Is it looking in // /storage/debs? Failed to fetch file:/storage//storage/debs/libc6_2.3.2-9_i386.deb File not found. E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing? In case the order was critical, I tried with the other file first, but same results. The above suggests that apt is able to access the directory, see the files it, but not access them. The files are owned by user, but the command is run by root, so ownership not an issue. The files are -rw---. I assume they need only be readable. But another complication. The libc6 is an update, not a new installation. So I tried apt-get upgrade libc6: The following packages have been kept back libc6 I tried libc6=2.3.2-6, and got the same results as without the version specification. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
Hi, * Haines Brown <[EMAIL PROTECTED]> [031104 10:29]: > A question about how to handle dependencies when using dpkg -i. What > I'm trying to do is install libdvdcss2, which depends on my upgrading > libc6, and that, in turn depends on libdb1-compat. > > If I run dpkg -i on just the libdvdcss2_1.2.5-0.2_i386.deb, I assume > it will not know to look in the same folder for any files that might > satisfy dependencies. Correct. If you must use "dkg -i" to install something you must make sure that you have installed the required decencies. Option 1. If you .deb files of the dependencies you can install them all at the same time: eg. # dpkg -i libdvdcss2_1.2.5-0.2_i386.deb libc6_xxx.deb libdb1-compat_yyy.deb Option 2. Install the dependencies first using apt-get: eg. # apt-get install libc6 libdb1-compat # dpkg -i libdvdcss2_1.2.5-0.2_i386.deb HTH, Nick. -- Debian testing/unstable Linux twofish 2.6.0-test9-looxt93c1 i686 GNU/Linux signature.asc Description: Digital signature
Re: install local deb file
> > 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 > /storage/debs/libdvdcss2_someversionorother_i386.deb? > > > 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. Colin, Thanks. That paragraph a revellation on several counts. > If you've just downloaded the .deb file, use 'dpkg -i > libc6_2.3.2-9_i386.deb' to install it. A question about how to handle dependencies when using dpkg -i. What I'm trying to do is install libdvdcss2, which depends on my upgrading libc6, and that, in turn depends on libdb1-compat. If I run dpkg -i on just the libdvdcss2_1.2.5-0.2_i386.deb, I assume it will not know to look in the same folder for any files that might satisfy dependencies. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
> Put it in /storage/debs/.=20 > > Just to clarify, I would do something like: > > echo "deb file:/storage/ debs/" >> /etc/apt/sources.list > dpkg-scanpackages /storages/debs /dev/null | gzip > /storage/debs/Packages.= > gz > apt-get update > apt-get install whatever Nick, this is one thing I originally tried, but failed. This time, it think I got a bit further. I'm trying to install libdvdcss2 to that I might view DVD on xine. I found it and put it into my local /storage/debs directory, along with two dependencies, libc6 and libdb1. I did the Packages.gz creation, informed storage.list of the location, and did the update. So far so good. The Packages.gz holds three packages, but since I want to install the libdvdcss2 primarily, I installed it, hoping that it would figure out the dependencies and install them, too. Apparently I was wrong. I get something like this: Reading package lists... Building Dependency Tree Reading extended state information Then removal of unused packages (including my Qt3 libraries, which I installed in preparation for installation of an application that will need them). Then it said that two of the three packages in Packages.gz will be intalled, and one package (the libc6) will be upgrades. Except for at least one group of undesired removals, sounds good. I'm told how many packages will be removed, installed and upgraded, and the space required. That sounds right. So I say, Continue, and it proceeds to write extended state information. But then: Err file: debs/ libsdb1-compat 2.1.3-7 File not found Err file: debs/ libc6 2.3.2-9 File not found Removing... So it was unable to find the two dependencies in the Packages.gz, and yet also apparently somehow managed to install the libdvdcss2 that depended on them, which I don't understand. I run # apt-cache pkgnames | grep libdvdcss2 libdvdcss2 which I take it means the installation of this packages suceeded. But the command also tells me that libsdb1-compat not installed, and libc6 not upgraded. Should I have have run # apt-get install libdvdcss2 libsdb1-compat libc6=2.3.3-9? I tried, but got the same Err file messages as above (although no Removals this time, of course). Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
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 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 /storage/debs/libdvdcss2_someversionorother_i386.deb? > 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'. Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
> On Sun, Nov 02, 2003 at 06:50:59PM -0500, Haines Brown wrote: > > In any case, the dpkg -i 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. Once I did that, it went OK, except that the package had an unmet dependency. The .deb extension should not be present. The comand # aptitude install works the same, except the error message is phrased a little differently. 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, 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: libc6=2.3.2-9 (can't find the 2.3.2-9 version for libc6) libc6-dev=2.3.2-9 (can't find this version for libc6-dev) libc6=2.3.2-9_i386 (can't find 2.3.2-9_i386 version) and other combinations. I tried dpkg -i, and it said it could not access the archive. But when I tried dpbg -i on another .deb in my /storage/debs directory, it said it could not find it. That is a slighly different reponse, and I'm at a loss. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
Evening, * Haines Brown <[EMAIL PROTECTED]> [031103 12:06]: > Osamu sama wrote: > > On Sun, Nov 02, 2003 at 03:15:06PM -0500, Haines Brown wrote: > > > I've spent some time pouring over apt-HOWTO, and just don't > > > understand. I want to use aptitude to install a local .deb file. I > > > place it in my /storage/debs. > > > > > > In the HOWTO, it said to do this: > > > > > > deb file:/storage debs\ > > ^ What is this back slash? > > > But when I run aptitude update, it says the line is malformed. > > > > > > How does one use aptitude to install a local deb file? > > The backslash was a typo (only in my message, not in sources.list). I > was just copying the model in apt-HOWTO (I thought). The problem seems > to be that aptitude update will take the storage directory above and > append it to /var/lib/apt/lists/, but I'm not sure. > > I'm sure there's a very simple answer to my question. I followed the > HOWTO and only managed to create a Packages.gz file, but no idea what > to do with it. Put it in /storage/debs/. Just to clarify, I would do something like: echo "deb file:/storage/ debs/" >> /etc/apt/sources.list dpkg-scanpackages /storages/debs /dev/null | gzip > /storage/debs/Packages.gz apt-get update apt-get install whatever HTH. Nick. -- Debian testing/unstable Linux twofish 2.6.0-test9-looxt93c1 i686 GNU/Linux signature.asc Description: Digital signature
Re: install local deb file
On Sun, Nov 02, 2003 at 06:50:59PM -0500, Haines Brown wrote: > In any case, the dpkg -i 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? Cheers, -- Colin Watson [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
> > How does one use aptitude to install a local deb file? > > There may be a way to convince aptitude to do this, though i don't know > of one. It seems to me you may just be using the wrong tool for the > job. > > Is there some compelling reason not to use dpkg for your situation? > > dpkg --install > or > dpkg -i Well, I got the impression that aptitude would handle dependencies properly and keep current with the package situation. In any case, the dpkg -i 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 Errors were encountered while processing: /storage/debs/libdvdcss2.deb I tried also without the .deb extension. I also copied the libdvdcss2.deb file into /var/cache/apt/archives, but when I ran # aptitude install libdvdcss2, the file not seen. No better luck with # dpkg -i. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
> On Sun, Nov 02, 2003 at 03:15:06PM -0500, Haines Brown wrote: > > I've spent some time pouring over apt-HOWTO, and just don't > > understand. I want to use aptitude to install a local .deb file. I > > place it in my /storage/debs. > > > > In the HOWTO, it said to do this: > > > > deb file:/storage debs\ > ^ What is this back slash? > > But when I run aptitude update, it says the line is malformed. > > > > How does one use aptitude to install a local deb file? The backslash was a typo (only in my message, not in sources.list). I was just copying the model in apt-HOWTO (I thought). The problem seems to be that aptitude update will take the storage directory above and append it to /var/lib/apt/lists/, but I'm not sure. I'm sure there's a very simple answer to my question. I followed the HOWTO and only managed to create a Packages.gz file, but no idea what to do with it. Haines -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: install local deb file
On Sun, Nov 02, 2003 at 03:15:06PM -0500, Haines Brown wrote: > > How does one use aptitude to install a local deb file? There may be a way to convince aptitude to do this, though i don't know of one. It seems to me you may just be using the wrong tool for the job. Is there some compelling reason not to use dpkg for your situation? dpkg --install or dpkg -i Cheers! -- ,-. > -ScruLoose- |I care less and less what people think.< > Please do not | - Ani DiFranco< > reply off-list. | < `-' pgp0.pgp Description: PGP signature
Re: install local deb file
On Sun, Nov 02, 2003 at 03:15:06PM -0500, Haines Brown wrote: > I've spent some time pouring over apt-HOWTO, and just don't > understand. I want to use aptitude to install a local .deb file. I > place it in my /storage/debs. > > In the HOWTO, it said to do this: > > deb file:/storage debs\ ^ What is this back slash? > But when I run aptitude update, it says the line is malformed. > > How does one use aptitude to install a local deb file? Osamu -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]