[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

apt-get and apt-cdrom



Hello,

I have a problem with apt-get. (Sorry for overlong lines in the
following.)

My /etc/apt/sources.list is set up with apt-cdrom, and that part
worked correctly:

| [...]
| Writing new source list
| Source List entries for this Disc are:
| deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990325/" debian/dists/frozen/contrib/binary-i386/
| deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990325/" debian/dists/frozen/main/binary-i386/
| deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990325/" debian/dists/frozen/non-US/binary-i386/
| deb "cdrom:Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990325/" debian/dists/frozen/non-free/binary-i386/

But now, when doing an apt-get install <package>, I´m getting

| Media Change: Please insert the disc labeled 'Debian GNU_Linux slink
| (2.1) 2_4 main binary-i386 section 2, contrib SAM19990325' in the
| drive '/cdrom/' and press enter

I´m inserting the disc (or rather have it already in the drive, the
same CD for which I just did apt-cdrom), but this message won´t go away.

The last output of an strace -f apt-get install <package> is, after a
lot of umounting /cdrom, open´ing and stat´ing /etc/mtab, the following:

| [pid  4908] write(4, "/dev/hdc2 /suse ext2 rw 0 0\n", 28) = 28
| [pid  4908] fstat(4, {st_mode=S_IFREG|0644, st_size=223, ...}) = 0
| [pid  4908] write(4, "/dev/hdc6 /suse/usr ext2 rw 0 0\n"..., 32) = 32
| [pid  4908] fstat(4, {st_mode=S_IFREG|0644, st_size=255, ...}) = 0
| [pid  4908] write(4, "/dev/hdc7 /suse/oldopt ext2 rw 0"..., 35) = 35
| [pid  4908] fstat(4, {st_mode=S_IFREG|0644, st_size=290, ...}) = 0
| [pid  4908] read(3, "", 4096)           = 0
| [pid  4908] close(3)                    = 0
| [pid  4908] munmap(0x4000c000, 4096)    = 0
| [pid  4908] fchmod(4, 0644)             = 0
| [pid  4908] write(4, "/dev/hdc8 /dosi ntfs ro,noexec,n"..., 48) = 48
| [pid  4908] close(4)                    = 0
| [pid  4908] munmap(0x4000d000, 4096)    = 0
| [pid  4908] rename("/etc/mtab.tmp", "/etc/mtab") = 0
| [pid  4908] unlink("/etc/mtab~")        = 0
| [pid  4908] write(2, "umount: /cdrom/: not mounted\n", 29) = 29
| [pid  4908] _exit(1)                    = ?
| [pid  4907] <... wait4 resumed> [WIFEXITED(s) && WEXITSTATUS(s) == 1], 0, NULL) = 4908
| [pid  4907] --- SIGCHLD (Child exited) ---
| [pid  4907] write(1, "403 Media Failure\nMedia: Debian"..., 122) = 122
| [pid  4905] <... select resumed> )      = 1 (in [19], left {0, 400000})
| [pid  4905] read(19, "403 Media Failure\nMedia: Debian"..., 4000) = 122
| Media Change: Please insert the disc labeled 'Debian GNU_Linux slink (2.1) 2_4 main binary-i386 section 2, contrib SAM19990325' in the drive '/cdrom/' and press enter
| ) = 169
| [pid  4905] read(0,  <unfinished ...>
| [pid  4907] select(1, [0], NULL, NULL, NULL <unfinished ...>


My fstab has the following line: 
| /dev/hdd        /cdrom        iso9660 ro,noauto,user            0      0


Now I´m defeated ;-) I have tried this with and without automount,
mounting /cdrom before (which doesn´t help, since apt-get clearly
unmounts /cdrom first), not mounting it before. The manpages give me
no clue either. This is apt 0.3.0 for i386.

TIA for any hints,
  Colin

-- 
Colin Marquardt <colin.marquardt@gmx.de>


Reply to: