分页: 1 / 1

debian无法用apt下载任何东西?

发表于 : 2016-07-28 12:28
hanis_ghost
刚在virtualbox里安装完了debian
终端里输入 apt-get install vim后
显示这个:
1.png
1.png (2.91 KiB) 查看 1249 次
怎么处理?谢谢

Re: debian无法用apt下载任何东西?

发表于 : 2016-07-28 12:31
vickycq
可能原因 软件源未设置好,deb-cdrom 条目未移除或未连接至互联网,或未添加互联网镜像源。

若不可连接至互联网,插入 DVD-1 并按回车。
若可以连接至互联网,按下文指示正确设置软件源后通过互联网安装。

软件源可如下设置(根据地理位置合理选择镜像源)

代码: 全选

deb http://mirrors.ustc.edu.cn/debian/ jessie main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ jessie main contrib non-free

deb http://mirrors.ustc.edu.cn/debian/ jessie-updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ jessie-updates main contrib non-free

deb http://mirrors.ustc.edu.cn/debian/ jessie-backports main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian/ jessie-backports main contrib non-free

deb http://mirrors.ustc.edu.cn/debian-security/ jessie/updates main contrib non-free
deb-src http://mirrors.ustc.edu.cn/debian-security/ jessie/updates main contrib non-free

问题已解决

发表于 : 2016-07-28 12:59
hanis_ghost
问题已解决
把/etc/apt/source.list里的 deb cdrom那一行删掉就行了。。 :Haha