树莓派Raspberry Pi 3 使用阿里云镜像云
阿里云有支持树莓派Raspberry Pi 3镜像云了,今天我们就一起来看一篇关于树莓派Raspberry Pi 3 使用阿里云镜像云的教程吧。
阿里开源镜像站提供了raspbian的软件包镜像,国内的用户可以选择改用阿里镜像站作为更新源。最新的jessie版可以参考本文。
具体做法
修改之前,最好先备份原始的配置文件。例如,使用如下命令将两个源配置文件拷贝到HOME目录。
cp /etc/apt/sources.list ~ cp /etc/apt/sources.list.d/raspi.list ~
或者直接在原来配置文件的基础上修改,但将原有的配置全部注释掉(使用#注释)。
修改 sources.list
更新后的/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
# use ustc mirror: deb http://mirrors.aliyun.com/raspbian/raspbian/ jessie main contrib non-free rpi
实际修改是,将 mirrordirector.raspbian.org 替换为 mirrors.aliyun.com/raspbian/ 。
修改 raspi.list
更新后的/etc/apt/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
# use ustc mirror: deb http://mirrors.aliyun.com/debian/ jessie main ui
实际修改是,将 archive.raspberrypi.org 替换为 mirrors.aliyun.com 。
update
更换了软件源之后,需要update
sudo apt-get update
邻家的の柠檬叔的最新日记 · · · · · · ( 全部 )
- 与她的告别信 (2人喜欢)
- 2025年2月21日AI多领域阅读列表汇总
- 触发搜索过于敏感问题 (1人喜欢)
- deepseek v3的指令服从性-作为相关度排序器 (1人喜欢)
- 《史上最大机器人🤖》
热门话题 · · · · · · ( 去话题广场 )
-
加载中...