subprocess installed post-installation script returned error

When installing software on Ubuntu, i get following error.

It is likely that 4.5.2-armada375 belongs to a chroot's host
Building only for 4.9.58-armada375
Building initial module for 4.9.58-armada375
Error! Bad return status for module build on kernel: 4.9.58-armada375 (armv7l)
Consult /var/lib/dkms/spl/0.6.5.6/build/make.log for more information.
dpkg: error processing package spl-dkms (--configure):
 subprocess installed post-installation script returned error exit status 10
Setting up dh-python (2.20151103ubuntu1) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Errors were encountered while processing:
 spl-dkms
E: Sub-process /usr/bin/dpkg returned an error code (1)

To fix this, run

rm /var/lib/dpkg/info/PACKAGE_NAME_HERE.*
dpkg --configure -a
apt update

Replace PACKAGE_NAME_HERE with actual package that fail. In this cause spl-dkms.

root@ns539260:/var/lib/dpkg/info# ls -l | grep spl
-rw-r--r-- 1 root root   11811 Nov 22 07:41 spl-dkms.list
-rw-r--r-- 1 root root   19548 Apr  7  2016 spl-dkms.md5sums
-rwxr-xr-x 1 root root     891 Apr  7  2016 spl-dkms.postinst
-rwxr-xr-x 1 root root     312 Apr  7  2016 spl-dkms.prerm
root@ns539260:/var/lib/dpkg/info# rm spl-dkms.*

See apt

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *