Crash in systemd service "nvidia-persistenced" because of deletion of "nvidia-persistenced" user profile on old package "nvidia-compute-utils" purge
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
nvidia-graphics-drivers-545 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Problem summary:
----------------
Every time I upgraded nvidia drivers from version XXX to YYY there is a crash in systemd service "nvidia-
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-
- After "nvidia-driver-545" was installed there is a warning on every apt upgrade because it detects packages uninstalled with remaining configuration files, "nvidia-
The problem is caused because of this automation in "nvidia-
- On install, "postinst" script creates the user and group for "nvidia-
- On remove or purge, "postrm" script deletes the "nvidia-
So, when upgraded driver from 535 to 545:
- Package "nvidia-
- Package "nvidia-
- When old "nvidia-
Possible solution:
------------------
Remove deletion of that user profile in "nvidia-
...
case "$1" in
remove|purge)
# Remove the nvidia-persistenced user
...