zoukankan      html  css  js  c++  java
  • ubuntu 12.04 LTS 如何使用更快的更新源

         装好ubuntu系统后的第一见事就是替换自带的更新源,原因是系统自带的源有些在中国访问不了,可以访问的速度又特别慢。幸好国内的一些公司和大学提供了速度不错的更新源。下面介绍如何使用更快的更新源

    方法/步骤

    1. 备份sources.list文件:

           cp /etc/apt/sources.list etc-backup/etc-apt-source.list

    2.  打开sources.list:

          sudo gedit /etc/apt/sources.list

      ubuntu 12.04 LTS 如何使用更快的更新源
    3.  

      修改sources.list,将sources.list内容全部替换为以下内容:

      # 电子科大(教育网用户推荐)

      deb http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse

      deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

      deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

      deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

      deb http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

      deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise main restricted universe multiverse

      deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

      deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

      deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

      deb-src http://ubuntu.uestc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

      # 中国科技大学(教育网用户推荐)

      deb http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse

      deb http://debian.ustc.edu.cn/ubuntu/ precise-backports restricted universe multiverse

      deb http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

      deb http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

      deb http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

      deb-src http://debian.ustc.edu.cn/ubuntu/ precise main restricted universe multiverse

      deb-src http://debian.ustc.edu.cn/ubuntu/ precise-backports main restricted universe multiverse

      deb-src http://debian.ustc.edu.cn/ubuntu/ precise-proposed main restricted universe multiverse

      deb-src http://debian.ustc.edu.cn/ubuntu/ precise-security main restricted universe multiverse

      deb-src http://debian.ustc.edu.cn/ubuntu/ precise-updates main restricted universe multiverse

      # 北京理工(教育网用户推荐)

      deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

      deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

      deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

      deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

      deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

      deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe

      deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe

      deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe

      deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe

      deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe

      # 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

    4.  

      保存对source.list的修改。

    5.  

      更新源信息:

          sudo apt-get update

      ubuntu 12.04 LTS 如何使用更快的更新源
  • 相关阅读:
    微信小程序 iPhone 11、iPhoneX 底部安全区域(底部小黑条)适配
    Servlet与vue-axios交互跨域问题之Access-Control-Allow-Origin' header contains multiple values '*, null', but only one is allowed.
    Windows10下PCL1.8.1以及Python-pcl1.81环境配置的掉发之路
    【问题记录】Navicat Premium连接mysql-8.0.17时出现2059
    mysql-8.0.17解压版安装步骤及MySQL服务无法启动问题的解决办法
    ENVI基本操作之彩色合成
    GeoServer与Udig发布矢量数据出现的问题1——预览数据一半显示正常一半重叠
    本地日志文件
    SQL语句(2)--- 函数
    SQL语句(1)--- SQL简介
  • 原文地址:https://www.cnblogs.com/hgc-bky/p/6088858.html
Copyright © 2011-2022 走看看