系统教程
您现在的位置是:首页>服务器系统>Linux系统内容

Debian取消从光盘安装软件(please insert the disc labeled)

时间:2018-05-11 出处:未知复制分享人气(次) 【

与Ubuntu不同,使用apt-get install packages时Debian可能会提示:
Media change: please insert the disc labeled
'Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 DVD Binary-1 20160917-14:25' in the drive '/media/cdrom/' and press enter
 
也就是要求插入Debian光盘来离线安装软件包。有点古老的方式,还是通过网络安装要方便得多。通过修改source.list文件可以修改安装方式:
vim /etc/apt/source.list
 
#
# deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 DVD Binary-1 20160917-14:25]/ jessie contrib main
deb cdrom:[Debian GNU/Linux 8.6.0 _Jessie_ - Official amd64 DVD Binary-1 20160917-14:25]/ jessie contrib main
deb http://debian.ustc.edu.cn/debian/ jessie main
deb-src http://debian.ustc.edu.cn/debian/ jessie main
deb http://security.debian.org/ jessie/updates main contrib
deb-src http://security.debian.org/ jessie/updates main contrib
# jessie-updates, previously known as 'volatile'
deb http://debian.ustc.edu.cn/debian/ jessie-updates main contrib
deb-src http://debian.ustc.edu.cn/debian/ jessie-updates main contrib
 
这是默认的Debian的source list。可以看到,默认是先通过deb cdrom:...安装软件的。所以在前面加一个#把这行注释掉,再通过apt-get安装软件的时候,就会通过网络源来安装软件了。
    最新资讯
    热门内容
    小米移动电源能为iPad mini充几次电