Media change: please insert the disc labeled 解决方法
2016-05-29 00:33
351 查看
转自:http://www.bernzilla.com/item.php?id=959 How to Make 'apt-get install' Stop Requiring Your Ubuntu
DVD
Now that I'm playing
around with Ubuntu, I'm starting to install more applications that didn't come with the default install of the OS.
The app of the moment happens to be GParted,
because I'm trying to add an additional 80GB hard drive to C3PO.
When I've attempted to use
DVD. At first I didn't think it was that big a deal, but now it's become a bit of an annoyance. When I tried to install GParted, for
example, I got this message:
Media change: please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071017)'
in the drive '/cdrom/' and press enter
So I did a little digging and found this helpful thread
in the Ubuntu Forums. After reading that, I opened up my sources file:
sudo vi /etc/apt/sources.list
I commented out the very first line, which started with:
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071017)]/
...by simply adding a # in front of the line. I saved the file and then ran the following to update the sources:
sudo apt-get update
That updated my sources without the need for the DVD, and then the next time I ran
Pretty simple, and no more annoyance!
DVD
Now that I'm playing
around with Ubuntu, I'm starting to install more applications that didn't come with the default install of the OS.
The app of the moment happens to be GParted,
because I'm trying to add an additional 80GB hard drive to C3PO.
When I've attempted to use
apt-get installto install the applications I need, I keep getting prompted for my original Ubuntu installation
DVD. At first I didn't think it was that big a deal, but now it's become a bit of an annoyance. When I tried to install GParted, for
example, I got this message:
Media change: please insert the disc labeled
'Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071017)'
in the drive '/cdrom/' and press enter
So I did a little digging and found this helpful thread
in the Ubuntu Forums. After reading that, I opened up my sources file:
sudo vi /etc/apt/sources.list
I commented out the very first line, which started with:
deb cdrom:[Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071017)]/
...by simply adding a # in front of the line. I saved the file and then ran the following to update the sources:
sudo apt-get update
That updated my sources without the need for the DVD, and then the next time I ran
sudo apt-get install gparted, the DVD dependency had vanished.
Pretty simple, and no more annoyance!
相关文章推荐
- 动态规划-3024
- 【C#】C#高级语法
- centos安装tomcat设置开机启动
- Struts2-Struts2标签
- POJ 3026(BFS+最小生成树)
- 入门教程:.NET开源OpenID Connect 和OAuth解决方案IdentityServer v3 MVC认证与授权(四)
- 图的广度优先遍历
- 成长之路(一)
- 面试之一
- vim批量替换
- 【Matlab】数据降维工具箱drtoolbox
- 入门教程:Xamarin Android 开发 环境配置: SDK 在线更新镜像服务器资源 (一)
- 数据结构2.带控制信息的链表
- leetcode-Palindrome Number-9
- HDU 1021 Fibonacci Again
- C#当窗体大小改变时,窗体中的控件大小也随之改变
- Asp.Net网站的的编译与发布原理
- 专题三--1009
- android中的坐标偏移分析与问题解决
- NS1-基本知识