Debian 12 上的出错信息:raspi-firmware: missing /boot/firmware, did you forget to mount it? 解决方案

环境:
Debian 12 + Dell E6230

完整的出错信息:

sudo apt autoremove

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-image-6.1.0-10-amd64 (6.1.37-1) ...
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-10-amd64.
dkms: autoinstall for kernel: 6.1.0-10-amd64.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-10-amd64
raspi-firmware: missing /boot/firmware, did you forget to mount it?
run-parts: /etc/initramfs/post-update.d//z50-raspi-firmware exited with return code 1
run-parts: /etc/kernel/postinst.d/initramfs-tools exited with return code 1
dpkg: error processing package linux-image-6.1.0-10-amd64 (--configure):
 installed linux-image-6.1.0-10-amd64 package post-installation script subprocess returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-amd64:
 linux-image-amd64 depends on linux-image-6.1.0-10-amd64 (= 6.1.37-1); however:
  Package linux-image-6.1.0-10-amd64 is not configured yet.

dpkg: error processing package linux-image-amd64 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-6.1.0-10-amd64
 linux-image-amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

目录 /boot/firmware 没有问题,完全可以访问

查看raspi-firmware相关的文件

sudo dpkg -S raspi-firmware
raspi-firmware: /usr/share/doc/raspi-firmware/changelog.Debian.gz
raspi-firmware: /usr/lib/raspi-firmware/fixup4.dat
raspi-firmware: /etc/kernel/postinst.d/z50-raspi-firmware
raspi-firmware: /usr/share/doc/raspi-firmware
raspi-firmware: /etc/initramfs/post-update.d/z50-raspi-firmware
raspi-firmware: /usr/share/lintian/overrides/raspi-firmware
raspi-firmware: /usr/lib/raspi-firmware/fixup.dat
raspi-firmware: /usr/share/initramfs-tools/hooks/raspi-firmware-fsck
raspi-firmware: /usr/lib/raspi-firmware
raspi-firmware: /usr/lib/raspi-firmware/fixup_cd.dat
raspi-firmware: /usr/lib/raspi-firmware/start.elf
raspi-firmware: /usr/lib/raspi-firmware/start4db.elf
raspi-firmware: /usr/lib/raspi-firmware/bootcode.bin
raspi-firmware: /usr/lib/raspi-firmware/start_db.elf
raspi-firmware: /etc/kernel/postrm.d/z50-raspi-firmware
raspi-firmware: /usr/lib/raspi-firmware/start4cd.elf
raspi-firmware: /usr/lib/raspi-firmware/fixup_db.dat
raspi-firmware: /usr/lib/raspi-firmware/start4.elf
raspi-firmware: /usr/lib/raspi-firmware/fixup4db.dat
raspi-firmware: /usr/lib/raspi-firmware/start_cd.elf
raspi-firmware: /usr/lib/raspi-firmware/fixup4x.dat
raspi-firmware: /usr/share/doc/raspi-firmware/copyright
raspi-firmware: /etc/default/raspi-firmware
raspi-firmware: /usr/lib/raspi-firmware/start4x.elf
raspi-firmware: /usr/lib/raspi-firmware/fixup_x.dat
raspi-firmware: /usr/lib/raspi-firmware/start_x.elf
raspi-firmware: /usr/lib/raspi-firmware/fixup4cd.dat

卸载raspi-firmware包

sudo dpkg --purge raspi-firmware
(Reading database ... 303517 files and directories currently installed.)
Removing raspi-firmware (1.20220830+ds-1) ...
Purging configuration files for raspi-firmware (1.20220830+ds-1) ...
Processing triggers for initramfs-tools (0.142) ...
update-initramfs: Generating /boot/initrd.img-6.1.0-10-amd64

/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.1.0-10-amd64.
dkms: autoinstall for kernel: 6.1.0-10-amd64.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.1.0-10-amd64
/etc/kernel/postinst.d/zz-update-grub:
Generating grub configuration file ...
Found background image: /usr/share/images/desktop-base/desktop-grub.png
Found linux image: /boot/vmlinuz-6.1.0-10-amd64
Found initrd image: /boot/initrd.img-6.1.0-10-amd64
Found linux image: /boot/vmlinuz-6.1.0-9-amd64
Found initrd image: /boot/initrd.img-6.1.0-9-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
done
Setting up linux-image-amd64 (6.1.37-1) ...

再执行
sudo apt autoremove
就没有报错了

你可能感兴趣的:(Linux,工作环境,笔记本,debian,服务器)