Failed to fetch cdrom:// – Debian apt-get error message , Packages failed to install- Solution

When using apt-get install/update in terminal, we all must have sometime or other faced the error of – Failed to fetch cdrom : …..

Also, may be :

E: Some index files failed to download. They have been ignored or old ones instead.

As in my case, it is,

Screenshot from 2016-11-07 02:31:23.pngIt generally happens when Ubuntu or Debian Linux are installed using CD-ROM media. Then this system will retain CD-ROM in its /etc/apt/sources.list file as a repository source. To avoid this error message :

Solution 1:

Re-insert your Ubuntu/Debian Linux installation media before running apt-get command .

Solution 2:

Remove/comment this CD-ROM repository source directly from /etc/apt/sources.list.


Screenshot from 2016-11-07 02:33:51.pngNote: Make sure use ‘su’ before editing the sources.list file, otherwise it won’t allow.


Screenshot from 2016-11-07 02:34:02.png

Now save it using Ctrl + X and Y.

Now run :

$ sudo apt-get update .

Screenshot from 2016-11-07 02:36:01.pngI just have installed the OS. Hence all the packages are updated.

Success. Cheers !






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s