树梅派切换源_【我的树莓派玩机之旅】-国内源更换

在树莓派更新的时候一直觉得更新很慢,把源换为国内的就好了

以前一直在用清华的源,于是开始按照以前的方法修改/etc/apt/sources.list换源。可是换完发现还会从官方源更新,直到找到了/etc/apt/sources.d/raspi.list

网上教程一般只更换/etc/apt/sources.list里面的源地址,当按照之前的方法更换/etc/apt/sources.d/raspi.list里面的网址之后,发现更新失败了...

直到从网上查找资料之后发现正确的方法:

1.修改之前,先备份下配置文件。

cp /etc/apt/sources.list /etc/apt/sources.list.back

cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.back

2.修改/etc/apt/sources.list或者直接修改原文件,把原有的配置全部注释掉(使用#注释)。

#deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi

# Uncomment line below then 'apt-get update' to enable 'apt-get source'

#deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi

#科大源

deb http://mirrors.ustc.edu.cn/raspbian/raspbian/ jessie main contrib non-free rpi

3.修改/etc/apt/sources.list.d/raspi.list

#deb http://archive.raspberrypi.org/debian/ jessie main ui

# Uncomment line below then 'apt-get update' to enable 'apt-get source'

#deb-src http://archive.raspberrypi.org/debian/ jessie main ui

#科大源

deb http://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ jessie main ui花了些时间整理了目前最新的树莓派中国大陆地区的软件源,记下来,希望对大家有帮助。

中国科学技术大学

Raspbian http://mirrors.ustc.edu.cn/raspbian/raspbian/

阿里云

Raspbian http://mirrors.aliyun.com/raspbian/raspbian/

清华大学

Raspbian http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/

华中科技大学

Raspbian http://mirrors.hustunique.com/raspbian/raspbian/

Arch Linux ARM http://mirrors.hustunique.com/archlinuxarm/

华南农业大学(华南用户)

Raspbian http://mirrors.scau.edu.cn/raspbian/

大连东软信息学院源(北方用户)

Raspbian http://mirrors.neusoft.edu.cn/raspbian/raspbian/

重庆大学源(中西部用户)

Raspbian http://mirrors.cqu.edu.cn/Raspbian/raspbian/

中山大学 已跳转至中国科学技术大学源

Raspbian http://mirror.sysu.edu.cn/raspbian/raspbian/

新加坡国立大学

Raspbian http://mirror.nus.edu.sg/raspbian/raspbian

牛津大学

Raspbian http://mirror.ox.ac.uk/sites/archive.raspbian.org/archive/raspbian/

韩国KAIST大学

Raspbian http://ftp.kaist.ac.kr/raspbian/raspbian/

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值