pip下载如果下载速度过慢,可以考虑换源
备份镜像源设置文件
sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
编辑镜像源设置文件
sudo vim /etc/apt/sources.list
复制下面的所有内容替换掉原文件中的所有内容
#清华源
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-backports main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
# deb-src https://mirrors.tuna.tsinghua.edu.cn/ubuntu/ focal-security main restricted universe multiverse
再运行下面命令
sudo apt-get update
sudo apt-get upgrade
标签:cn,mirrors,restricted,ubuntu,换源,edu,multiverse
From: https://www.cnblogs.com/yuanfly/p/17204059.html