Public bug reported: Problem summary: ---------------- Every time I upgraded nvidia drivers from version XXX to YYY there is a crash in systemd service "nvidia-persistenced" because of deletion of "nvidia-persistenced" user profile after old package "nvidia-compute-utils-XXX" is purged.
Example of the problem: ----------------------- - Current driver installed: "nvidia-driver-535" - Upgrade to "nvidia-driver-545" - The upgrade will remove previous "nvidia-driver-535" related packages but some of them are not purged. One of these non purged packages is "nvidia-compute-utils-535". - After "nvidia-driver-545" was installed there is a warning on every apt upgrade because it detects packages uninstalled with remaining configuration files, "nvidia-compute-utils-535" package among them, and if you purge that package (something you should do sooner or later) the user profile "nvidia-persistenced" is deleted and systemd service "nvidia-persistenced" will crash in next boot until that profile is created again. The problem is caused because of this automation in "nvidia-compute-utils" .deb package: - On install, "postinst" script creates the user and group for "nvidia-persistenced". - On remove or purge, "postrm" script deletes the "nvidia-persistenced" user. So, when upgraded driver from 535 to 545: - Package "nvidia-compute-utils-535" is removed but not purged. (user "nvidia-persistenced" is deleted, OK) - Package "nvidia-compute-utils-545" is installed. (user "nvidia-persistenced" is created, OK) - When old "nvidia-compute-utils-535" package is purged it deletes "nvidia-persistenced" user profile despite the fact that a newer version of the package is installed and that user is needed. Possible solution: ------------------ Remove deletion of that user profile in "nvidia-compute-utils" package "postrm" file when "purge" is executed, leaving it only for "remove" in this sentence: ... case "$1" in remove|purge) # Remove the nvidia-persistenced user ... ** Affects: nvidia-graphics-drivers-545 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to nvidia-graphics-drivers-545 in Ubuntu. https://bugs.launchpad.net/bugs/2054784 Title: Crash in systemd service "nvidia-persistenced" because of deletion of "nvidia-persistenced" user profile on old package "nvidia-compute- utils" purge Status in nvidia-graphics-drivers-545 package in Ubuntu: New Bug description: Problem summary: ---------------- Every time I upgraded nvidia drivers from version XXX to YYY there is a crash in systemd service "nvidia-persistenced" because of deletion of "nvidia-persistenced" user profile after old package "nvidia-compute-utils-XXX" is purged. Example of the problem: ----------------------- - Current driver installed: "nvidia-driver-535" - Upgrade to "nvidia-driver-545" - The upgrade will remove previous "nvidia-driver-535" related packages but some of them are not purged. One of these non purged packages is "nvidia-compute-utils-535". - After "nvidia-driver-545" was installed there is a warning on every apt upgrade because it detects packages uninstalled with remaining configuration files, "nvidia-compute-utils-535" package among them, and if you purge that package (something you should do sooner or later) the user profile "nvidia-persistenced" is deleted and systemd service "nvidia-persistenced" will crash in next boot until that profile is created again. The problem is caused because of this automation in "nvidia-compute-utils" .deb package: - On install, "postinst" script creates the user and group for "nvidia-persistenced". - On remove or purge, "postrm" script deletes the "nvidia-persistenced" user. So, when upgraded driver from 535 to 545: - Package "nvidia-compute-utils-535" is removed but not purged. (user "nvidia-persistenced" is deleted, OK) - Package "nvidia-compute-utils-545" is installed. (user "nvidia-persistenced" is created, OK) - When old "nvidia-compute-utils-535" package is purged it deletes "nvidia-persistenced" user profile despite the fact that a newer version of the package is installed and that user is needed. Possible solution: ------------------ Remove deletion of that user profile in "nvidia-compute-utils" package "postrm" file when "purge" is executed, leaving it only for "remove" in this sentence: ... case "$1" in remove|purge) # Remove the nvidia-persistenced user ... To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-545/+bug/2054784/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp