• Ubuntu 更换阿里源


    查看新版本信息

      lsb_release -c

    Ubuntu 12.04 (LTS)代号为precise。

    Ubuntu 14.04 (LTS)代号为trusty。

    Ubuntu 15.04 代号为vivid。

    Ubuntu 15.10 代号为wily。

    Ubuntu 16.04 (LTS)代号为xenial

    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/ bionic main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ bionic main restricted universe multiverse

    deb http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-security main restricted universe multiverse

    deb http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-updates main restricted universe multiverse

    deb http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-backports main restricted universe multiverse

    deb http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

    deb-src http://mirrors.aliyun.com/ubuntu/ bionic-proposed main restricted universe multiverse

    4.更新软件列表

      sudo apt-get update

  • 相关阅读:
    docker6 管理工具
    docker1 初识docker
    libsvm处理多分类的问题
    selenium webdriver 的三种等待方式
    文本深度表示模型Word2Vec
    机器学习中训练集、验证集、测试集的定义和作用
    机器学习中防止过拟合的处理方法
    用Python读取大文件
    进化世界
    EDS(实例)
  • 原文地址:https://www.cnblogs.com/moyu557/p/10710689.html
Copyright © 2020-2023  润新知