zoukankan      html  css  js  c++  java
  • Ubuntu更换国内源

    1.备份原来的源

    sudo cp /etc/apt/sources.list /etc/apt/sources_init.list
    将以前的源备份一下,以防以后可以用的。

    2.更换源

     /etc/apt/sources.list

    使用gedit或者vim打开文档,将下边的阿里源复制进去,然后点击保存关闭。

    阿里源

    deb http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ trusty-backports main restricted universe multiverse
    3.更新
    更新源

    sudo apt-get update

    更新软件

    sudo apt-get upgrade

    可以看到速度嗖嗖嗖~ 很给力啊,大家果断都换了吧!!!

  • 相关阅读:
    request和request.form和request.querystring的区别
    设计模式—单例模式
    设计模式--单例模式之Lock
    一般处理程序
    C#使用wkhtmltopdf.exe,HTML页面转化为PDF文档
    iTextSharp 使用详解(转)
    简单工厂模式
    单例模式防反射及性能(二)
    java单例模式
    java学习笔记之基础语法(二)
  • 原文地址:https://www.cnblogs.com/ciscolee/p/12305551.html
Copyright © 2011-2022 走看看