Linux-Kernel
dpkg: 錯誤處理包 linux-image-amd64 (–configure): 依賴問題 - 未配置
sudo apt autoremove Reading package lists... Done Building dependency tree... Done Reading state information... Done 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. 3 not fully installed or removed. After this operation, 0 B of additional disk space will be used. Setting up initramfs-tools (0.142) ... update-initramfs: deferring update (trigger activated) Setting up linux-image-5.18.0-kali5-amd64 (5.18.5-1kali6) ... /etc/kernel/postinst.d/initramfs-tools: update-initramfs: Generating /boot/initrd.img-5.18.0-kali5-amd64 W: Possible missing firmware /lib/firmware/i915/skl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/bxt_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/glk_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/cml_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/icl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/dg1_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/adlp_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/adlp_dmc_ver2_14.bin for module i915 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-5.18.0-kali5-amd64 (--configure): installed linux-image-5.18.0-kali5-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-5.18.0-kali5-amd64 (= 5.18.5-1kali6); however: Package linux-image-5.18.0-kali5-amd64 is not configured yet. dpkg: error processing package linux-image-amd64 (--configure): dependency problems - leaving unconfigured Processing triggers for initramfs-tools (0.142) ... update-initramfs: Generating /boot/initrd.img-5.18.0-kali5-amd64 W: Possible missing firmware /lib/firmware/i915/skl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/bxt_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/glk_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/kbl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/cml_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/icl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/ehl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/dg1_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/tgl_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/adlp_guc_69.0.3.bin for module i915 W: Possible missing firmware /lib/firmware/i915/adlp_dmc_ver2_14.bin for module i915 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 dpkg: error processing package initramfs-tools (--configure): installed initramfs-tools package post-installation script subprocess returned error exit status 1 Errors were encountered while processing: linux-image-5.18.0-kali5-amd64 linux-image-amd64 initramfs-tools E: Sub-process /usr/bin/dpkg returned an error code (1)
由於您沒有使用 Raspberry Pi,因此您不需要該
raspi-firmware
軟體包;這就是導致錯誤的原因。跑sudo apt purge raspi-firmware
您需要清除軟體包,而不僅僅是刪除它,以確保各種
z50-raspi-firmware
腳本也被刪除。