package linux-image-4.13.0-37-generic 4.13.0-37.42 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2

Bug #1755839 reported by Matthew Gann
44
This bug affects 9 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Ran software update, which hung on DKMS processing for linux kernel upgrade

ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: linux-image-4.13.0-37-generic 4.13.0-37.42
ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu3.7
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: gdm 1410 F.... pulseaudio
                      mgann 1799 F.... pulseaudio
Date: Wed Mar 14 10:16:22 2018
ErrorMessage: subprocess installed post-installation script returned error exit status 2
InstallationDate: Installed on 2018-03-09 (4 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20180105.1)
MachineType: ASUSTeK COMPUTER INC. GL703VD
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-36-generic.efi.signed root=UUID=4214ac83-5fc5-473a-a9ea-0f7b7c7a9291 ro quiet splash vt.handoff=7
PulseList: Error: command ['pacmd', 'list'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
Python3Details: /usr/bin/python3.6, Python 3.6.3, python3-minimal, 3.6.3-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.14, python-minimal, 2.7.14-2ubuntu1
RelatedPackageVersions: grub-pc N/A
SourcePackage: linux
Title: package linux-image-4.13.0-37-generic 4.13.0-37.42 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/03/2017
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: GL703VD.304
dmi.board.asset.tag: ATN12345678901234567
dmi.board.name: GL703VD
dmi.board.vendor: ASUSTeK COMPUTER INC.
dmi.board.version: 1.0
dmi.chassis.asset.tag: No Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: ASUSTeK COMPUTER INC.
dmi.chassis.version: 1.0
dmi.modalias: dmi:bvnAmericanMegatrendsInc.:bvrGL703VD.304:bd10/03/2017:svnASUSTeKCOMPUTERINC.:pnGL703VD:pvr1.0:rvnASUSTeKCOMPUTERINC.:rnGL703VD:rvr1.0:cvnASUSTeKCOMPUTERINC.:ct10:cvr1.0:
dmi.product.family: GL
dmi.product.name: GL703VD
dmi.product.version: 1.0
dmi.sys.vendor: ASUSTeK COMPUTER INC.

Revision history for this message
Matthew Gann (mgannprc) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
tags: removed: need-duplicate-check
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

You may need to run the following from a terminal:

sudo apt-get install -f
sudo apt-get clean
sudo apt-get update

Then re-install the package or updates.

If that does not resolve your issue, please mark the bug as "Confirmed"

Changed in linux (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Sledgez (bryan-internalfx) wrote :

Package install was hung for a long time.

---

E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
bmorris@ifx-laptop:~/ownCloud/projects/pageflo$ sudo dpkg --configure -a
Setting up linux-image-4.13.0-37-generic (4.13.0-37.42) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.13.0-37-generic
vmlinuz(/boot/vmlinuz-4.13.0-37-generic
) points to /boot/vmlinuz-4.13.0-37-generic
 (/boot/vmlinuz-4.13.0-37-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.13.0-37-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
^CFailed to process /etc/kernel/postinst.d at /var/lib/dpkg/info/linux-image-4.13.0-37-generic.postinst line 1052.
dpkg: error processing package linux-image-4.13.0-37-generic (--configure):
 subprocess installed post-installation script returned error exit status 2
Setting up linux-headers-4.13.0-37-generic (4.13.0-37.42) ...
Examining /etc/kernel/header_postinst.d.
run-parts: executing /etc/kernel/header_postinst.d/dkms 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
^CFailed to process /etc/kernel/header_postinst.d at /var/lib/dpkg/info/linux-headers-4.13.0-37-generic.postinst line 110.

Revision history for this message
Matthew Gann (mgannprc) wrote :

Killing the main plymouth server process allowed the installation to proceed.

Revision history for this message
Salvador Diaz (salvadordiaz) wrote :

@jsalisbury

sudo apt-get install -f hangs in the same way, so the other commands are impossible to execute.

Revision history for this message
Salvador Diaz (salvadordiaz) wrote :

`sudo apt-get install -f ` hangs so marking this as Confirmed

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Søren Krum (sdkrum) wrote :

Not nice as i am now not able to install anything via apt-get... Maybe the importance should be adjusted.

Revision history for this message
PipeManMusic (pipemanmusic) wrote :

I'm confirming that I am experiencing the same issue and the suggested fix is not fixing it. Still hangs and now I can't install any software.

Revision history for this message
Søren Krum (sdkrum) wrote :

Any workaround to get apt-get going again? My computer renders a kind of useless. I just started to set it up, so most of the software i need is missing...

Revision history for this message
PipeManMusic (pipemanmusic) wrote :

I was able to run "sudo apt-get upgrade -f" to fix the issue. Not sure what changed but this bug is fixed for me.

Revision history for this message
Søren Krum (sdkrum) wrote :

I cannot confirm that for my installation:

$ sudo apt-get upgrade -f
[sudo] password for s:
E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem.
$ sudo dpkg --configure -a
Setting up linux-image-4.13.0-37-generic (4.13.0-37.42) ...
Running depmod.
update-initramfs: deferring update (hook will be called later)
The link /initrd.img is a dangling linkto /boot/initrd.img-4.13.0-37-generic
vmlinuz(/boot/vmlinuz-4.13.0-37-generic
) points to /boot/vmlinuz-4.13.0-37-generic
 (/boot/vmlinuz-4.13.0-37-generic) -- doing nothing at /var/lib/dpkg/info/linux-image-4.13.0-37-generic.postinst line 491.
Examining /etc/kernel/postinst.d.
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-37-generic /boot/vmlinuz-4.13.0-37-generic

there it is hanging now for some half an hour....

Revision history for this message
Violet Feng (violetzijing) wrote :

The hanging issue has been fixed somehow. And I can run update and upgrade. Even reboot is fine.

Revision history for this message
Søren Krum (sdkrum) wrote :

Negative for me... still hanging...

Revision history for this message
Minjun (xi-minjun) wrote :

I meet the exactly the same problem.

The most frustrating thing is that event uninstalling this package will trigger the "postinst" action, and it will keeps running "dkms blah blah " and hangs.

The "apt remove" command doesn't help to me.

Revision history for this message
Søren Krum (sdkrum) wrote :

Seems to be fixed now, ie after i run

$ sudo dpkg --configure -a

everything seems to fall in place again. Found even a newer kernel (38) and installed it.

So, from my side this case can be closed.

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.