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

Re: Bug#181071: acknowledged by developer (Re: apt: -o Dir::Cache::Archives can't specify "partial" differently)



On Wed, Jul 16, 2003 at 12:21:11PM +0800, Dan Jacobson wrote:
> Mike> On Sat, Apr 26, 2003 at 04:21:55AM +0800, Dan Jacobson wrote:
> D> #181071: apt: -o Dir::Cache::Archives can't specify "partial" differently ,
> D> which was filed against the apt package.
> >> 
> >> Yes, but you have not enabled the user to specify a /partial directory
> >> different from the parent directory, no?  This poor assumption means
> >> some users will have to copy an entire archive from a read-only medium
> >> to a read/write medium, 
> Mike> [...]
> >> Take the case of apt-zip and CDROMs.
> 
> Mike>   No.  You should not need to mess with /var/cache/apt/archives.
> 
> Mike> If you have a CD of .debs that you want to load
> Mike> - Use a cdrom:// uri
> 
> is "cdrom://" documented?

  There seems to be some documentation about it in sources.list(5) and 
apt-cdrom(8).

> does one write
> deb cdrom://cdrom unstable main contrib non-free ?
> note my cdrom is has just one flat dir with debs in it.
> 
> Mike>   or
> Mike> - Mount the Cd and use a file:// uri in sources.list.  
> 
> Mike>   See sources.list man page for more details.
> 
> using the example there
>   deb file:/cdrom unstable main contrib non-free
> gzip: stdin: unexpected end of file
> Failed to fetch file:/cdrom/dists/unstable/main/binary-i386/Packages  File not found
> etc.
> why of course, my cdrom is just a flat archive of .debs, as produced
> by apt-zip.

  Err... okay I should have been more clear what I was thinking.


- Do you have have a Packages or Packages.gz file in the cdrom 
  driectory?

If you do not, you will have to make one in some writable directory
with dpkg-scanpackages... something like this should work:

===
mkdir ~/apt
cd apt
ln -s /cdrom  cdrom1
ln -s /cdrom2 cdrom2
dpkg-scanpackages . /dev/null > Packages
===

The Packages you made above can be used by adding to 

/etc/apt/sources.list
===
# my local apt source area
deb file:///home/USER/apt/ ./
===

> Therefore, apt cannot deal with a cdrom with a flat directory full of
> debs.

  It can.  If you have Packages.gz files in each cdrom, then skip the
scanpackages step above, add two entries to your sources.list:
===
deb file:///cdrom ./
deb file:///cdrom2 ./
===

    TTFN,
      Mike

ps:

  If you find the steps above work for you, I would recommend filing a
bug report against apt-zip, to add these steps to that package's
documentaiton.

-- 
GPG key: http://simons-clan.com/~msimons/gpg/msimons.asc
Fingerprint: 524D A726 77CB 62C9 4D56  8109 E10C 249F B7FA ACBE

Attachment: pgpQowyNNGnOF.pgp
Description: PGP signature


Reply to: