package linux-image-extra-4.13.0-17-generic 4.13.0-17.20 failed to install/upgrade: il sottoprocesso installato script di post-removal ha restituito lo stato di errore 1

Bug #1731060 reported by Rinaldo
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Low
Unassigned

Bug Description

The uninstall process run forever with this last line as output:

run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-17-generic /boot/vmlinuz-4.13.0-17-generic

ProblemType: Package
DistroRelease: Ubuntu 17.10
Package: linux-image-extra-4.13.0-17-generic 4.13.0-17.20
ProcVersionSignature: Ubuntu 4.13.0-16.19-generic 4.13.4
Uname: Linux 4.13.0-16-generic x86_64
NonfreeKernelModules: nvidia_uvm nvidia_drm nvidia_modeset nvidia
ApportVersion: 2.20.7-0ubuntu3.1
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: gdm 1521 F.... pulseaudio
                      casa 2790 F.... pulseaudio
 /dev/snd/controlC0: gdm 1521 F.... pulseaudio
                      casa 2790 F.... pulseaudio
Date: Wed Nov 8 23:03:53 2017
ErrorMessage: il sottoprocesso installato script di post-removal ha restituito lo stato di errore 1
HibernationDevice: RESUME=UUID=b1a7755c-92df-48fe-92d2-66de15fbb008
InstallationDate: Installed on 2015-10-23 (747 days ago)
InstallationMedia: Ubuntu 15.10 "Wily Werewolf" - Release amd64 (20151021)
MachineType: LENOVO 20ANCTO1WW
ProcFB: 0 inteldrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-16-generic root=UUID=942dc08f-9465-4002-8ffb-c1fbe03f7a04 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 2.02~beta3-4ubuntu7
SourcePackage: linux
Title: package linux-image-extra-4.13.0-17-generic 4.13.0-17.20 failed to install/upgrade: il sottoprocesso installato script di post-removal ha restituito lo stato di errore 1
UpgradeStatus: Upgraded to artful on 2017-10-21 (18 days ago)
dmi.bios.date: 07/23/2015
dmi.bios.vendor: LENOVO
dmi.bios.version: GLET80WW (2.34 )
dmi.board.asset.tag: Not Available
dmi.board.name: 20ANCTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0E50510 WIN
dmi.chassis.asset.tag: No Asset Information
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.version: Not Available
dmi.modalias: dmi:bvnLENOVO:bvrGLET80WW(2.34):bd07/23/2015:svnLENOVO:pn20ANCTO1WW:pvrThinkPadT440p:rvnLENOVO:rn20ANCTO1WW:rvrSDK0E50510WIN:cvnLENOVO:ct10:cvrNotAvailable:
dmi.product.family: ThinkPad T440p
dmi.product.name: 20ANCTO1WW
dmi.product.version: ThinkPad T440p
dmi.sys.vendor: LENOVO

Revision history for this message
Rinaldo (claudio-rinaldini) 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
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 → Low
status: Confirmed → Incomplete
Revision history for this message
A. R. (aroman-a) wrote :

I have the same problem, while doing a regular upgrade the process freezes while running dkms on the linux-headers-4.13.0-17 and linux-image-extra-4.13.0-17-generic.

uname: Linux mywks 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:35:14 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

After killing the dkms processes, I did sudo apt-get install -f (as suggested) which also froze:

$ sudo apt-get install -f
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  linux-headers-4.13.0-17 thermald
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  linux-image-extra-4.13.0-17-generic
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
3 not fully installed or removed.
After this operation, 163 MB disk space will be freed.
Do you want to continue? [Y/n]
(Reading database ... 181870 files and directories currently installed.)
Removing linux-image-extra-4.13.0-17-generic (4.13.0-17.20) ...
run-parts: executing /etc/kernel/postinst.d/apt-auto-removal 4.13.0-17-generic /boot/vmlinuz-4.13.0-17-generic
run-parts: executing /etc/kernel/postinst.d/dkms 4.13.0-17-generic /boot/vmlinuz-4.13.0-17-generic

(it freezes here).

Revision history for this message
A. R. (aroman-a) wrote :

I somehow traced it to a
   plymouth --ping
never returning. That command is invoked in /lib/lsb/init-functions.d/99-plymouth
I killed the plymouthd daemon and the upgrade script finished normally.

Revision history for this message
A. R. (aroman-a) wrote :

I think this is the same problem as the one reported in Bug #1705345
https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/1705345

Revision history for this message
Abdallah Abedraba (aabedraba) wrote :

I had this problem using
    sudo apt-get upgrade

apparently, with Nvidia's card activated, the problem persists even if you re-configure dpkg.
The solution was to change to Intel's card, perhaps with sudo prime-select intel.
Worked for me :)

Revision history for this message
Vladislav (urbanek-3) wrote :

Comment #5 worked for me. Thank you aroman-a, You saved me hours!

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
Revision history for this message
Minjun (xi-minjun) wrote :

I meet the same issue when upgrading from 17.04 to 17.10.
The kernel version "4.13.0-16-generic" works, but when it's trying updating to "4.13.0.-37-generic", it hangs at the dkms script.

The Comment #5 doesn't work for me. When I am trying to uninstall the 4.13.0-37-related packages, the "apt"/"dpkg" process still hangs at the exact same postion.

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.