“media change: please insert the disc labeled” when trying to install Ruby on Rails [duplicate]
来源:互联网 发布:java后端转前端 编辑:程序博客网 时间:2024/06/14 07:53
This question already has an answer here:
- How can I avoid “please insert CD/DVD” error when updating Ubuntu?2 answers
When I type sudo apt-get install rails
I get the message:
media change: please insert the disc labeled'Ubuntu 12.04.3 LTS _Precise Pangolin_ - Release amd64 (20130820.1)in the drive '/media/cdrom/' and press enter
I am new to Linux and I have the installation CD in the drive, but I have no idea what disc it is asking for and I'm not sure what/media/cdrom/
means. All I have is the installation CD and it is in the only optical drive I have.
marked as duplicate by Anwar, Eric Carvalho, Braiam, belacqua,Richard May 11 '14 at 0:51
This question has been asked before and already has an answer. If those answers do not fully address your question, pleaseask a new question.
1 Answer
Just remove the cdrom entry from the sources.list file. This can be done easily:
sudo sed -i '/cdrom/d' /etc/apt/sources.list
This should take care of the problem. The message is because somehow you still have the cdrom entry in your sources.list file, you can check the content of the file using:
grep -v '#' /etc/apt/sources.list
This will show you all the repositories you have activated.
- “media change: please insert the disc labeled” when trying to install Ruby on Rails [duplicate]
- Media change: please insert the disc labeled
- Media change: please insert the disc labeled 解决方法
- apt-get提示:Media change: please insert the disc labeled
- 使用apt-get下载出错,Media change: please insert the disc labeled.
- Media change : please insert the disk labeled
- please insert the disc labeled ‘Ubuntu 7.10 _Gutsy Gibbon’” error
- Media change: lase insert the disc labled
- Media change: lase insert the disc labled
- vmware please insert disc 2 to continue
- install Ruby on Rails
- How to install Ruby on Rails in Ubuntu 11.10
- CentOS install Ruby On Rails
- install ruby on rails debian
- Install ruby on rails on CentOS
- 【Ruby on Rails】Install rjb on Ubuntu
- The Ruby On Rials Gudie - say hello to rails
- How to Install Ruby on Rails on Ubuntu 12.04 LTS (Precise Pangolin) with RVM
- Mac下部署tigase7.1.0说明
- Codeforces 438E The Child and Binary Tree
- java_switch语句详解
- Vue.js快速入门示例
- windows下QT如何通过ODBC连接达梦数据库
- “media change: please insert the disc labeled” when trying to install Ruby on Rails [duplicate]
- Mysql 每天自动弹出dos界面taskeng.exe的解决办法
- Node.js 安装配置
- Jackson框架,轻易转换JSON
- 【面试】小米公司嵌入式职位面试经验
- OO 设计模式交流群
- Solr的安装与配置-单机版
- 用Python 生成 不同语言的MAVLink 开发库
- 没标题
vi /etc/apt/sources.list
and add a # in the lines to be removed. – UnderverseMay 14 at 13:05