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,
It 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 :
Re-insert your Ubuntu/Debian Linux installation media before running
apt-get command .
Remove/comment this CD-ROM repository source directly from
Note: Make sure use ‘su’ before editing the sources.list file, otherwise it won’t allow.
Now save it using Ctrl + X and Y.
Now run :
$ sudo apt-get update .
I just have installed the OS. Hence all the packages are updated.
Success. Cheers !