自从我切换到 6.5.0-26-generic 版本后,我就无法再启动了。每次我都必须切换回 6.5.0-25-generic,我想修复那里的问题,但正如你们亲眼所见,似乎什么都行不通。无论是升级 Linux 头文件、更新 Anbox 模块、删除还是重新安装,都不起作用。因此,我无法再安装任何软件包,不幸的是,我的系统上只有几个月的 Linux(Kubuntu)。一个朋友向我推荐了它,现在我在这里,做不了什么,感觉我的知识有些枯竭了。
$ sudo apt-get upgrade -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
4 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up linux-headers-6.5.0-26-generic (6.5.0-26.26) ...
/etc/kernel/header_postinst.d/dkms:
* dkms: running auto installation service for kernel 6.5.0-26-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.5.0-26-generic all KERNEL_SRC=/lib/modules/6.5.0-26-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-binder: 1 not found
Error! Bad return status for module build on kernel: 6.5.0-26-generic (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
dkms autoinstall on 6.5.0-26-generic/x86_64 succeeded for anbox-ashmem
dkms autoinstall on 6.5.0-26-generic/x86_64 failed for anbox-binder(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.5.0-26-generic
...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: error processing package linux-headers-6.5.0-26-generic (--configure):
installed linux-headers-6.5.0-26-generic package post-installation script subprocess returned error exit status 1
Setting up linux-image-6.5.0-26-generic (6.5.0-26.26) ...
dpkg: dependency problems prevent configuration of linux-headers-generic:
linux-headers-generic depends on linux-headers-6.5.0-26-generic; however:
Package linux-headers-6.5.0-26-generic is not configured yet.
dpkg: error processing package linux-headers-generic (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-generic:
linux-generic depends on linux-headers-generic (= 6.5.0.26.26); however:
Package linux-headers-generic is not configured yet.
dpkg: error processing package linux-generic (--configure):
dependency problems - leaving unconfigured
No apport report written because the error message indicates its a followup error from a previous failure.
No apport report written because the error message indicates its a followup error from a previous failure.
Processing triggers for linux-image-6.5.0-26-generic (6.5.0-26.26) ...
/etc/kernel/postinst.d/dkms:
* dkms: running auto installation service for kernel 6.5.0-26-generic
Sign command: /usr/bin/kmodsign
Signing key: /var/lib/shim-signed/mok/MOK.priv
Public certificate (MOK): /var/lib/shim-signed/mok/MOK.der
Building module:
Cleaning build area...
make -j16 KERNELRELEASE=6.5.0-26-generic all KERNEL_SRC=/lib/modules/6.5.0-26-generic/build...(bad exit status: 2)
ERROR (dkms apport): binary package for anbox-binder: 1 not found
Error! Bad return status for module build on kernel: 6.5.0-26-generic (x86_64)
Consult /var/lib/dkms/anbox-binder/1/build/make.log for more information.
dkms autoinstall on 6.5.0-26-generic/x86_64 succeeded for anbox-ashmem
dkms autoinstall on 6.5.0-26-generic/x86_64 failed for anbox-binder(10)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
* dkms: autoinstall for kernel 6.5.0-26-generic
...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: error processing package linux-image-6.5.0-26-generic (--configure):
installed linux-image-6.5.0-26-generic package post-installation script subprocess returned error exit status 1
No apport report written because MaxReports is reached already
Errors were encountered while processing:
linux-headers-6.5.0-26-generic
linux-headers-generic
linux-generic
linux-image-6.5.0-26-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)
在启动时我得到了这个:
答案1
问题已解决。这是 Anbox 的问题,它在卸载过程中不知何故“崩溃”了 DKMS 文件夹。删除目录 /var/lib/dkms 中的两个 Anbox 文件夹后,我能够重新安装 DKMS,并且没有任何错误。