Installing from DVD on /mount/cdrom1

I installed Sarge off 1 cd; for the rest, I have the two DVD set. And a DVD drive on cdrom1.

I used the following command to update the sources.list file: apt-cdrom add -d /media/cdrom1/, which seemed to work like a charm.

However, an apt-get install [program] command leads to a prompt asking me to insert the Binary-1 disc in '/cdrom/' I could do an ugly fix, but there must be a better solution. I can mount the DVD, and apt-cdrom seems to have no problem reading the DVDs; unfortunately there is no equivalent "-d" option for apt-get.

I used apt-setup; it claimed to create symbolic links, but the result is the same: apt-get is fixated on /cdrom/.

I looked for examples of changes to apt.conf or some other apt config file, but none of my ham-handed attempts worked.
(P.S. I couldn't actually find the apt.conf file, only a directory called apt.conf.d, so I created an apt.conf file; however, I found no clear examples of the syntax needed to fix my problem).

Thanks.

pin

0

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

apt.conf

Yes, this file does not exist by default. There is some documentation - try: 'info apt.conf' to start with - I can't remember if the docs are in a separate doc package, but I don't think they are. Also, when the 'apt' system was installed, somewhere in the /usr/share/doc directory an example apt.conf file would have been installed - it's a rather large file and lists a huge number of possible configurations as examples. That file is actually absolutely useless as an apt.conf file but it shows you how to use the numerous options available - you just have to imitate and modify the sections which you actually need.

apt.conf

Thanks for the tip, pinniped.

Do you figure that everything else I did was probably right?

pin

Solution

The following line in the Acquire section of the apt.conf file worked for me (verbatim):

"cdrom"::Mount "/media/cdrom1/";

Thanks again, pinniped

Syndicate content