zoukankan      html  css  js  c++  java
  • Ubuntu软件源更换

    在使用ubuntu系统的时候经常需要在线安装某些软件(apt-get install),然后由于国内一些原因,部分软件源无法使用,在此就需要更换软件源,具体做法如下:

    1、打开软件源配置文件/etc/apt/sources.list

    sudo gedit /etc/apt/sources.list 

    2、将文件里面的内容替换

    deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse  
    deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse  
    deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse  
    deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse  
    deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse  
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse  
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse  
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse  
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse  
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse  
    

    上面的内容表示使用阿里的软件源,同时也有一些163的软件源也挺常用,在此粘贴如下:

    deb http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse   
    deb-src http://mirrors.163.com/ubuntu/ precise main universe restricted multiverse   
    deb http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted   
    deb-src http://mirrors.163.com/ubuntu/ precise-security universe main multiverse restricted   
    deb http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted   
    deb http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted   
    deb-src http://mirrors.163.com/ubuntu/ precise-proposed universe main multiverse restricted   
    deb http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted   
    deb-src http://mirrors.163.com/ubuntu/ precise-backports universe main multiverse restricted   
    deb-src http://mirrors.163.com/ubuntu/ precise-updates universe main multiverse restricted  
    

     3、执行更新

    sudo apt-get update  
    

      

  • 相关阅读:
    GDAL并行IO的疑问
    memcpy一段内存到std::vector<double>
    解决mysql无法远程登陆问题
    .net 上传word 转为 html
    OnCheckedChanged的触发需要AutoPostBack="true"
    asp.net与word文档在线
    [转]mysql如何设置主键和外键,实现级联更新、级联删除
    asp.net 读取Word
    datalist 嵌套 datalist 中的table 乱
    [转]php中使用ignore_user_abort()函数后,如何停止后台运行的程序?
  • 原文地址:https://www.cnblogs.com/flyLove/p/9064852.html
Copyright © 2011-2022 走看看