zoukankan      html  css  js  c++  java
  • Ubuntu16.04换成清华大学源

    第一:备份源文件

    # 源文件sources.list 在/etc/apt/目录下
    
    # 备份源文件
    sudo cp sources.list sources.list.bak 

    第二步:替换源文件

    # 清华大学源
    # 默认注释了源码镜像以提高 apt update 速度,如有需要可自行取消注释
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-updates main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-backports main restricted universe multiverse
    deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-security main restricted universe multiverse
    
    # 预发布软件源,不建议启用
    # deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    # deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ xenial-proposed main restricted universe multiverse
    sudo gedit sources.list打开文件,将里面的代码替换成上面的代码即可

    第三步:更新源

    sudo apt-get update 更新源 
    sudo apt-get upgrade 更新软件(选择性更新,有可能出现版本不兼容情况)
    apt-get update
      就是访问服务器,更新可获取软件及其版本信息,但仅仅给出一个可更新的list,具体更新需要通过apt-get upgrade,
    apt-get upgrade
      可将软件进行更新,但是有文章指出不建议一次性全部更新,因为最新的不一定是最好的,有可能出现版本不兼容的情况
  • 相关阅读:
    python 常用的模块(hashlib)转
    python 常用的模块(struct)转
    python 常用的模块(base64)转
    python 常用的模块(collections)转
    django xadmin的使用和改造
    django静态html中做动态变化
    django 用model来简化form
    InstallShield2015制作安装包----------安装后实现电脑开机自启动
    InstallShield2015创建安装包
    InstallShield :cannot rename directory ...
  • 原文地址:https://www.cnblogs.com/daofaziran/p/12604964.html
Copyright © 2011-2022 走看看