zoukankan      html  css  js  c++  java
  • Ubuntu源整理

    先说说更换源的目的:

      系统默认使用的源请求速度很慢,因为都是国外的地址。

      更换源是为了提升软件的下载速度和更新速度

    如何更改源:

      1.在修改source.list前,最好先备份一份

        执行命令:sudo cp /etc/apt/sources.list /etc/apt/sources.list.old

      2.执行命令打开sources.list文件

        sudo vim /etc/apt/sources.list  //通过vim打开

        sudo gedit /etc/apt/sources.list  //通过gedit打开

      3.写入源

        将源内容复制到sources.list文件中,覆盖原有的文件内容(所有的)

        (文章底部附有几个源的内容)、

      4更新源

        把源复制到sources.list文件中,保存后,执行:

        sudo apt-get update

        即可更新获取源提供的软件列表

      5.更新软件

        在源更新后使用:

          sudo apt-get upgrade

        即可对软件进行更新

      部分源:

        阿里源:

    # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted

    deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties

    deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties

    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties

    deb http://mirrors.aliyun.com/ubuntu/ xenial universe

    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe

    deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse

    deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse

    deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties

    deb http://archive.canonical.com/ubuntu xenial partner

    deb-src http://archive.canonical.com/ubuntu xenial partner

    deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted

    deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties

    deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe

    deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse

     

    搜狐源:

    deb http://mirrors.sohu.com/ubuntu/ trusty main restricted universe multiverse

    deb http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse

    deb http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse

    deb http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse

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

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

    deb-src http://mirrors.sohu.com/ubuntu/ trusty-security main restricted universe multiverse

    deb-src http://mirrors.sohu.com/ubuntu/ trusty-updates main restricted universe multiverse

    deb-src http://mirrors.sohu.com/ubuntu/ trusty-proposed main restricted universe multiverse

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

     

        网易源:

    deb http://mirrors.163.com/ubuntu/ trusty main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

    deb http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

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

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

    deb-src http://mirrors.163.com/ubuntu/ trusty-security main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ trusty-updates main restricted universe multiverse

    deb-src http://mirrors.163.com/ubuntu/ trusty-proposed main restricted universe multiverse

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

  • 相关阅读:
    Vue.js
    Vue.js
    Vue.js
    Vue.js
    webpack(1)
    webpack(2)
    babel-loader7和babel8版本的问题
    [JZOJ4274] 终章-剑之魂
    [JZOJ427] 圣章-精灵使的魔法语
    BZOJ题表(红色表示已完成)
  • 原文地址:https://www.cnblogs.com/luowBlog/p/7551812.html
Copyright © 2011-2022 走看看