zoukankan      html  css  js  c++  java
  • Debian取消从光盘安装软件的方式(please insert the disc labeled)

    与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安装软件的时候,就会通过网络源来安装软件了。

  • 相关阅读:
    可汗学院公开课:统计学
    libsvm 之 easy.py(流程化脚本)注释
    机器学习概览
    学习资源
    libsvm-3.21使用文档
    Machine Learning
    Machine Learning
    MySQL 5.7半同步复制after sync和after commit详解【转】
    网站架构设计【转】
    httpd功能配置之虚拟主机【转】
  • 原文地址:https://www.cnblogs.com/yaos/p/6941144.html
Copyright © 2011-2022 走看看