linux-firmware 和 linux-image-5.4.0-105-generic 更新失败

linux-firmware 和 linux-image-5.4.0-105-generic 更新失败

受最近 CVE 安全请求更新内核的启发,我尝试使用sudo apt-get update && sudo apt-get install linux-generic此更新内核,但失败了。因此,我尝试更新列出的所有软件包apt list --upgradable。这也没有用。

目前,如果我尝试使用 apt 进行任何操作,例如,sudo dpkg --configure -a我会得到一长串输出,最后以

Errors were encountered while processing:
 linux-firmware
 linux-image-5.4.0-105-generic

中间某处可能包含一条有趣的信息

update-initramfs: Generating /boot/initrd.img-5.4.0-1050-raspi
Using DTB: bcm2709-rpi-2-b.dtb
Installing /lib/firmware/5.4.0-1050-raspi/device-tree/bcm2709-rpi-2-b.dtb into /boot/dtbs/5.4.0-1050-raspi/./bcm2709-rpi-2-b.dtb
Taking backup of bcm2709-rpi-2-b.dtb.###############################################........................................................................................]
Installing new bcm2709-rpi-2-b.dtb.
Ignoring old or unknown version 5.4.0-1050-raspi (latest is 5.4.0-1055-raspi)
update-initramfs: Generating /boot/initrd.img-5.4.0-105-generic
Using DTB: bcm2709-rpi-2-b.dtb
Couldn't find DTB bcm2709-rpi-2-b.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image-5.4.0-105-generic /lib/firmware/5.4.0-105-generic/device-tree/
Installing  into /boot/dtbs/5.4.0-105-generic/./bcm2709-rpi-2-b.dtb
cp: cannot stat '': No such file or directory
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
dpkg: error processing package linux-firmware (--configure):
 installed linux-firmware package post-installation script subprocess returned error exit status 1
Processing triggers for linux-image-5.4.0-105-generic (5.4.0-105.119) ...
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-5.4.0-105-generic
Using DTB: bcm2709-rpi-2-b.dtb
Couldn't find DTB bcm2709-rpi-2-b.dtb on the following paths: /etc/flash-kernel/dtbs /usr/lib/linux-image-5.4.0-105-generic /lib/firmware/5.4.0-105-generic/device-tree/
Installing  into /boot/dtbs/5.4.0-105-generic/./bcm2709-rpi-2-b.dtb
cp: cannot stat '': No such file or directory
run-parts: /etc/initramfs/post-update.d//flash-kernel exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-5.4.0-105-generic (--configure):
 installed linux-image-5.4.0-105-generic package post-installation script subprocess returned error exit status 1
Processing triggers for flash-kernel (3.103ubuntu1~20.04.3) ...
Using DTB: bcm2709-rpi-2-b.dtb
Installing /lib/firmware/5.4.0-1055-raspi/device-tree/bcm2709-rpi-2-b.dtb into /boot/dtbs/5.4.0-1055-raspi/./bcm2709-rpi-2-b.dtb
Taking backup of bcm2709-rpi-2-b.dtb.
Installing new bcm2709-rpi-2-b.dtb.

本系统20.04.4 LTS (GNU/Linux 5.4.0-1050-raspi armv7l)基于 Raspberry Pi 2。以下我已经扩大了交换空间。

我还尝试清理boot分区,以便有空间进行更新。现在我有 140+ Mb 的可用空间/dev/mmcblk0p1 253M 114M 139M 46% /boot/firmware,而且空间充足/

这些都无济于事。

我尝试遵循安全建议,但现在系统却半坏了。有没有什么办法可以修复这个问题并正确安装软件包?

答案1

最近,我在 ubuntu 上遇到了类似的错误。我尝试了很多方法,但得不到任何帮助。我通过进入 ubuntu 的高级启动选项检查了 Linux 的最新映像,发现 linux-image-5.4.0-105-generic 是罪魁祸首,而 grub 默认不会选择此条目。因此,我通过选择以前的映像 linux-image-5.4.0-104-generic 解决了该问题,它对我来说运行良好。不知道 Ubuntu 是否会在其版本中修复该问题。

相关内容