zoukankan      html  css  js  c++  java
  • ubuntu update(国内升级源)

    打开终端(呵呵,这个不用怎么说了吧,地球人都知道)
    1.)输入:sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup //此为保存当前的源列表
    2.)输入:sudo gedit /etc/apt/sources.list //此为编辑源列表

    此时会用gedit打开源列表,全选后,复制以下横线之间的内容覆盖原有的全部内容:
    -----------------------------------------------------------------------------------------------------------
    deb http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
    deb http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ feisty main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ feisty-security main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ feisty-updates main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ feisty-proposed main restricted universe multiverse
    deb-src http://ubuntu.cn99.com/ubuntu/ feisty-backports main restricted universe multiverse
    --------------------------------------------------------------------------------------------------------------

    做好这一步之后,保存好编辑过的源后关闭sources.list,然后回到终端,继续输入以下命令:
    3.)输入:sudo apt-get update
    4.)输入:sudo apt-get dist-upgrade
    呵呵,只要以上没出错的话,源已经成功换成了cn99的源了,这时接下来要做的就是要配置好中文环境了,这里就不多说了哦。^_^
  • 相关阅读:
    【漏洞分析】5次shift漏洞破解win7密码
    skyler实战渗透笔记(五)—Tr0ll
    skyler实战渗透笔记(四)—Raven2
    skyler实战渗透笔记(三)—Raven
    python读写excel文件
    python_列表
    mysql安装教程
    centos7安装RabbitMQ教程
    centos7安装mongodb4.2.15教程
    tomcat9安装教程
  • 原文地址:https://www.cnblogs.com/lansh/p/1233135.html
Copyright © 2011-2022 走看看