Ubuntu 修改apt源

查看Linux系统发行版本信息

部分Ubuntu系统LTS版本代号

  • Ubuntu 16.04代号为:xenial
  • Ubuntu 17.04代号为:zesty
  • Ubuntu 18.04代号为:bionic
  • Ubuntu 19.04代号为:disco
  • Ubuntu 20.04代号为:focal

修改sources.list文件

Ubuntu 20.04

#阿里源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse

更新

apt-get update
apt-get upgrade
posted @ 2022-05-19 07:32  NoCirc1e  阅读(116)  评论(0编辑  收藏  举报