备份源列表文件

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

编辑源列表文件,添加源

# vi /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

更新软件列表

# apt update

更新软件包

# apt upgrade

博主制作的一键脚本

curl https://xieccc.github.io/sh/updatemirror.sh | bash

等待软件包更新&升级完毕即可

Last modification:March 26, 2019
If you think my article is useful to you, please feel free to appreciate