Your suggestion will work for the noninteractive case but not for any
other case where debconf is being adjusted - for example when requesting
critical prompts only and that kind of thing.

I wonder if it's possible to use debconf itself for the prompt so that
it will automatically comply with whatever users are already doing. I
realise that it may be odd to put it in an apt hook and not have it
running from dpkg, but it might be the least worst solution.

Another thought: I wonder if redirecting stdin to /dev/null works.
However, I'm reluctant to suggest it as a workaround as the main issue
here I think is that the existing known steps to ensure non-
interactiveness no longer work, so asking users to do yet another thing
is suboptimal.

Finally, until a good solution is found, can we revert the regression
immediately by just dropping the blocking prompt, and printing the
message to the terminal instead?

** Tags added: regression-release

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1941716

Title:
  Apt hook of needrestart  hang  with DEBIAN_FRONTEND=noninteractive

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/needrestart/+bug/1941716/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to