Getting around the “Media change: please insert the disk labeled..” message in Ubuntu
By marc • May 17th, 2008 • Category: Ubuntu
So, sometimes when you try to run “apt-get install” on Ubuntu, you may get the following message:
-
-
Media change: please insert the disc labeled
-
'Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)'
-
in the drive '/cdrom/' and press enter
Of course this isn’t a real big problem when you are sitting right next to the computer. However, if it happens to you when your server is located in a data center 10 miles away, you probably don’t want to drive down there to insert a CD rom and head right back home.
Luckily the solution is very easy. You just need to edit your /etc/apt/sources.list configuration file and comment out the line that starts with “deb cdrom”. This prevents it from first trying to find the sources on your cd rom. Phew! no need to waste gas!