ubuntu Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear 等错误处理

报错 asg_xdroid 等

近期不知道安装一些软件后,再安装时报错:

 * dkms: running auto installation service for kernel 6.8.0-31-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/ashmem_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/binder_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
dkms autoinstall on 6.8.0-31-generic/x86_64 failed for asg_xdroid(8) ashmem_xdroid(8) binder_xdroid(8)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-31-generic
   ...fail!

尝试通过更换内核方式解决,更换成低版本linux-headers-6.8.0-31-generic 后问题依旧

$ sudo apt-get autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 8 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 linux-image-6.8.0-48-generic (6.8.0-48.48) ...
I: /boot/initrd.img.old is now a symlink to initrd.img-6.8.0-48-generic
正在设置 linux-headers-6.8.0-48-generic (6.8.0-48.48) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-48-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/ashmem_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/binder_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
dkms autoinstall on 6.8.0-48-generic/x86_64 succeeded for asg_xdroid
dkms autoinstall on 6.8.0-48-generic/x86_64 failed for ashmem_xdroid(8) binder_xdroid(8)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-48-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: 处理软件包 linux-headers-6.8.0-48-generic (--configure)时出错:
 已安装 linux-headers-6.8.0-48-generic 软件包 post-installation 脚本 子进程返回错误状态 11
dpkg: 依赖关系问题使得 linux-headers-generic 的配置工作不能继续:
 linux-headers-generic 依赖于 linux-headers-6.8.0-48-generic;然而:
  软件包 linux-headers-6.8.0-48-generic 尚未配置。

dpkg: 处理软件包 linux-headers-generic (--configure)时出错:
 依赖关系问题 - 仍未被配置
正在设置 linux-headers-6.8.0-31-generic (6.8.0-31.31) ...
因为错误消息指示这是由于上一个问题导致的错误,没有写入 apport 报告。
                                                                    /etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-31-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/ashmem_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/binder_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
dkms autoinstall on 6.8.0-31-generic/x86_64 failed for asg_xdroid(8) ashmem_xdroid(8) binder_xdroid(8)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-31-generic
   ...fail!
run-parts: /etc/kernel/header_postinst.d/dkms exited with return code 11
dpkg: 处理软件包 linux-headers-6.8.0-31-generic (--configure)时出错:
 已安装 linux-headers-6.8.0-31-generic 软件包 post-installation 脚本 子进程返回错误状态 11
正在设置 linux-image-6.8.0-31-generic (6.8.0-31.31) ...
I: /boot/initrd.img is now a symlink to initrd.img-6.8.0-31-generic
dpkg: 依赖关系问题使得 linux-headers-generic-hwe-24.04 的配置工作不能继续:
 linux-headers-generic-hwe-24.04 依赖于 linux-headers-6.8.0-31-generic;然而:
  软件包 linux-headers-6.8.0-31-generic 尚未配置。

dpkg: 处理软件包 linux-headers-generic-hwe-24.04 (--configure)时出错:
 依赖关系问题 - 仍未被配置
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                                                                        dpkg: 依赖关系问题使得 linux-generic 的配置工作不能继续:
 linux-generic 依赖于 linux-headers-generic (= 6.8.0-48.48);然而:
  软件包 linux-headers-generic 尚未配置。

dpkg: 处理软件包 linux-generic (--configure)时出错:
 依赖关系问题 - 仍未被配置
dpkg: 依赖关系问题使得 linux-generic-hwe-24.04 的配置工作不能继续:
 linux-generic-hwe-24.04 依赖于 linux-headers-generic-hwe-24.04 (= 6.8.0-31.31);然而:
  软件包 linux-headers-generic-hwe-24.04 尚未配置。

dpkg: 处理软件包 linux-generic-hwe-24.04 (--configure)时出错:
 依赖关系问题 - 仍未被配置
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    正在处理用于 linux-image-6.8.0-48-generic (6.8.0-48.48) 的触发器 ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-48-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/ashmem_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/binder_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
dkms autoinstall on 6.8.0-48-generic/x86_64 succeeded for asg_xdroid
dkms autoinstall on 6.8.0-48-generic/x86_64 failed for ashmem_xdroid(8) binder_xdroid(8)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-48-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: 处理软件包 linux-image-6.8.0-48-generic (--configure)时出错:
 已安装 linux-image-6.8.0-48-generic 软件包 post-installation 脚本 子进程返回错误状态 11
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    正在处理用于 linux-image-6.8.0-31-generic (6.8.0-31.31) 的触发器 ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.8.0-31-generic
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/asg_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/ashmem_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
Sign command: /usr/bin/kmodsign
Binary update-secureboot-policy not found, modules won't be signed
Error! The directory /var/lib/dkms/binder_xdroid/2.0/source does not appear to have module source located within it.
Build halted.
dkms autoinstall on 6.8.0-31-generic/x86_64 failed for asg_xdroid(8) ashmem_xdroid(8) binder_xdroid(8)
Error! One or more modules failed to install during autoinstall.
Refer to previous errors for more information.
 * dkms: autoinstall for kernel 6.8.0-31-generic
   ...fail!
run-parts: /etc/kernel/postinst.d/dkms exited with return code 11
dpkg: 处理软件包 linux-image-6.8.0-31-generic (--configure)时出错:
 已安装 linux-image-6.8.0-31-generic 软件包 post-installation 脚本 子进程返回错误状态 11
由于已经达到 MaxReports 限制,没有写入 apport 报告。
                                                    在处理时有错误发生:
 linux-headers-6.8.0-48-generic
 linux-headers-generic
 linux-headers-6.8.0-31-generic
 linux-headers-generic-hwe-24.04
 linux-generic
 linux-generic-hwe-24.04
 linux-image-6.8.0-48-generic
 linux-image-6.8.0-31-generic
E: Sub-process /usr/bin/dpkg returned an error code (1)

解决方法步骤如下

$ sudo apt-get autoclean
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
$ sudo mv /var/lib/dpkg/info /var/lib/dpkg/info_old
$ sudo apt-get clean
$ sudo apt-get update
命中:1 http://archive.ubuntu.com/ubuntu noble InRelease
正在读取软件包列表... 完成
$ 

之后再执行,报错没了(再次安装程序,第一次时间会久一点,会重新填充info目录):

$ sudo apt-get autoremove
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成                 
升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 0 个软件包未被升级。
有 8 个软件包没有被完全安装或卸载。
解压缩后会消耗 0 B 的额外空间。
正在设置 linux-image-6.8.0-48-generic (6.8.0-48.48) ...
正在设置 linux-headers-6.8.0-48-generic (6.8.0-48.48) ...
正在设置 linux-headers-generic (6.8.0-48.48) ...
正在设置 linux-headers-6.8.0-31-generic (6.8.0-31.31) ...
正在设置 linux-image-6.8.0-31-generic (6.8.0-31.31) ...
正在设置 linux-headers-generic-hwe-24.04 (6.8.0-31.31) ...
正在设置 linux-generic (6.8.0-48.48) ...
正在设置 linux-generic-hwe-24.04 (6.8.0-31.31) ...
$ 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值