Advanced Packaging Tool forces the usage of CD-ROM sources and quits…. help!

When I started using a headless Debian, my only weapon to install the needed packages was ‘apt’. But I was hit on the head, when it was forcing me to install sources from CD-ROM, instead of looking for sources from the internet. Picture this scenario:

vinay@darkbox:~$ sudo apt-get install blah-app

………………

After printing some packages that need to be updated

…………..

………

[b]Media change: please insert the disc labeled
‘xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx)’
in the drive ‘/cdrom/’ and press enter
<enter>
Media change: please insert the disc labeled
‘xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx)’
in the drive ‘/cdrom/’ and press enter

** The xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx) can be anything depending on your distro.

A solution for this is to comment out the source list that points to the CD-ROM on the apt sources. So I did this:

vi /etc/apt/sources.list and comment the line that reads something similar to this:

deb cdrom:[ xxxxxxxxxxxx_xxxxxxxxxx_ -xxxxxxxxx(xxxxxxxx) ]/ hoary main restricted

This will restrict the apt tool from looking back to CD-ROM for the sources and quit. There may be some other approaches for this problem. It would be helpful if anyone who reads this thread discuss those approaches here.

Good Luck!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: