球球
球球

bullseye换源

#由于树莓派在国内速度太慢,可以更换为国内软件源。
1、更新/etc/apt/sources.list

sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
sudo nano /etc/apt/sources.list

替换以下软件源
ARM(32位系统)

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

ARM64(64位系统)

Arm64 架构的 Raspberry Pi OS 仍处于 beta 状态,中科大源亦不含此架构。对于 arm64 的 Raspberry Pi OS,可以直接使用 arm64 Debian 的源(以 Bullseye 示例):
deb https://mirrors.ustc.edu.cn/debian/ bullseye main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian bullseye main contrib non-free
deb https://mirrors.ustc.edu.cn/debian/ bullseye-updates main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian bullseye-updates main contrib non-free
deb https://mirrors.ustc.edu.cn/debian-security bullseye-security main contrib non-free
#deb-src http://mirrors.ustc.edu.cn/debian-security/ bullseye-security main non-free contrib

2、更新/etc/apt/sources.list.d/raspi.list

sudo cp /etc/apt/sources.list.d/raspi.list.bak
sudo nano /etc/apt/sources.list.d/raspi.list

替换以下软件源

ARM(32位系统)

deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main
#deb-src https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main

ARM64(64位系统)

deb https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main
#deb-src https://mirrors.ustc.edu.cn/archive.raspberrypi.org/debian/ bullseye main

3、更新

sudo apt update && sudo apt dist-upgrade

4、The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY xxxxxxxxxxxxxxxxxxx

sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com xxxxxxxxxxxxxxxxxxx

4、EEPROM更新

sudo apt update
sudo apt upgrade
sudo apt install rpi-eeprom
sudo rpi-eeprom-update

4.1、官方自动更新

sudo rpi-eeprom-update -a

4.2、自定义更新

wget https://github.com/raspberrypi/rpi-eeprom/archive/master.zip

解压进相应的路径

unzip master.zip
cd rpi-eeprom-master/firmware/beta/
sudo rpi-eeprom-update -d -f 要更新的固件名称

更新完成后重启树莓派

sudo reboot

官方链接https://www.raspberrypi.org/documentation/hardware/raspberrypi/booteeprom.md

5、树莓派正确swap分区

sudo vi /etc/dphys-swapfile
sudo nano /etc/dphys-swapfile

将 CONF_SWAPSIZE 的值修改成你想要的大小。

sudo /etc/init.d/dphys-swapfile restart

查看大小

free -h

Enjoy It!😍