PHICOMM-N1,Raspberry 等 ARM64 更换 Debian&Ubuntu 国内源

2019-08-18 – 1:16 上午 --- 246 次阅读

两行:

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
#下面任选1个
#Ubuntu
#中科大
sudo sed -i 's~ports.ubuntu.com~mirrors.ustc.edu.cn/ubuntu-ports/~g' /etc/apt/sources.list
#清华
sudo sed -i 's~ports.ubuntu.com~mirrors.tuna.tsinghua.edu.cn/ubuntu-ports/~g' /etc/apt/sources.list
#阿里云
sudo sed -i 's~ports.ubuntu.com~mirrors.aliyun.com/ubuntu-ports/~g' /etc/apt/sources.list
#台湾
sudo sed -i 's~ports.ubuntu.com~tw.archive.ubuntu.com/ubuntu-ports/~g' /etc/apt/sources.list
#Debian
#中科大
sudo sed -i 's~httpredir.debian.org~mirrors.ustc.edu.cn~g' /etc/apt/sources.list
#清华
sudo sed -i 's~httpredir.debian.org~mirrors.tuna.tsinghua.edu.cn~g' /etc/apt/sources.list
#阿里云
sudo sed -i 's~httpredir.debian.org~mirrors.aliyun.com~g' /etc/apt/sources.list
#台湾
sudo sed -i 's~httpredir.debian.org~tw.archive.ubuntu.com~g' /etc/apt/sources.list

Security 源:

deb http://mirrors.163.com/debian-security/ stretch/updates main non-free contrib
deb http://mirrors.ustc.edu.cn/debian-security/ stretch/updates main contrib non-free

点击显示引用框
引用本文,复制粘贴...

点击可把本文加入多个网络分享站点

您还可以参考以下文章:


您必须 登录 才能发表评论.