首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >错误:错误:错误版本未被命名

错误:错误:错误版本未被命名
EN

Unix & Linux用户
提问于 2017-05-18 08:10:46
回答 2查看 10K关注 0票数 0

我得到以下错误:

代码语言:javascript
复制
$ 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安装(或重新安装)任何软件包。有人知道解决这个问题的办法吗?

EN

回答 2

Unix & Linux用户

发布于 2019-09-22 10:30:56

我在这个问题中通过这个答案找到了解决这个问题的方法:“升级”报告错误“dist:坏版本传递uname”和各种警告“

您需要删除所有内容,这不是以uname -r报表的形式从/var/lib/initramfs-tools下删除的。

票数 2
EN

Unix & Linux用户

发布于 2017-06-16 11:39:05

我也有同样的错误,只是降低了linux-firmware包的等级

代码语言:javascript
复制
    sudo apt install linux-firmware=1.157
    sudo apt-mark hold linux-firmware

在此包的任何更新版本- Bad version passed uname

票数 0
EN
页面原文内容由Unix & Linux提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://unix.stackexchange.com/questions/365806

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档