How to Make 'apt-get install' Stop Requiring Your Ubuntu DVD

Album Cover: The Future

"The maestro says it's Mozart, but it sounds like bubble gum."
Leonard Cohen / Waiting For The Miracle

Posted on November 03, 2007 1:55 PM in Computers
Warning: This blog entry was written two or more years ago. Therefore, it may contain broken links, out-dated or misleading content, or information that is just plain wrong. Please read on with caution.

Now that I'm playing around with Ubuntu, I'm starting to install more applications that didn't come with the default install of the OS. The app of the moment happens to be GParted, because I'm trying to add an additional 80GB hard drive to C3PO.

When I've attempted to use apt-get install to install the applications I need, I keep getting prompted for my original Ubuntu installation DVD. At first I didn't think it was that big a deal, but now it's become a bit of an annoyance. When I tried to install GParted, for example, I got this message:

Media change: please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071017)'
in the drive '/cdrom/' and press enter

So I did a little digging and found this helpful thread in the Ubuntu Forums. After reading that, I opened up my sources file:

sudo vi /etc/apt/sources.list

I commented out the very first line, which started with:

deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071017)]/

...by simply adding a # in front of the line. I saved the file and then ran the following to update the sources:

sudo apt-get update

That updated my sources without the need for the DVD, and then the next time I ran sudo apt-get install gparted, the DVD dependency had vanished.

Pretty simple, and no more annoyance!

Comments

Laz on November 15, 2007 at 3:40 PM:

Thanks. It was very helpful to me!!!!
Thx again

Permalink

Mike on December 02, 2007 at 2:45 PM:

Thanks! This is genius! I can't find this on any other website!

Permalink

Ninboy on December 04, 2007 at 8:07 PM:

You can open: System > Administration > Software Sources and then unselect in the bottom "Cdrom with Ubuntu"...

That's all and easier, jejeje

Permalink

Soli on April 06, 2008 at 9:55 AM:

Very useful, Thanks!

Permalink

Codeminer8 on October 19, 2011 at 10:55 PM:

Thanks! Very useful and informative! You saved me a lot of time!
;)

Permalink

Nicolas on November 03, 2011 at 10:14 AM:

I am having problems with your site images in IE

http://articlesathiphil.net/index.php?page=article&article_id=178228

Permalink

Help With My Engineering Assignment on September 16, 2018 at 11:12 PM:

Thanx for sharing such useful post keep it up :)

Permalink

Post Comments

If you feel like commenting on the above item, use the form below. Your email address will be used for personal contact reasons only, and will not be shown on this website.

Name:

Email Address:

Website:

Comments:

Check this box if you hate spam.