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 即可

  • 相关阅读:
    安利一波这12个IDEA插件,太香了!
    作为Java新手,如何才能快速的看透一个Java项目?
    为什么放弃Hibernate、JPA、Mybatis,最终选择JDBCTemplate
    为什么 ConcurrentHashMap 的读操作不需要加锁?
    MySQL索引的使用是怎么样的?5个点轻松掌握!
    掌握MyBatis插件原理轻松写出自己的PageHelper分页插件
    Spring中BeanFactory与FactoryBean到底有什么区别?
    MongoDB学习笔记(一)——Windows 下安装MongoDB
    ASP.Net WebAPI中添加helppage帮助页面
    C#代码实现在控制台输入密码显示星号
  • 原文地址:https://www.cnblogs.com/wliangde/p/3876619.html
Copyright © 2011-2022 走看看