On my machine (Ubuntu 14.10), dpkg's output at the end goes a bit differently:
DEBUG:Parsing /usr/share/ubuntu-drivers-common/quirks/put_your_quirks_here stop: Unknown job: nvidia-persistenced userdel: user nvidia-persistenced is currently used by process 2035 dpkg: error processing package nvidia-331 (--remove): subprocess installed post-removal script returned error exit status 8 Processing triggers for libc-bin (2.19-10ubuntu2.1) ... Processing triggers for man-db (2.7.0.2-2) ... Errors were encountered while processing: nvidia-331 Log ended: 2014-12-17 22:12:31 The difference from OP is the "stop: Unknown job: nvidia-persistenced" line. My machine has no such job nvidia-persistenced, but it does have a user and a process running by that name. (OP's log shows "stop: Unknown instance: ", which indicates there was a job by that name, but it wasn't currently running.) The issue appears to be because of this part in nvidia-331's postrm: # Remove the nvidia-persistenced user if id "$NVPD_USER" > /dev/null 2>&1; then stop nvidia-persistenced || true userdel "$NVPD_USER" fi On my machine, there is no such job "nvidia-persistenced". It fails to stop that job and continues, but my machine does have a nvidia- persistenced process running, so the following userdel line fails and causes the package uninstallation to abort. The correct way to stop nvidia-persistenced appears to be "/usr/bin/stop-nvidia-persistenced", but that file is already removed by the time that nvidia-331's postrm is run. The "stop nvidia-persistenced || true" line should be removed, and "/usr/bin/stop-nvidia-persistenced" should be added to prerm's remove) section. I just tested that on my local machine and saw that change makes removing the package work correctly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1401591 Title: package nvidia-331 331.113-0ubuntu0.1 failed to install/upgrade: subprocess installed post-removal script returned error exit status 8 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331/+bug/1401591/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs