-6

I had typed sudo apt-get update and got this message.

W: Failed to fetch cdrom://Ubuntu 14.04.2 LTS _Trusty Tahr_ - Release amd64 (20150218.1)/dists/trusty/main/binary-amd64/Packages  Please use apt-cdrom to make this CD-ROM recognized by APT. apt-get update cannot be used to add new CD-ROMs

E: Some index files failed to download. They have been ignored, or old ones used instead.
dr_
  • 817

2 Answers2

2

The error message is quite self-explanatory. If you want to use the current CD-ROM as a source for updates you need to add it explicitly; for this, type

sudo apt-cdrom add

If you don't want to use CD-ROMs for updates, either remove by hand any reference to the CD-ROM from the APT sources (files /etc/apt/sources.list and /etc/apt/sources.list.d/*.list), or do that from the GUI by following Mostafa's suggestion:

Go to system settings > software & update and uncheck CDROM as a source for update.

dr_
  • 817
  • I tried to 'uncheck CDROM as a source for update.' . But surprisingly this is showing 'failure of internet connection' with this message. W:Failed to fetch http://dl.google.com/linux/chrome/deb/dists/stable/Release Unable to find expected entry 'main/binary-i386/Packages' in Release file (Wrong sources.list entry or malformed file) , E:Some index files failed to download. They have been ignored, or old ones used instead. – Sanskriti Mar 05 '16 at 17:53
  • If all other packages are updated fine, your sources.list references an incorrect repo for Google Chrome. Follow the instructions here: http://askubuntu.com/questions/510056/how-to-install-google-chrome – dr_ Mar 07 '16 at 08:31
  • I don't even use Google Chrome. I access net through Mozilla Firefox. – Sanskriti Mar 08 '16 at 19:50
  • You can just remove the reference to that repo then. – dr_ Mar 09 '16 at 12:31
  • How can I do that ? – Sanskriti Mar 10 '16 at 16:43
  • Delete the lines referring to Chrome from files /etc/apt/sources.list and /etc/apt/sources.list.d/*.list. Then do sudo apt-get update. – dr_ Mar 10 '16 at 16:48
0

Go to system settings > software & update and uncheck CDROM as a source for update.