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

  • 相关阅读:
    人脸识别算法初次了解
    Linux守护进程的编程实现
    Groovy新手教程
    Matlab画图-非常具体,非常全面
    拓扑排序
    Ubuntu下很给力的下载工具
    NYOJ-289 苹果
    使用PHPExcel导入导出excel格式文件
    Visual Studio 2010 中的 Web 开发
    mysql 加入�列,改动列,删除列。
  • 原文地址:https://www.cnblogs.com/yaos/p/14014405.html
Copyright © 2011-2022 走看看