ubuntu 16.04 apt-get error: in the drive /media/cdrom and press

Posted 嗡嘛呢巴美吽舍

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ubuntu 16.04 apt-get error: in the drive /media/cdrom and press相关的知识,希望对你有一定的参考价值。

If you have an internet connection, you can safely comment out the line starting with deb cdrom: .... in the file /etc/apt/sources.list. You can edit this file with the command:

sudo gedit /etc/apt/sources.list

and simply prepend this line with the #-sign so that it looks something like this:

# deb cdrom:[Ubuntu 12.10 _Quantal Quetzal_ - Release amd64 (20121017.5)]/ quantal main restricted

Save the file and don‘t forget to run

sudo apt-get update



from: http://askubuntu.com/questions/236288/apt-get-asks-me-to-insert-cd-why

以上是关于ubuntu 16.04 apt-get error: in the drive /media/cdrom and press的主要内容,如果未能解决你的问题,请参考以下文章

Restore Apt-get In Ubuntu16.04

我在 Ubuntu 16.04 上运行 apt-get update 时无法解决“代理”错误

ubuntu 16.04 apt-get update 出错解决办法

How To Install Java with Apt-Get on Ubuntu 16.04

Ubuntu-16.04下Docker通过阿里云镜像安装(apt-get)

ubuntu 16.04 apt-get 更新使用清华镜像源