Say I have this line in "/etc/fstab":
/iso/apt.iso /mnt/apt iso9660 loop 0 0
And I run these commands as root:
mount --all
apt-cdrom add --no-mount --cdrom /mnt/apt
I expected the disk to be added as APT source, but nothing happens. What's missing?
UPDATE:
I followed this advice and now I'm getting this:
Using CD-ROM mount point /media/cdrom/
Identifying.. [61c5dd7c11a32dc999e655c235cd698e-2]
Scanning disc for index files..
Found 0 package indexes, 0 source indexes, 0 translation indexes and 0 signatures
W: Failed to mount '/dev/sr0' to '/media/cdrom/'
E: Unable to locate any package files, perhaps this is not a Debian Disc or the wrong architecture?
This happens with or without "/etc/apt/apt.conf" changes.
mount /mnt/apt
beforeapt-cdrom -m -d=/mnt/apt add
? – forcefsck Mar 16 '11 at 19:13mount --all
before theapt-cdrom
cmd. – tshepang Mar 17 '11 at 10:12