apt-get install Error: Media Change: Please insert the disc

So when we see the error in Ubuntu / Debian, basically the installer is looking for the CD as its first source of binaries:

root@FS1:~# apt-get install git
Reading package lists... Done
Building dependency tree     
Reading state information... Done
The following extra packages will be installed:
Do you want to continue [Y/n]? y
Media change: please insert the disc labeled
 'Debian GNU/Linux 7.4.0 Wheezy - Official amd64 DVD Binary-1 20140208-13:47'
in the drive '/media/cdrom/' and press enter


We need to edit the /etc/apt/sources.list and comment out the line beginning with “deb cdrom …”
Using vi:

root@juned:~# vi /etc/apt/sources.list

Open the file in your favourite editor and put “#” char at the beginning of the line, then ESC, and “:wq” to save and then run.

root@juned:~# apt-get update

You're done ;)

No comments:

Post a Comment

Pages