替换软件源-aliyun-阿里云

deb http://deb.debian.org/debian stretch main contrib non-free
#deb-src http://deb.debian.org/debian stretch main contrib non-free

deb http://deb.debian.org/debian stretch-updates main contrib non-free
#deb-src http://deb.debian.org/debian stretch-updates main contrib non-free

deb http://deb.debian.org/debian-security stretch/updates main contrib non-free
#deb-src http://deb.debian.org/debian-security stretch/updates main contrib non-free

#deb http://deb.debian.org/debian stretch-backports main contrib non-free
##deb-src http://deb.debian.org/debian stretch-backports main contrib non-free

#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
#
deb [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main
#deb-src [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main

使用vim替换 (https://blog.csdn.net/qq_22038327/article/details/89215844#vim__11)

:%s/deb.debian.org/mirrors.aliyun.com/g

替换成

deb http://mirrors.aliyun.com/debian stretch main contrib non-free
#deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free

deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free
#deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free

deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free
#deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free

#deb http://mirrors.aliyun.com/debian stretch-backports main contrib non-free
##deb-src http://mirrors.aliyun.com/debian stretch-backports main contrib non-free

#Kernel source (repos.rcn-ee.com) : https://github.com/RobertCNelson/linux-stable-rcn-ee
#
#git clone https://github.com/RobertCNelson/linux-stable-rcn-ee
#cd ./linux-stable-rcn-ee
#git checkout `uname -r` -b tmp
#
deb [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main
#deb-src [arch=armhf] http://repos.rcn-ee.com/debian/ stretch main

wq 保存退出
apt-get update 更新软件源
apt-get install -y vim

树莓派替换阿里云的软件源

灯灯灯,灯灯灯,灯灯灯,灯灯灯
|
|

修改树莓派3B+的软件源-Raspbian(stretch)
|

sudo su

cd /etc/apt && cp sources.list sources.list-bak

echo -e "deb http://mirrors.aliyun.com/raspbian/raspbian/ stretch main non-free contrib rpi\ndeb-src http://mirrors.aliyun.com/raspbian/raspbian/ stretch main non-free contrib rpi" > /etc/apt/source.list

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值