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

4次阅读

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

一、装置树莓派零碎
首先下载树莓派的零碎,镜像官网(https://www.raspberrypi.com/)速度下载比较慢,举荐应用阿里云镜像站下载。
阿里云镜像站官网:https://developer.aliyun.com/…
阿里云树莓派零碎镜像地址:https://mirrors.aliyun.com/ra…
而后咱们找到下载地址下载:
https://mirrors.aliyun.com/ra…
基于 Debian11,以后日期是 2022-02-16,目前最新的零碎。
下载结束后解压,而后应用 Win32DiskImager 刷入内存卡,烧录零碎这里就不多说了。
把内存卡插入树莓派,通电开机,而后通过 hdmi 线接入显示器。就能够进入零碎了。
二、Raspberry Pi 更换阿里云源办法
自带的源在海内,访问速度比较慢,更换成阿里云的源后装置软件速度会晋升很大。
阿里云 raspberrypi 镜像源地址:
https://developer.aliyun.com/…
其余源:http://www.raspbian.org/Raspb…

编辑 /etc/apt/sources.list 文件,这里举荐就用零碎自带的 nano 命令编辑,命令如下:
sudo nano /etc/apt/sources.list
进入编辑界面,删除原有的内容,粘贴如下内容:
deb http://mirrors.aliyun.com/ras… bullseye main non-free contrib rpi
deb-src http://mirrors.aliyun.com/ras… bullseye main non-free contrib rpi
更新软件索引清单
sudo apt-get update
比拟索引清单更新依赖关系
sudo apt-get upgrade -y

正文完
 0