Don’t forget to subscribe to our RSS feed for more up to date tutorials/tips/tricks. Snippet is a short tip/trick or just a quick fix for a certain issue that we discover from time to time. When you are back to the Synaptic main screen, click the Reload button to update your system. Scroll down the list till you find the repository that you want to remove. In the menu, go to Settings -> Repositories. Open Synaptic Package Manager (System -> Administration -> Synaptic Package Manager) In such case, you might want to remove your repository via the Synaptic Package Manager. If you have used the command ‘ add-apt-repository’ to add repository to your system, you will not be able to find the line in your sources.list file. sudo mv /etc/apt/sources.list /etc/apt/ gksudo gedit /etc/apt/sources.list Copy/paste all the text from the newly generated sources.list to this file. Scroll down to the repository that you want to remove.ĭone! Removing repository from Synaptic Package Manager Replace the old sources.list with the new one Run the following commands in a Terminal. Open your sources.list file gksu gedit /etc/apt/sources.list If you have previously added the repository via the sources.list file, the best way to remove the repository is to remove the respective line from your sources.list file. Removing repository from the sources.list file If you have any questions or suggestions, feel free to drop a comment.Here’s how you can do it easily, in less than a minute: If you are facing any other update issue, do look at this article which is a collection of most common Ubuntu update error fixes. The error ‘apt-get update cannot be used to add new CD-ROMs’ should have been fixed. Once you have edited the sources.list, run the apt-get update once again. If you want to make it two, first you need to export SUDOEDITOR'gedit -w', then sudoedit /etc/apt/sources.list. To do that use the command below: sudo gedit /etc/apt/sources.list We need to comment out this line by adding # in front of it to make it look like this: #deb cdrom:/ trusty main restricted Look at the first line in the above list. ![]() The output for me was as following: deb cdrom:/ trusty main restrictedĭeb trusty main restricted universe multiverseĭeb-src trusty main restricted universe multiverseĭeb trusty-security main restricted universe multiverseĭeb-src trusty-security main restricted universe multiverseĭeb trusty-updates main restricted universe multiverseĭeb-src trusty-updates main restricted universe multiverse Why is it an issue Well, to be perfectly honest, most of the time it isnt. ![]() Open a terminal and use the following line to see what is included in sources list: cat /etc/apt/sources.list And reserve sudo for command-line applications, like so: sudo nano /etc/apt/sources.list. Now to fix our error, you can take the command line route. But this was not the case for me because the option of cdrom was already grayed out as I was using a live session. The method described above should have fixed this apt-get update cannot be used to add new CD-ROMs error. In the first tab Ubuntu Software, look for the cdrom if it’s checked, uncheck it.Ĭlose the Software Sources and run the update again. If the ISO or CD is plugged in, it could work, but it’s not how it should be used.Īnd to fix this issue, you need to remove this from the list of software sources. This means your system is trying to look for software updates from the ISO image or live CD of your Linux system. ![]() This error is because CD-ROM has been included as one of the sources here. Fixing "Failed to fetch cdrom apt-get update cannot be used to add new CD-ROMs" error In this post, I’ll show you how to fix this error. They have been ignored, or old ones used instead. apt-get update cannot be used to add new CD-ROMsĮ: Some index files failed to download. W: Failed to fetch cdrom://elementary OS 0.3 _Freya_ – Daily amd64 (20150208)/dists/trusty/restricted/binary-amd64/Packages Please use apt-cdrom to make this CD-ROM recognized by APT. The complete error looked like this after running the apt-get update command: apt-get update cannot be used to add new CD-ROMs. One of the less frequent and peculiar errors I encountered with elementary OS the other day.įailed to fetch cdrom Please use apt-cdrom to make this CD-ROM recognized by APT. If you use Ubuntu and Debian-based distros, you may encounter various update errors.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |