zoukankan      html  css  js  c++  java
  • apt-get使用国内镜像源

    apt-get

    1、复制原文件备份(万一弄坏源文件可恢复)
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
    2、编辑源列表文件
    sudo vim /etc/apt/sources.list
    3、将原来的列表删除,添加如下内容(阿里的镜像源)
    deb http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
    deb http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-security main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-updates main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-proposed main restricted universe multiverse
    deb-src http://mirrors.aliyun.com/ubuntu/ vivid-backports main restricted universe multiverse
    4、更新本地索引列表运行
    sudo apt-get update #更新本地索引列表
    #sudo apt-get upgrade # 可选/根据更新的索引升级已安装的所有软件包
  • 相关阅读:
    P4936 题解
    初赛
    洛谷P2763题解
    探秘最小生成树&&洛谷P2126题解
    洛谷P2630 题解
    洛谷P2125 题解
    洛谷P1510 题解
    洛谷P3572题解
    Codeforces 448C Painting Fence(分治法)
    Codeforces 999F Cards and Joy(二维DP)
  • 原文地址:https://www.cnblogs.com/alexzhang92/p/9573095.html
Copyright © 2011-2022 走看看