zoukankan      html  css  js  c++  java
  • ubuntu 1804 配置阿里源

    以防出错,先备份

    sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak

    编辑元列表文件

    sudo vim /etc/apt/sources.list  或 sudo gedit /etc/apt/sources.list

    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

    更新软件列表

    sudo apt-get update

    更新软件包

    sudo apt-get upgrade

    关于列表里内容不尽相同的问题:

    元列表里的bionic是18.04的版本号,每一版内容不同的地方就是版本号(或者官方一点的说:系统代号)

    查看新版本信息
    lsb_release -c

    我们可以看到新版本的Ubuntu系统代号为bionic

    同样的我们也可以得到之前版本的系统代号:

    Ubuntu 12.04 (LTS)代号为precise。

    Ubuntu 14.04 (LTS)代号为trusty。

    Ubuntu 15.04 代号为vivid。

    Ubuntu 15.10 代号为wily。

    Ubuntu 16.04 (LTS)代号为xenial

    因为更改apt安装源时用的系统不一样,元列表中系统代号也不同,不同版本的ubuntu系统源列表更改时需注意版本代号的不同

  • 相关阅读:
    CSP-S全国模拟赛第三场 【nan死了】
    ●SCOI2018 AFO
    ●洛谷P2934 [USACO09JAN]安全出行Safe Travel
    ●洛谷P3233 [HNOI2014]世界树
    ●洛谷P2495 [SDOI2011]消耗战
    ●UOJ58 [WC2013]糖果公园
    ●洛谷P1903 [国家集训队]数颜色
    ●BZOJ 4237 稻草人
    ●Joyoi Normal
    ●CodeForces 698C LRU
  • 原文地址:https://www.cnblogs.com/csnd/p/12307752.html
Copyright © 2011-2022 走看看