Bug#798732: nvidia-installer-cleanup: stagnant when try install nvidia-legacy-304xx-driver

Antoine DG adg at crans.org
Sun Dec 15 11:37:15 GMT 2019


Dear Maintainers,

nvidia-installer --uninstall invocation in 
nvidia-installer-cleanup.postinst
script tries to interact with the user by means of printf/scanf.
This hangs the postinstall script. We need to invoke nvidia-installer
with zero user interaction.

please find enclosed my suggestion to fix the issue:

diff --git a/debian/nvidia-installer-cleanup.postinst 
b/debian/nvidia-installer-cleanup.postinst
index 6bbb992..6f92081 100644
--- a/debian/nvidia-installer-cleanup.postinst
+++ b/debian/nvidia-installer-cleanup.postinst
@@ -20,7 +20,7 @@ then
                 db_get 
nvidia-installer-cleanup/uninstall-nvidia-installer
                 if [ "$RET" = "true" ]
                 then
-                       nvidia-installer --uninstall --no-runlevel-check 
--no-x-check --ui=none || true
+                       nvidia-installer --uninstall --no-questions 
--no-runlevel-check --no-x-check --ui=none || true
                 elif [ ! -x "/usr/bin/nvidia-installer" ]
                 then
                         : # the user may have removed it inbetween



More information about the pkg-nvidia-devel mailing list