Bug#380354: apt-get waiting for cdrom stops script
Package: apt
Version: 0.6.43
I have a dialup connection only, so I am using a script to download updates and
new packages with the computer unattended. In my script I use a line like:
sudo apt-get --force-yes -y --ignore-missing -d install vmware-player
to download only vmware player and it's dependencies to my local cache.
For vmware-player, the dependencies are libssl0.9.7,
vmware-player-kernel-modules-2.6.15-23,
vmware-player-kernel-modules. But, I already have a CD with libssl0.9.7 on it.
The script stops when it looks for libssl0.9.7 with the following question:
Media change: please insert the disc labeled
'Ubuntu 6.06 CD3'
in the drive '/cdrom/' and press enter
At this point, the script hangs and progresses no further. Thus my effort at
unattended downloading fails.
Is there a way to skip this question and continue on in the script?
For example, could you change the code for the "-d" option, so it will
suppress asking for a cdrom during the download?
Reply to: