desktop-packages team mailing list archive
-
desktop-packages team
-
Mailing list archive
-
Message #89617
[Bug 1401591] Re: package nvidia-331 331.113-0ubuntu0.1 failed to install/upgrade: subprocess installed post-removal script returned error exit status 8
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 Desktop
Packages, which is subscribed to nvidia-graphics-drivers-331 in 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
Status in nvidia-graphics-drivers-331 package in Ubuntu:
Confirmed
Bug description:
I switched to the Nvidia driver not long before I updated the OS to
the latest version.
ProblemType: Package
DistroRelease: Ubuntu 14.10
Package: nvidia-331 331.113-0ubuntu0.1
ProcVersionSignature: Ubuntu 3.16.0-26.35-generic 3.16.7-ckt1
Uname: Linux 3.16.0-26-generic x86_64
ApportVersion: 2.14.7-0ubuntu8
Architecture: amd64
Date: Wed Dec 10 20:45:45 2014
DuplicateSignature: package:nvidia-331:331.113-0ubuntu0.1:subprocess installed post-removal script returned error exit status 8
ErrorMessage: subprocess installed post-removal script returned error exit status 8
InstallationDate: Installed on 2014-12-05 (6 days ago)
InstallationMedia: Ubuntu 14.04.1 LTS "Trusty Tahr" - Release amd64 (20140722.2)
SourcePackage: nvidia-graphics-drivers-331
Title: package nvidia-331 331.113-0ubuntu0.1 failed to install/upgrade: subprocess installed post-removal script returned error exit status 8
UpgradeStatus: Upgraded to utopic on 2014-12-11 (0 days ago)
modified.conffile..etc.modprobe.d.nvidia.331.hybrid.conf: [deleted]
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-331/+bug/1401591/+subscriptions
References