Hi Ian,
as Grant already mentioned this isn't ubuntu-advantage-tools doing, it is just the integration of needrestart.
But even there it isn't a bug, you are - so far - only using -y which is "assume yes" and the questions asked by needrestart are not yes/no questions. There would be more potential things that fall into a similar category like conffile prompts, debconf questions and others.
You might rightfully say: "So if -y isn't the way to make it fully non-interactive, what is it then?"
The answer is that each kind of interactions can be disabled individually.
- --assume-yes - will make apt [1] not ask the "Y/N are you sure"
- setting DEBIAN_FRONTEND=noninteractive environment [2] will make dpkg/debconf not ask you (this is the one also needrestart will follow)
- and predefining the behavior you want in regard to conffile prompts [3] will silence those like -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold"
So if you run it like this it should be truly non-interactive:
$ DEBIAN_FRONTEND=noninteractive apt-get --assume-yes --allow-unauthenticated -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confold" dist-upgrade
If you face issues even with that please speak up, I might have forgotten something or there is a real bug hidden somewhere. But until then I think this works as intended and I'd consider the bug task as incomplete until we know about an actual issue even when using those arguments.
Hi Ian, advantage- tools doing, it is just the integration of needrestart.
as Grant already mentioned this isn't ubuntu-
But even there it isn't a bug, you are - so far - only using -y which is "assume yes" and the questions asked by needrestart are not yes/no questions. There would be more potential things that fall into a similar category like conffile prompts, debconf questions and others.
You might rightfully say: "So if -y isn't the way to make it fully non-interactive, what is it then?"
The answer is that each kind of interactions can be disabled individually. FRONTEND= noninteractive environment [2] will make dpkg/debconf not ask you (this is the one also needrestart will follow) :="--force- confdef" -o Dpkg::Options: :="--force- confold"
- --assume-yes - will make apt [1] not ask the "Y/N are you sure"
- setting DEBIAN_
- and predefining the behavior you want in regard to conffile prompts [3] will silence those like -o Dpkg::Options:
So if you run it like this it should be truly non-interactive: FRONTEND= noninteractive apt-get --assume-yes --allow- unauthenticated -o Dpkg::Options: :="--force- confdef" -o Dpkg::Options: :="--force- confold" dist-upgrade
$ DEBIAN_
If you face issues even with that please speak up, I might have forgotten something or there is a real bug hidden somewhere. But until then I think this works as intended and I'd consider the bug task as incomplete until we know about an actual issue even when using those arguments.
[1]: https:/ /manpages. ubuntu. com/manpages/ jammy/en/ man8/apt- get.8.html /manpages. ubuntu. com/manpages/ jammy/man7/ debconf. 7.html /manpages. ubuntu. com/manpages/ xenial/ man1/dpkg. 1.html
[2]: https:/
[3]: https:/