zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    查找文献的BibTex
    123. 单词搜索(DFS)
    423 Locked
    Win7 ODBC驱动 Excel (转)
    存储过程如何传变量到like下
    表的倒数第二行数据
    oracle跟踪
    PL/SQL-FOR UPDATE 与 FOR UPDATE OF的区别
    oracle for loop
    sqlserver中sp_executesql使用实例(获取动态sql输出结果)
  • 原文地址:https://www.cnblogs.com/moyu557/p/10710689.html
Copyright © 2011-2022 走看看