# 查看源 cat /etc/apt/sources.list # 备份一下 cp /etc/apt/sources.list /etc/apt/sources.list.bak # 使用阿里源覆盖之前设置 sudo tee -a /etc/apt/sources.list <<EOF deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse EOF