Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've just installed Debian 6.0.4 on VirtualBox, and I'm trying to install g++. So, into the terminal I typed:

aptitude install build-essential

But it's trying to get the package from disk:

Media Change: Please insert the disc labeled 'Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 CD Binary-1 20120128-12:53' in the drive '/media/cdrom/' and press [Enter].

Why isn't it just downloading it from Debian's repositories? Can I change this behavior?

share|improve this question
up vote 10 down vote accepted

Comment the line in /etc/apt/sources.list that points to CD, that is add a '#' character at the beginning of the line, so that it looks similar to:

# deb cdrom:[Debian GNU/Linux 6.0.4 _Squeeze_ - Official i386 CD Binary-1 20120128-12:53]/ squeeze main
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.