dpkg: 패키지 linux-image-amd64(--configure) 처리 중 오류 발생: 종속성 문제 - 구성되지 않음

dpkg: 패키지 linux-image-amd64(--configure) 처리 중 오류 발생: 종속성 문제 - 구성되지 않음

HP 노트북을 사용하고 있는데 다음 메시지가 표시됩니다.

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)

답변1

Raspberry Pi를 사용하지 않기 때문에 해당 패키지가 필요하지 않습니다 raspi-firmware. 이것이 오류의 원인입니다. 달리기

sudo rm /etc/kernel/postinst.d/z50-raspi-firmware
sudo apt purge raspi-firmware

당신은해야합니다분명한패키지를 제거하는 대신 다양한 z50-raspi-firmware스크립트도 제거되었는지 확인하세요. postinst 스크립트는 다음과 같은 이유로 별도로 제거해야 합니다.Raspberry Pi가 아닌 시스템에서는 충돌이 발생합니다..

답변2

명령을 내리다

sudo mv /etc/initramfs/post-update.d/z50-raspi-firmware

이렇게 하면 Z50 펌웨어가 홈 디렉터리로 이동되어 업그레이드를 시도할 때마다 실행되지 않습니다.

혹시라도 문제가 생길 경우를 대비해 백업을 보관하기 위해 홈 디렉토리로 옮겼습니다.

답변3

라이브 CD에서 debian-12를 설치할 때 비슷한 오류가 발생했습니다. apt upgrade해결 방법은 다음과 같습니다:

$ sudo dpkg -P raspi-firmware
$ sudo apt-get dist-upgrade
$ sudo apt-get update && sudo apt-get upgrade

답변4

블로그 게시물에 따르면:https://itsfoss.com/dpkg-returned-an-error-code-1/이 문제에 대한 해결책은트러블패키지 게시글 정보파일 삭제언급된 대로 3개의 패키지를 사용하고 있기 때문에 설치 오류가 발생합니다.섹션을 처리하는 동안 오류가 발생했습니다.다음을 수행하여:

sudo mv /var/lib/dpkg/info/<packge name>.* /tmp

관련 정보