zoukankan      html  css  js  c++  java
  • Ubuntu添加源列表

    1.
    首先备份源列表:
    sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup

    2.
    清空原来的/etc/apt/sources.list,添加网易的源列表
    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

    3.
    刷新列表:
    sudo apt-get update

    vim显示行号
    vi /etc/vim/vimrc
    set nu



    deb http://cn.archive.ubuntu.com/ubuntu/ xenial main restricted
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial universe
    deb http://cn.archive.ubuntu.com/ubuntu/ xenial multiverse
    deb http://download.virtualbox.org/virtualbox/debian xenial contrib



  • 相关阅读:
    linux内存-swap
    linux内存-buffer和cache
    Linux内存-内存管理机制oom_killer
    HTTPS(二)证书合法性校验
    HTTPS(一)基础及连接建立
    docker镜像(一)overlayfs
    DNS(三)全局流量调度
    建造者模式(Builder Pattern)
    抽象工厂模式(Abstract Factory)
    工厂方法模式(Factory Method Pattern)
  • 原文地址:https://www.cnblogs.com/icemonkey/p/10479653.html
Copyright © 2011-2022 走看看