zoukankan      html  css  js  c++  java
  • 更换ubuntu16.04 apt源

    1- 备份原来的更新源

        sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup
    

    2- 修改更新源

        sudo vim /etc/apt/sources.list
    

    3- 替换源文件网址,将下列网址粘贴覆盖到sources.list

        # deb cdrom:[Ubuntu 16.04 LTS _Xenial Xerus_ - Release amd64 (20160420.1)]/ xenial main restricted
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial universe
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates universe
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial multiverse
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates multiverse
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security universe
        deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security multiverse
    

    对了,替换完成之后一定要记得

            sudo apt-get update
            sudo apt-get upgrade
    

    不然会出现unable locate *** 错误

  • 相关阅读:
    XCode 7 运行 cocos2dx 2.2.6问题小节
    SerializeField和Serializable
    convert2utf8withbom
    NGUI制作字体的三种方法
    js json stringify
    nodejs npm 使用淘宝 NPM 镜像
    js url?callback=xxx xxx的介绍
    强引用 弱引用
    关于xml里的encoding
    js 历史
  • 原文地址:https://www.cnblogs.com/maxaimee/p/6530597.html
Copyright © 2011-2022 走看看