zoukankan      html  css  js  c++  java
  • ubuntu修改软件源的方法

    最快方法——替换法

    刚安装好的ubutun,打开source.list后,用vim替换的方法将所有的us提付出替换为
    cn,然后保存退出,更新即可。

    # vim /etc/apt/source.list
    # 在vim的界面输入 %s/us/cn/g,保存退出
    # apt-get update
    

    %s/us/cn/g, g是全局的意思。%s是替换。
    ps vim的常用指令还有哪些? vim编程要做哪些配置?

    修改软件源为本地镜像源

    把 /etc/apt/source.list中的内容替换为阿里云的源。

    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
    
    
  • 相关阅读:
    Leetcode总结之Tree
    Leetcode总结之DFS
    Leetcode总结之Backtracking
    策略模式(设计模式_02)
    面向对象思想设计_计算器小程序(设计模式入门篇_01)
    Android GridView 滑动条设置一直显示状态
    dp暑假专题 训练记录
    dp入门 专题记录 2017-7-26
    dp问题 -挑战例题 2017-7-24
    贪心思维 专题记录 2017-7-21
  • 原文地址:https://www.cnblogs.com/goto2091/p/13682417.html
Copyright © 2011-2022 走看看