LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   "apt-cdrom add" does nothing (https://www.linuxquestions.org/questions/debian-26/apt-cdrom-add-does-nothing-4175539780/)

Wocky 04-15-2015 07:52 AM

"apt-cdrom add" does nothing
 
This machine has DVD-RW drives to spare, and 10 of them have the complete wheezy set (one in each, of course.) The relevant entries in /etc/fstab is:
Code:

# grep cdrom /etc/fstab
/dev/sr3        /mnt/cdrom3    udf,iso9660 user,noauto,ro    0      0
/dev/sr4        /mnt/cdrom4    udf,iso9660 user,noauto,ro    0      0
/dev/sr5        /mnt/cdrom5    udf,iso9660 user,noauto,ro    0      0
/dev/sr6        /mnt/cdrom6    udf,iso9660 user,noauto,ro    0      0
/dev/sr7        /mnt/cdrom7    udf,iso9660 user,noauto,ro    0      0
/dev/sr8        /mnt/cdrom8    udf,iso9660 user,noauto,ro    0      0
/dev/sr9        /mnt/cdrom9    udf,iso9660 user,noauto,ro    0      0
/dev/sr10      /mnt/cdrom10    udf,iso9660 user,noauto,ro    0      0
/dev/sr11      /mnt/cdrom11    udf,iso9660 user,noauto,ro    0      0
/dev/sr12      /mnt/cdrom12    udf,iso9660 user,noauto,ro    0      0
#

I can manually mount the disks with mount, as normal:
Code:

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdi1      197G  47G  141G  26% /
# mount /mnt/cdrom3
# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdi1      197G  47G  141G  26% /
/dev/sr3        3.7G  3.7G    0 100% /mnt/cdrom3
# ls -al /mnt/cdrom3
total 1298
dr-xr-xr-x  1 root root  4096 Apr 26  2014 ./
drwxr-xr-x 59 root root  4096 Jun 28  2014 ../
dr-xr-xr-x  1 root root  2048 Apr 26  2014 .disk/
-r--r--r--  1 root root  9264 Apr 26  2014 README.html
-r--r--r--  1 root root 176551 Apr 11  2014 README.mirrors.html
-r--r--r--  1 root root  87800 Apr 11  2014 README.mirrors.txt
-r--r--r--  1 root root    425 Apr 26  2014 README.source
-r--r--r--  1 root root  5829 Apr 26  2014 README.txt
-r--r--r--  1 root root    27 Apr 26  2014 autorun.inf
dr-xr-xr-x  1 root root  2048 Apr 26  2014 boot/
dr-xr-xr-x  1 root root  2048 Apr 26  2014 css/
lr-xr-xr-x  1 root root      1 Apr 26  2014 debian -> ./
dr-xr-xr-x  1 root root  2048 Apr 26  2014 dists/
dr-xr-xr-x  1 root root  4096 Apr 26  2014 doc/
dr-xr-xr-x  1 root root  2048 Apr 26  2014 efi/
dr-xr-xr-x  1 root root  2048 Apr 26  2014 firmware/
-r--r--r--  1 root root 159629 Apr 24  2014 g2ldr
-r--r--r--  1 root root  8192 Apr 24  2014 g2ldr.mbr
dr-xr-xr-x  1 root root  2048 Apr 26  2014 install/
dr-xr-xr-x  1 root root  2048 Apr 26  2014 install.amd/
dr-xr-xr-x  1 root root  4096 Apr 26  2014 isolinux/
-r--r--r--  1 root root 473031 Apr 26  2014 md5sum.txt
dr-xr-xr-x  1 root root  2048 Apr 26  2014 pics/
dr-xr-xr-x  1 root root  2048 Apr 26  2014 pool/
-r--r--r--  1 root root 366350 Apr 24  2014 setup.exe
dr-xr-xr-x  1 root root  2048 Apr 26  2014 tools/
-r--r--r--  1 root root    256 Apr 26  2014 win32-loader.ini
#head -2 /mnt/cdrom3/README.txt
        Debian GNU/Linux 7.5.0 "Wheezy" - Official amd64 DVD Binary-1
                              20140426-13:37
#

The same is true for the other 9 disks, of course (different contents, though.) With my /etc/apt/sources.list empty (actually, changing what's in /etc/apt/sources.list makes no difference whatsoever), the apt-cdrom ident command gives:
Code:

# apt-cdrom ident -d /mnt/cdrom3
Using CD-ROM mount point /mnt/cdrom3/
Mounting CD-ROM
Identifying.. [6d73808cb688810c8ef5c8c235d13cba-2]
Stored label:
Unmounting CD-ROM...
#

with similar results for the other 9 disks. When I try to add the disks to the apt system, though, nothing happens:
Code:

# apt-cdrom add -d /mnt/cdrom3
Repeat this process for the rest of the CDs in your set.
#

but the disk isn't added. The command takes a fraction of a second to run (0.024s, according to time(1)), and the drive is not accessed at all. I've tried all the options available to apt-cdrom, separately and multiply, without any useful results. There's absolutely no indication of what's wrong. I've tried adding the disk IDs to /etc/apt/sources.list manually:
Code:

# cat /etc/apt/sources.list
deb cdrom:[Debian GNU/Linux 7.5.0 _Wheezy_ - Official amd64 DVD Binary-1 20140426-13:37]/ wheezy contrib main
#

but it makes no difference. I've tried adding Acquire::cdrom::mount "/mnt/cdrom3/"; to /etc/apt/apt.conf, but it makes no difference.
Code:

# cat /etc/apt/apt.conf
Acquire::cdrom::mount "/mnt/cdrom3/";
#

What the hell's going on? I'm beginning to think the whole apt system is irreparably brain-damaged, although it may be my brain that's damaged.

Am I missing something obvious? Is it a bug in apt-cdrom?

Head_on_a_Stick 04-15-2015 08:18 AM

The man page does say:
Quote:

each disc in a multi-CD set must be inserted and scanned separately to account for possible mis-burns
So maybe you should try it with just one drive at a time.

I've never used `apt-cdrom` so I can't really offer any more.

Wocky 04-15-2015 08:29 AM

I just tried that. It made absolutely no difference. Thanks, though.


All times are GMT -5. The time now is 02:04 PM.