系统换源出现的问题:
W: GPG error: http://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian/bookworm InRelease: Key is stored in legacy trusted.gpg keyring(/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
下载的文件丢失,输入以下指令将文件打开:
sudo nano /etc/apt/sources.list.d/raspi.list
配置文件:
deb http://archive.raspberrypi.com/debian/ bookworm main
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
#deb-src http://archive.raspberrypi.com/debian/ bookworm main
deb https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main
按下Ctrl+O保存
打开
sudo nano /etc/apt/sources.list