zoukankan      html  css  js  c++  java
  • ubuntu 更改源

    1) 备份原来的源 cp /etc/apt/source.list /etc/apt/source.list.old

    2) 用下面的文件覆盖 /etc/apt/source.list

    # 163(非教育网推荐)

    deb http://mirrors.163.com/ubuntu/ precise main restricted

    deb-src http://mirrors.163.com/ubuntu/ precise main restricted

    deb http://mirrors.163.com/ubuntu/ precise-updates main restricted

    deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted

    deb http://mirrors.163.com/ubuntu/ precise universe

    deb-src http://mirrors.163.com/ubuntu/ precise universe

    deb http://mirrors.163.com/ubuntu/ precise-updates universe

    deb-src http://mirrors.163.com/ubuntu/ precise-updates universe

    deb http://mirrors.163.com/ubuntu/ precise multiverse

    deb-src http://mirrors.163.com/ubuntu/ precise multiverse

    deb http://mirrors.163.com/ubuntu/ precise-updates multiverse

    deb-src http://mirrors.163.com/ubuntu/ precise-updates multiverse

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

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

    deb http://mirrors.163.com/ubuntu/ precise-security main restricted

    deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted

    deb http://mirrors.163.com/ubuntu/ precise-security universe

    deb-src http://mirrors.163.com/ubuntu/ precise-security universe

    deb http://mirrors.163.com/ubuntu/ precise-security multiverse

    deb-src http://mirrors.163.com/ubuntu/ precise-security multiverse

    deb http://extras.ubuntu.com/ubuntu precise main

    deb-src http://extras.ubuntu.com/ubuntu precise main

    # sohu(非教育网推荐)

    deb http://mirrors.sohu.com/ubuntu/ precise main restricted

    deb-src http://mirrors.sohu.com/ubuntu/ precise main restricted

    deb http://mirrors.sohu.com/ubuntu/ precise-updates main restricted

    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates main restricted

    deb http://mirrors.sohu.com/ubuntu/ precise universe

    deb-src http://mirrors.sohu.com/ubuntu/ precise universe

    deb http://mirrors.sohu.com/ubuntu/ precise-updates universe

    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates universe

    deb http://mirrors.sohu.com/ubuntu/ precise multiverse

    deb-src http://mirrors.sohu.com/ubuntu/ precise multiverse

    deb http://mirrors.sohu.com/ubuntu/ precise-updates multiverse

    deb-src http://mirrors.sohu.com/ubuntu/ precise-updates multiverse

    deb http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse

    deb-src http://mirrors.sohu.com/ubuntu/ precise-backports main restricted universe multiverse

    deb http://mirrors.sohu.com/ubuntu/ precise-security main restricted

    deb-src http://mirrors.sohu.com/ubuntu/ precise-security main restricted

    deb http://mirrors.sohu.com/ubuntu/ precise-security universe

    deb-src http://mirrors.sohu.com/ubuntu/ precise-security universe

    deb http://mirrors.sohu.com/ubuntu/ precise-security multiverse

    deb-src http://mirrors.sohu.com/ubuntu/ precise-security multiverse

    deb http://extras.ubuntu.com/ubuntu precise main

    deb-src http://extras.ubuntu.com/ubuntu precise main

    保存后 执行

    apt-get update 即可

  • 相关阅读:
    国密算法 SM3 摘要计算 java版
    《Java架构师的第一性原理》41存储之MySQL第10篇数据库切分
    《Java架构师的第一性原理》41存储之MySQL第9篇MySQL主从复制
    《Java架构师的第一性原理》41存储之MySQL第8篇索引
    《Java架构师的第一性原理》41存储之MySQL第7篇SQL执行原理
    《Java架构师的第一性原理》41存储之MySQL第5篇事务
    《Java架构师的第一性原理》41存储之MySQL第6篇锁
    《Java架构师的第一性原理》41存储之MySQL第4篇MySQL日志系统(BinLog、RedoLog、UndoLog)
    《Java架构师的第一性原理》41存储之MySQL第3篇存储引擎MyISAM、InnoDB
    《Java架构师的第一性原理》41存储之MySQL第2篇MySQL逻辑架构
  • 原文地址:https://www.cnblogs.com/wliangde/p/3876619.html
Copyright © 2011-2022 走看看