惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google DeepMind News
Google DeepMind News
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
小众软件
小众软件
博客园 - 司徒正美
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Jina AI
Jina AI
Hugging Face - Blog
Hugging Face - Blog
博客园 - Franky
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
雷峰网
雷峰网
云风的 BLOG
云风的 BLOG
M
MIT News - Artificial intelligence
F
Fortinet All Blogs
T
Tailwind CSS Blog
Martin Fowler
Martin Fowler
I
InfoQ
The GitHub Blog
The GitHub Blog
有赞技术团队
有赞技术团队
The Cloudflare Blog
罗磊的独立博客

atpX

自建 S3 兼容对象存储服务 Garage 听风的歌 偶尔是深夜就好了 新玩具 AirPods Pro 3 公交车上的时间 从 WHOIS 到 RDAP 通过 WireGuard 访问 NFS 共享文件 自建音乐串流服务探索 我停止了探索 Fediverse 互联网背景噪音 我的数字生活降级 小城与确定性的墙 一只特立独行的猪 Fediverse 与社交 承认的勇气 mediaX - 轻量书影音记录管理工具 我的博客写作流程 网站新增 Misc 页面 擅长对线的鲍勃 在 Chroot 环境下使用 Rsync 同步 再见 JavaScript 当我玩博客时我在玩什么 为什么我的博客没有友链页面 小熊猫与大熊猫 (HDR 照片测试) 是时候为网站开启 HTTP/3 支持了吗 使用 AdGuard Home 搭建自用 DoH 服务 谈谈读书与消遣 2023 年终总结 西安两日游 从 AirPods「升级」到 EarPods
折腾树莓派系统的一天
ATP · 2022-04-08 · via atpX

偶然刷到树莓派官方更新了一个 5.15 内核版本的 Raspberry Pi OS Bullseye,迫于闲着无聊,于是换源、full-upgrade、reboot 一气呵成,然后就连不上了…

一直都是 Headless(无键盘、显示器)使用,虽然里面运行的服务不是很多,但迫于配置起来很麻烦,重新烧录系统属于下策,只好出门买根 micro-HDMI 的线,插上显示器一看发现 DHCP 出问题了: Failed to start DHCP Client Daemon.

raspi-failed-start

然后在 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