Re: apt-get and broken CD layouts

1999-03-02 Thread Leszek Gerwatowski
On Mon, Mar 01, 1999 at 04:16:10PM +, Marc Haber wrote:
 Hi!
 
 When I was new to debian, I made a hamm CD that is severely broken in
 its directory structure.
 
 # ls /mnt/cdrom
 binary-i386 disks-i386 upgrade-i386
 
 # ls /mnt/cdrom/binary-i386
 Packages. Packages.gz devel hamradio net tex doc ...
 
 So, binary-i386 is complete.
 
 My /etc/apt/sources.list says
 deb file:/mnt/cdrom/binary-i386/ /
 
 apt-get update works, but (for example) apt-get install joe tries to
 install from
 /mnt/cdrom/binary-i386/dists/stable/main/binary-i386/editors/joe_2.8-10.deb
 which clearly does not exist.
 
 Which line do I need in sources.list for my broken cd?
 

First create /mnt/main and then mount there CD. And in mnt create links
dists, stable and frozen pointing to main. In /etc/apt/sources.list put this:

deb file://localhost/mnt stable main

This way everything should work as expected.

-- 
o--o  ___
|Leszek Gerwatowski|_/_|_\
o--o   (o\__/o)=)
The day Micro$oft makes something that doesn't suck
 is probably the day they start making vacuum cleaners


Re: apt-get and broken CD layouts

1999-03-02 Thread Marc Haber
On Tue, 2 Mar 1999 09:22:43 +0100, you wrote:
First create /mnt/main and then mount there CD. And in mnt create links
dists, stable and frozen pointing to main. In /etc/apt/sources.list put this:

deb file://localhost/mnt stable main

This way everything should work as expected.

This way, I'd basically create a directory tree that does look like a
non-broken CD. I see, this might be the only way to get apt-get to
work on that CD. Thanks for your comments.

Greetings
Marc

-- 
-- !! No courtesy copies, please !! -
Marc Haber  |Questions are the | Mailadresse im Header
Karlsruhe, Germany  | Beginning of Wisdom  | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG Rightful Heir | Fax: *49 721 966 31 29


Re: apt-get and broken CD layouts

1999-03-02 Thread Leszek Gerwatowski
On Tue, Mar 02, 1999 at 10:49:22AM +, Marc Haber wrote:
 On Tue, 2 Mar 1999 09:22:43 +0100, you wrote:
 First create /mnt/main and then mount there CD. And in mnt create links
 dists, stable and frozen pointing to main. In /etc/apt/sources.list put this:
 
 deb file://localhost/mnt stable main
 
 This way everything should work as expected.
 
 This way, I'd basically create a directory tree that does look like a
 non-broken CD.

Yes, it was my intention. :-) Small errata: links dists, stable and frozen
should point to actual directory (/mnt) not to main! Simply dists---. ,
stable---. , frozen---. And apt looks into /mnt/dists/stable/main and it
will look in fact into /mnt/main as it should in your case. Link frozen
is sometimes needed by apt-get so you should also create it.

 I see, this might be the only way to get apt-get to work on that CD.

I think so. I've used it to get apt-get to work with my strange slink
mirror.

-- 
o--o  ___
|Leszek Gerwatowski|_/_|_\
o--o   (o\__/o)=)
The day Micro$oft makes something that doesn't suck
 is probably the day they start making vacuum cleaners


apt-get and broken CD layouts

1999-03-01 Thread Marc Haber
Hi!

When I was new to debian, I made a hamm CD that is severely broken in
its directory structure.

# ls /mnt/cdrom
binary-i386 disks-i386 upgrade-i386

# ls /mnt/cdrom/binary-i386
Packages. Packages.gz devel hamradio net tex doc ...

So, binary-i386 is complete.

My /etc/apt/sources.list says
deb file:/mnt/cdrom/binary-i386/ /

apt-get update works, but (for example) apt-get install joe tries to
install from
/mnt/cdrom/binary-i386/dists/stable/main/binary-i386/editors/joe_2.8-10.deb
which clearly does not exist.

Which line do I need in sources.list for my broken cd?

Any hints will be appreciated.

Greetings
Marc

-- 
-- !! No courtesy copies, please !! -
Marc Haber  |Questions are the | Mailadresse im Header
Karlsruhe, Germany  | Beginning of Wisdom  | Fon: *49 721 966 32 15
Nordisch by Nature  | Lt. Worf, TNG Rightful Heir | Fax: *49 721 966 31 29


Re: apt-get and broken CD layouts

1999-03-01 Thread Jason Gunthorpe

On Mon, 1 Mar 1999, Marc Haber wrote:

 apt-get update works, but (for example) apt-get install joe tries to
 install from
 /mnt/cdrom/binary-i386/dists/stable/main/binary-i386/editors/joe_2.8-10.deb
 which clearly does not exist.
 
 Which line do I need in sources.list for my broken cd?
 
 Any hints will be appreciated.

You can try the experimental APt v3, it will need the slink base libraries
to run but it is able to deal with these sort of cds. Run 

apt-cdrom add

Make sure that your cdrom is mountable on /cdrom/ and that it is
unmounted : It will add a new entry to your sources.list and magically
fix the package files. (hopefully)

You can grab it from http://www.debian.org/~jgg, the one with the date as
the version number.

Jason