package linux-image-extra-4.8.0-56-generic 4.8.0-56.61~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1

Bug #1703568 reported by mmesh
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
dkms (Ubuntu)
New
Undecided
Unassigned

Bug Description

I wanted to reconfigure console using dpkg-reconfigure console-setup after which I started getting errors like this:
"
Removing linux-image-extra-4.8.0-56-generic (4.8.0-56.61~16.04.1) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.8.0-56-generic /boot/vmlinuz-4.8.0-56-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.8.0-56-generic /boot/vmlinuz-4.8.0-56-generic
/usr/lib/dkms/dkms_autoinstaller:27: parse error near `}'
run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
"
I also got this parsing error on /var/lib/dpkg/info/console-setup.config file

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: linux-image-extra-4.8.0-56-generic 4.8.0-56.61~16.04.1
ProcVersionSignature: Ubuntu 4.8.0-58.63~16.04.1-generic 4.8.17
Uname: Linux 4.8.0-58-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.9
AptOrdering:
 linux-image-extra-4.8.0-56-generic: Purge
 initramfs-tools: Configure
 console-setup: Configure
 NULL: ConfigurePending
Architecture: amd64
Date: Tue Jul 11 11:28:06 2017
ErrorMessage: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
InstallationDate: Installed on 2017-03-02 (130 days ago)
InstallationMedia: Ubuntu 16.04.2 LTS "Xenial Xerus" - Release amd64 (20170215.2)
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.2
 apt 1.2.20
SourcePackage: dkms
Title: package linux-image-extra-4.8.0-56-generic 4.8.0-56.61~16.04.1 failed to install/upgrade: run-parts: /etc/kernel/postinst.d/dkms exited with return code 1
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
mmesh (misel-mesnjak) wrote :
tags: removed: need-duplicate-check
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.