- Model: Raspberry Pi 3B+
- System: Raspberry Pi OS(64 bit) beta
- ssh to connect to the Raspberry Pi, back up the source files sources.list and raspi.list
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.bak
$ sudo cp /etc/apt/sources.list.d/raspi.list /etc/apt/sources.list.d/raspi.list.bak
- Since the raspberry source does not fully support the 64-bit Pi OS, the sources.list needs to use the debian source, while the 32-bit source can be directly used by the raspberry source.
- Modify the sources.list file, delete all the contents in it, and replace it with the following contents ( Ctrl + O to save the file, Enter to confirm, Ctrl + X to exit):
$ sudo nano /etc/apt/sources.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspberry-pi-os/raspbian/ buster main non-free contrib rpi
deb-src http://mirrors.tuna.tsinghua.edu.cn/raspberry-pi-os/raspbian/ buster main non-free contrib rpi
- Modify the raspi.list file and replace it with the following content:
$ sudo nano /etc/apt/sources.list.d/raspi.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
- Modify the sources.list file and replace it with the following:
$ sudo nano /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security/ buster/updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian buster-updates main contrib non-free
- Modify the raspi.list file and replace it with the following content (the source separately provided by the Raspberry Pi Foundation, consistent with the 32-bit Pi OS):
$ sudo nano /etc/apt/sources.list.d/raspi.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ buster main ui
3. Synchronize update source and software package
- Execute the following commands:
$ sudo apt-get update
$ sudo apt-get upgrade