I was doing a dual boot install today for a customer who wanted to dual boot Windows 7 and Ubuntu linux. I installed the Unbuntu operating system fine but when I went to update the distro some thing was clearly wrong. Each time I tried to use the GUI package manager it would stall and lock up. This prompted me to try with the command line package manager apt-get since the GUI is just a front end for it. Normally command line tools give better error messages so I was hoping for some more detail. Below I show the error and the very simple fix.
The command apt-get update ran fine however when I tried to install the broadcom STA wireless drivers:
apt-get install bcmwl-kernel-source
I was presented with the following error:
Media Change: Please insert the disc labelled
‘Ubuntu 9.10__ Karmic Koala Release amd64 (20091028.5)’
in the drive ‘/cdrom/’ and press enter
This error happens because the cdrom is listed as a source in the sources file for apt-get package manager.
To fix this simply open the following file in a text editor:
/etc/apt/sources.list
And make sure the following line is commented out:
#deb cdrom:[Ubuntu 9.10 _Karmic Koala_ – Release amd64 (20091028.5)]/ karmic main restricted
Now issue the command:
apt-get update
This will update your source list and make the error message go away.
With some installations, you also have to manually add the debs, as well.
deb us.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
deb-src us.archive.ubuntu.com/ubuntu karmic main restricted universe multiverse
Hello Travis,
Thanks for expanding on what we have in the article!
Thanks.
alex
I am trying to edit the /etc/apt/sources.list file but it says that I do not have the permission to change the file and when i try to chnage the permissions it denies me this option. I really need help on being able to install certain software and this has become such a hassle. Any suggestions?
To answer my own question
Open the terminal
then type
gksu gedit /etc/apt/sources.list
Make your edits. Then save and close.
If you haven´t done so already, please read this page
https://help.ubuntu.com/community/Medibuntu
Hope this helps
Heres the link that I used to find this answer
https://answers.launchpad.net/ubuntu/+source/gedit/+question/56908
Thanks very much for posting this. Using 11.10, your post saved me ALLOT of time with this equivalent message. (I could no longer instal Kile after having removed all traces of KDE)
Media Change: Please insert the disc labelled ‘Ubuntu-Server 10.04.4 LTS Lucid Lynx – Release amd64 (20120214.2)’ in the drive ‘/media/cdrom/’ and press enter