Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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 want to install the C++ library, but the terminal keeps asking me to insert the CD for installation. What CD?

Here is the terminal code I used to attempt to install with:

sudo apt-get install build-essential

After I enter in my password and hit y, it says: Media change

Why does it say that? Can anyone help me either with this problem or find another way to install the C++ Library? Thanks.

share|improve this question
Which version of Ubuntu do you have? 12.04? 12.10? 13.04? – Thomas Ward May 2 '13 at 22:28

It looks like this is because you've used CDs/DVDs to install your system from instead of online repositories and when you try to use the package manager it's just simply referring to those CDs.

You might want to add Ubuntu repositories in /etc/apt/sources.list or /etc/apt/sources.list.d

Default contents of /etc/apt/sources.list contents for Ubuntu Precise installed using netboot images is listed below:

deb precise main restricted
deb-src precise main restricted

deb precise-updates main restricted
deb-src precise-updates main restricted

deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe

deb precise multiverse
deb-src precise multiverse
deb precise-updates multiverse
deb-src precise-updates multiverse

deb precise-backports main restricted universe multiverse
deb-src precise-backports main restricted universe multiverse

deb precise-security main restricted
deb-src precise-security main restricted
deb precise-security universe
deb-src precise-security universe
deb precise-security multiverse
deb-src precise-security multiverse

Then run apt-get update and install the buil-essential package as you tried doing it earlier.

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.