다음 오류가 발생합니다.
$ sudo dpkg --configure -a
Setting up initramfs-tools (0.122ubuntu8. 8) ...
update-initramfs: deferring update (trigger activated)
Setting up linux-firmware (1.157.10) ...
update-initramfs: Generating /boot/initrd.img-uname
WARNING: missing /lib/modules/uname
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: Bad version passed uname
dpkg: warning: version 'uname' has bad syntax: version number does not start with digit
depmod: ERROR: Bad version passed uname
E: No boot partition found !
run-parts: /etc/initramfs/post-update.d//zz-flash-touch-initrd exited with return code 1
dpkg: error processing package linux-firmware (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-generic-hwe-16.04:
linux-image-generic-hwe-16.04 depends on linux-firmware; however:
Package linux-firmware is not configured yet.
dpkg: error processing package linux-image-generic-hwe-16.04 (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic-hwe-16.04:
linux-generic-hwe-16.04 depends on linux-image-generic-hwe-16.04 (= 4.8.0.52.23); however:
Package linux-image-generic-hwe-16.04 is not configured yet.
dpkg: error processing package linux-generic-hwe-16.04 (--configure):
dependency problems - leaving unconfigured
Processing triggers for initramfs-tools (0.122ubuntu8.8) ...
update-initramfs: Generating /boot/initrd.img-uname
WARNING: missing /lib/modules/uname
Ensure all necessary drivers are built into the linux image!
depmod: ERROR: Bad version passed uname
dpkg: warning: version 'uname' has bad syntax: version number does not start with digit
depmod: ERROR: Bad version passed uname
E: No boot partition found !
run-parts: /etc/initramfs/post-update.d//zz-flash-touch-initrd exited with return code 1
dpkg: error processing package initramfs-tools (--configure):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
linux-firmware
linux-image-generic-hwe-16.04
linux-generic-hwe-16.04
initramfs-tools
uname
이는 전달되는 대신 uname -r
응용 프로그램이 내 시스템에 대한 올바른 커널 버전을 알 수 없게 만드는 것 같습니다 . 아니면 뭔가 다른 것일지도 모르겠지만...
현재 sudo apt를 통해 패키지를 설치(또는 재설치)할 수 없습니다. 이 문제에 대한 해결책을 아는 사람이 있나요?
답변1
나는 내 문제에 대한 해결책을 찾았습니다.이 답변이 질문에서:"apt-get dist-upgrade"는 "depmod: 오류: 잘못된 버전이 uname을 전달했습니다" 오류와 다양한 경고를 보고합니다.:
uname -r
아래의 양식 보고서에 없는 모든 항목을 삭제해야 합니다 /var/lib/initramfs-tools
.
답변2
같은 오류가 발생하여 linux-firmware
패키지를 다운그레이드했습니다.
sudo apt install linux-firmware=1.157
sudo apt-mark hold linux-firmware
이 패키지의 최신 버전에서 -Bad version passed uname