我得到以下错误:
$ 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安装(或重新安装)任何软件包。有人知道解决这个问题的办法吗?
发布于 2019-09-22 10:30:56
我在这个问题中通过这个答案找到了解决这个问题的方法:“升级”报告错误“dist:坏版本传递uname”和各种警告“:
您需要删除所有内容,这不是以uname -r报表的形式从/var/lib/initramfs-tools下删除的。
发布于 2017-06-16 11:39:05
我也有同样的错误,只是降低了linux-firmware包的等级
sudo apt install linux-firmware=1.157
sudo apt-mark hold linux-firmware在此包的任何更新版本- Bad version passed uname上
https://unix.stackexchange.com/questions/365806
复制相似问题