赞
踩
获取debian系发行版的debian版本:cat /etc/*version
Ubuntu版本 | debian版本号 | debian代号 |
---|---|---|
14.04 | 8 | jessie |
16.04 | 9 | strech |
18.04 | - | buster |
buster
是strech
的之后的正式发行版代号,版本号按道理应该是10,但是好像官方没有说。
sudo curl -L https://github.com/AndyYoungDev/ubuntu-aliyun-sources/releases/download/shell/change.sh | bash
查找源配置文件 find / -name sources.list ,修改sources.list为如下内容:
- deb-src http://archive.ubuntu.com/ubuntu xenial main restricted #Added by software-properties
- deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted
- deb-src http://mirrors.aliyun.com/ubuntu/ xenial main restricted multiverse universe #Added by software-properties
- deb-src http://mirrors.aliyun.com/ubuntu/ xenial-updates main restricted multiverse universe #Added by software-properties
- deb http://mirrors.aliyun.com/ubuntu/ xenial universe
- deb http://mirrors.aliyun.com/ubuntu/ xenial-updates universe
- deb http://mirrors.aliyun.com/ubuntu/ xenial multiverse
- deb http://mirrors.aliyun.com/ubuntu/ xenial-updates multiverse
- deb http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse
- deb-src http://mirrors.aliyun.com/ubuntu/ xenial-backports main restricted universe multiverse #Added by software-properties
- deb http://archive.canonical.com/ubuntu xenial partner
- deb-src http://archive.canonical.com/ubuntu xenial partner
- deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted
- deb-src http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted multiverse universe #Added by software-properties
- deb http://mirrors.aliyun.com/ubuntu/ xenial-security universe
- deb http://mirrors.aliyun.com/ubuntu/ xenial-security multiverse
执行命令 sudo apt-get update
查找源配置文件 find / -name sources.list ,修改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
或者使用163源:
- #163源
- deb http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
- deb http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ bionic main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ bionic-security main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ bionic-updates main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ bionic-proposed main restricted universe multiverse
- deb-src http://mirrors.163.com/ubuntu/ bionic-backports main restricted universe multiverse
执行命令 sudo apt-get update
参考文章:https://yq.aliyun.com/articles/639051
参考文章:https://www.jianshu.com/p/352917274542 作者:Daryl_Xu
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。