偶然刷到树莓派官方更新了一个 5.15 内核版本的 Raspberry Pi OS Bullseye,迫于闲着无聊,于是换源、full-upgrade、reboot 一气呵成,然后就连不上了…
一直都是 Headless(无键盘、显示器)使用,虽然里面运行的服务不是很多,但迫于配置起来很麻烦,重新烧录系统属于下策,只好出门买根 micro-HDMI 的线,插上显示器一看发现 DHCP 出问题了:
Failed to start DHCP Client Daemon
.

然后在 StackExchange 发现我并不是一个人。需要将 /etc/systemd/system/dhcpcd.service.d/wait.conf
中:
[Service]
ExecStart=
ExecStart=/usr/lib/dhcpcd5/dhcpcd -q -w
修改为:
[Service]
ExecStart=
ExecStart=/usr/sbin/dhcpcd -q -w
然而可能是源的问题,vi 和 vim 都用不了,所以我选择直接 rm,然后重启,果不其然可以连上了。之后查了下这个是配置 raspi-config 里 Boot Options 中的一个选项,Fast boot-no wait,用来快速启动的,删除应该问题不大。
经过折腾想了想还是直接用 Debian 的源不搞事了,根据我前面的文章,成功升级到 Debian 11 后发现 Docker 容器又启动失败了,所有容器都提示:
Error response from daemon: OCI runtime create failed: container with id exists
根据网上的办法,删除 /var/run/docker/runtime-runc/moby/
中对应的错误文件夹,我直接全部删除:
rm -rf /var/run/docker/runtime-runc/moby/*
service docker stop
reboot
之后依旧同样的错误,于是尝试删除容器重新运行,报错:
Error response from daemon: cgroups: cgroup mountpoint does not exist: unknown.
在 Github 上搜到了临时解决方法:
mkdir /sys/fs/cgroup/systemd
mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd
执行后成功启动容器。
最后在这里备份一下目前使用的源,方便以后折腾:
/etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-backports main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
# deb-src https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
/etc/apt/sources.list.d/raspi.list
deb http://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bullseye main
/etc/apt/sources.list.d/docker.list
deb [arch=armhf] https://mirrors.tuna.tsinghua.edu.cn/docker-ce/linux/debian bullseye stable
如果你认为这篇文章还不错,可以考虑为我充电 ⚡️