If I type this command first : "sudo DEBCONF_DEBUG='developer' sudo /etc/kernel/header_postinst"
or this command: DEBCONF_DEBUG='developer' sudo /etc/kernel/header_postinst.d/nvidia-common
I didn't receive any feedback.
But if I follow the procedure of Jean-Baptiste Lallement (with the "set -x" in the second line of /etc/kernel/header_postinst.d/nvidia-common),
the command "sudo DEBCONF_DEBUG='developer' sudo /etc/kernel/header_postinst"
works perfectly. Why? :)
If I type this command first : "sudo DEBCONF_ DEBUG=' developer' sudo /etc/kernel/ header_ postinst"
or this command: DEBCONF_ DEBUG=' developer' sudo /etc/kernel/ header_ postinst. d/nvidia- common
I didn't receive any feedback.
But if I follow the procedure of Jean-Baptiste Lallement (with the "set -x" in the second line of /etc/kernel/ header_ postinst. d/nvidia- common) , DEBUG=' developer' sudo /etc/kernel/ header_ postinst"
the command "sudo DEBCONF_
works perfectly. Why? :)
The output:
+ . /usr/share/ debconf/ confmodule debconf/ frontend /etc/kernel/ header_ postinst. d/nvidia- common debconf/ confmodule common/ obsolete- driver false common/ obsolete- driver' false common/ obsolete- driver false' common/ obsolete- driver doesn'\''t exist' line%%[ ]*} in
++ '[' '!' '' ']'
++ PERL_DL_NONLAZY=1
++ export PERL_DL_NONLAZY
++ '[' '' ']'
++ exec /usr/share/
+ . /usr/share/
++ '[' '!' 1 ']'
++ '[' -z '' ']'
++ exec
++ '[' '' ']'
++ exec
++ DEBCONF_REDIR=1
++ export DEBCONF_REDIR
+ db_set nvidia-
+ _db_cmd 'SET nvidia-
+ IFS=' '
+ printf '%s\n' 'SET nvidia-
+ IFS='
'
+ read -r _db_internal_line
+ RET='10 nvidia-
+ case ${_db_internal_
+ return 10