problems with apt-cdrom add command
Hello. I recently upgraded to Squeeze from Lenny. I had some problems along the way, though, so it's not a full upgrade. However, I am now running Squeeze.
I have dial-up, so I'm trying to use the eight Squeeze dvds. I was able to add them with "apt-cdrom add" in Lenny, but with Squeeze the dvd-drive was not being read (/dev/hdc became /dev/cdrom1, or /dev/sr0). In the release notes it said that it had to be mounted at /cdrom rather than /media/cdrom0 (see here). I have this (using /dev/sr0) in my /etc/fstab file. However, I get the following result: Code:
debian:/home/mark# apt-cdrom add I have gotten it to add the first dvd (of the eight) but not the rest. This was after numerous attempts, and I'm not exactly sure how this happened. However, it locked the dvd in the drive, requiring me to type "eject cdrom" to get it out (something which it does all the time). And "apt-cdrom add" won't work with the rest of the eight dvds. It is in /etc/fstab: Code:
debian:/home/mark# mount /cdrom |
Code:
W: Failed to mount '/dev/sr0' to '/media/apt/' Code:
/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0 |
Hi. Thanks for your response. So, here's the /etc/fstab file:
Code:
#/dev/cdrom1 /media/cdrom0 udf,iso9660 user,noauto 0 0 Code:
debian:/home/mark# apt-cdrom add |
So, how did you solve it? It is marked "SOLVED"... or did someone mark it erroneously?
|
Yeah. I initially could not get "apt-cdrom add" to read the disc. However, after changing my sources.list to just http, and then finishing the dist-upgrade, I was able to get apt-cdrom to read the Debian DVD's files, and add the DVD to the sources. So, the issue I wrote about was solved. However, other issues have since come up, such as only being able to install one package from the DVD sources (see bug 606930).
I don't think Squeeze works well with using the Debian DVDs as a source. I think the only solution for using Debian DVDs as your sources with Squeeze is to file a bug report and wait (though perhaps they work from a fresh install -- mine was an upgrade from Lenny.) I did discover though that simply having /etc/fstab read "/dev/sr0 /media/cdrom0 udf,iso9660 user,noauto 0 0" for the cdrom, and not simultaneously having the line that the release notes for Squeeze suggested (that being "/dev/sr0 /cdrom/ auto defaults,noauto,ro 0 0") did solve the issue I initially posted about. So, that problem is solved. |
Quote:
Acquire::cdrom::mount "/media/apt/"; to /etc/apt/apt.conf when I realized it did mount it to /media/apt, but had /media/cdrom (or cdrom0) for the Acquire:: option (and /media/apt as Dir::Media::MountPath. Not sure what went how and why here, but it did solve it. I *suspect* it used /media/apt as the mount point (as shown by the CD actually being mounted there) but used the /media/cdrom path to try to access it (as seen from the File not found messages) |
All times are GMT -5. The time now is 03:07 PM. |