关于raspberry-pi:树莓派-Raspberry-Pi-bullseye更换阿里云源方法

35次阅读

共计 975 个字符,预计需要花费 3 分钟才能阅读完成。

一、装置树莓派零碎

首先下载树莓派的零碎,镜像官网(https://www.raspberrypi.com/)速度下载比较慢,举荐应用阿里云镜像站下载。

阿里云镜像站官网:https://developer.aliyun.com/mirror/

阿里云树莓派零碎镜像地址:https://mirrors.aliyun.com/raspberrypi/

而后咱们找到下载地址下载:

https://mirrors.aliyun.com/raspberry-pi-os-images/raspios_full_arm64/images/raspios_full_arm64-2022-01-28/2022-01-28-raspios-bullseye-arm64-full.zip

基于 Debian11,以后日期是 2022-02-16,目前最新的零碎。

下载结束后解压,而后应用 Win32DiskImager 刷入内存卡,烧录零碎这里就不多说了。

把内存卡插入树莓派,通电开机,而后通过 hdmi 线接入显示器。就能够进入零碎了。

二、Raspberry Pi 更换阿里云源办法

自带的源在海内,访问速度比较慢,更换成阿里云的源后装置软件速度会晋升很大。

阿里云 raspberrypi 镜像源地址:

https://developer.aliyun.com/mirror/raspberrypi?spm=a2c6h.13651102.0.0.5f851b11F6UTeG

其余源:http://www.raspbian.org/RaspbianMirrors

编辑 /etc/apt/sources.list 文件,这里举荐就用零碎自带的 nano 命令编辑,命令如下:

sudo nano /etc/apt/sources.list

进入编辑界面,删除原有的内容,粘贴如下内容:

deb http://mirrors.aliyun.com/raspbian/raspbian/ bullseye  main non-free contrib rpi
deb-src http://mirrors.aliyun.com/raspbian/raspbian/ bullseye main non-free contrib rpi

更新软件索引清单

sudo apt-get update

比拟索引清单更新依赖关系

sudo apt-get upgrade -y

正文完
 0