输入sudo apt-get update
后报错
命中:1 https://mirrors.tuna.tsinghua.edu.cn/raspbian/raspbian bullseye InRelease
获取:2 https://mirror.tuna.tsinghua.edu.cn/raspberrypi bullseye InRelease [23.6 kB]
获取:3 https://mirrors.tuna.tsinghua.edu.cn/raspbian/multiarch bullseye InRelease [3,912 B]
获取:4 http://raspbian.raspberrypi.org/raspbian buster InRelease [15.0 kB]
正在读取软件包列表… 完成
E: 仓库’http://raspbian.raspberrypi.org/raspbian buster InRelease’将其’Suite’值从’stable’修改到了’oldoldstable’
N: 为了让这个仓库能够应用,这必须在更新之前显式接受。更多细节请参阅 apt-secure(8) 手册。
解决方法
由于 Raspbian buster 被标记为 oldoldstable,需要显式地接受这个变更。你可以按照以下步骤进行操作:
显式接受更改
首先,告诉 apt 接受仓库状态的变化:
sudo apt-get update --allow-releaseinfo-change
重新运行更新
然后再一次运行更新命令:
sudo apt-get update
继续安装和设置
一旦完成更新,你可以继续安装和设置所需的软件包和虚拟环境。