apt --fix-broken install
or with
sudo apt install --reinstall linux-image-5.15.0-72-generic
and in both I got the same error with linux-image-5.15.0-72-generic
Code: Select all
sudo apt upgrade
Reading list of packages... Done
Creating dependency tree... Done
Reading status information... Done
Calculating update... Done
The packages listed below were installed automatically and are no longer needed.
innoextract libboost-program-options1.74.0 python3-usb
Use "sudo apt autoremove" to remove them.
0 upgraded, 0 new will be installed, 0 to remove and 0 not upgraded.
1 not installed at all or removed.
0 B of additional disk space will be used after this operation.
Do you want to continue? [Y/n] y
Configuring linux-image-5.15.0-72-generic (5.15.0-72.79) ...
Processing triggers for linux-image-5.15.0-72-generic (5.15.0-72.79) ...
/etc/kernel/postinst.d/dkms:
run-parts: failed to exec /etc/kernel/postinst.d/dkms: No such file or directory
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
dpkg: error processing linux-image-5.15.0-72-generic package (--configure):
the installed subprocess linux-image-5.15.0-72-generic package post-insta script
llation returned the error exit code 1
Errors were encountered while processing:
linux-image-5.15.0-72-generic