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

  • 相关阅读:
    GIS的核心价值——服务
    Arcgis Add-In开发入门实例
    Arcgis for Androd API开发系列教程(一)——地图显示与GPS定位
    Spring
    字体大小对照换算表
    属性和字段的区别
    sqlDataAdapter和SqlCommand的区别
    C# 连接SQL Server数据库的几种方式--server+data source等方式
    c# using的作用
    random
  • 原文地址:https://www.cnblogs.com/yaos/p/14014405.html
Copyright © 2011-2022 走看看