Thursday, May 9, 2013

Ubuntu: Media change: please insert the disc labelled


 Media change: please insert the disc labelled
 'Ubuntu-Server 12.04.2 LTS _Precise Pangolin_ - Release amd64 (20130214)'
in the drive '/media/cdrom/' and press enter


sometimes when you try to run “apt-get install” on Ubuntu, you may get the following message:
  1.  
  2. Media change: please insert the disc labeled
  3.  'Ubuntu-Server 7.10 _Gutsy Gibbon_ – Release i386 (20071016)'
  4. 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. 

No comments:

Post a Comment