36

Every time I try update (using sudo apt-get update) my Ubuntu I get this problem:

W: The repository 'cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1) xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
W: The repository 'ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu xenial Release' does not have a Release file.
N: Data from such a repository can't be authenticated and is therefore potentially dangerous to use.
N: See apt-secure(8) manpage for repository creation and user configuration details.
E: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/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: Failed to fetch cdrom://Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)/dists/xenial/main/binary-i386/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: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-amd64/Packages  404  Not Found
E: Failed to fetch ppa.launchpad.net/kirillshkrogalev/ffmpeg-next/ubuntu/dists/xenial/main/binary-i386/Packages  404  Not Found
E: Some index files failed to download. They have been ignored, or old ones used instead.

How can I fix it?
I use Ubuntu 16.04 LTS

3
35

To resolve this problem from terminal you must remove/comment this CD-ROM repository source directly from /etc/apt/sources.list

 sudo nano /etc/apt/sources.list

and comment or remove lines that include cdrom. eg:

deb cdrom:[Ubuntu-Server 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.3)]/ xenial main restricted
4
  • 3
    This should be the accepted answer. It works in desktop and server distros.
    – mau
    Apr 26 '17 at 18:23
  • Solved my problem! But can any one tell that will anything other than cdrom will be affected or not, which we are suggested to comment? (working inside a virtual-machine in VMware)
    – Malik Asif
    Nov 1 '17 at 11:10
  • 1
    It can`t affect anything other, only cd-rom as source for packages.
    – PRIHLOP
    Jan 5 '18 at 19:49
  • Trying to make it clear, I think it makes a difference. If you don't actually want to use the CD-ROM for an update (I don't even have one). this seems to be the answer for you or people like mau, Malik Asif and me. You might also want to consider this Q/A: askubuntu.com/q/42441/830570
    – Cadoiz
    Jun 11 at 1:01
26

Try this:
Open Software & Updates and in the Ubuntu Software tab uncheck Cdrom with Ubuntu 16.04 LTS 'Xenial Xerus' under the section Installable from CD-ROM/DVD.

5
  • worked for me. I am using 14.04. How did this get into the software sources in the first place? The only thing I can imagine is because I made a 16.04 USB stick with startup disk creator.
    – atmelino
    Jul 2 '16 at 17:45
  • the same reason for me
    – Alexey
    Oct 8 '16 at 6:26
  • Had this prob with PureOS, resolved via "Softare&Updates" like in your answer with these additions: In the tab "PureOS Software" where it says "Downloadable from the internet" check the box "Officially supported(main)", the tab "Other Software" uncheck the "cdrom"-box.
    – Ida
    Feb 10 '18 at 7:44
  • @atmelino: Yes, this happens after installing from USB-stick. Looks like there's a bug-report for this, but it has been closed: bugs.debian.org/cgi-bin/bugreport.cgi?bug=807996
    – Ida
    Feb 10 '18 at 7:50
  • PS: This is one line of the error I got and searched for: E: The repository 'cdrom://[Debian GNU/Linux none Green - Official Snapshot amd64 LIVE/INSTALL Binary 20180120-02:05] green Release' does not have a Release file.
    – Ida
    Feb 10 '18 at 7:52

Not the answer you're looking for? Browse other questions tagged or ask your own question.