-
Notifications
You must be signed in to change notification settings - Fork 94
Install the update-notifier-common package if required #6
Comments
This solves jnv#6
Thank you Jose for the report and PR, though I am not sure about Debian compatibility. It seems this package is missing in Jessie: https://packages.debian.org/search?suite=all&searchon=names&keywords=update-notifier-common The Debian wiki does not mention this dependency, so I think it would be probably better to limit this only to Ubuntu. What do you think? |
That's a very good point, @jnv. I tried it on Debian Wheezy and it worked, but it looks like it has been removed in Jessie, which is going to be the stable release soon. Regarding your question, I think that limiting this task to Ubuntu is a valid solution, but doing so will also mean that it would be confusing for the Debian users (as for them the computer won't automatically restart, despite the fact that they explicitly set Apparently, it looks like the Please, let me send an e-mail to the Debian's |
Yes, thank you for looking into this! It seems the only reason for this unspecified dependency is that the script looks for an existence of Either way, I think we could attempt to install |
I wrote an e-mail to two different maintainers, but unfortunately I haven't received a response. For testing purposes, I've been installing different packages that are dependencies to One of the things I found out is that after installing However, it looks like a new package called reboot-notifier is going to be added to Debian, according to this source. The description in the
So it looks like it's just a matter of time, apparently in the future Debian will have a "replacement" for Because of all this, my suggestion would be (as you indicated in your last paragraph):
Any thoughts on this? |
Wow, thanks for a thorough research! First of all, I think we should avoid fixing or working around issues with distributions' packaging and documentation. If the software provides a feature which depends on other software, but the package itself doesn't communicate this dependency (at least in form of recommended or suggested package with proper explanation), I think we should first escalate this to upstream. Therefore I would prefer to avoid assuming anything until Debian fixes their packages: if Jessie has been released with Otherwise we may end up implementing our own workaround like the Chef folks (see sous-chefs/apt#80), which is clearly out of the scope for this package. Furthermore I would prefer to avoid tying the behaviour to specific distribution versions. So I propose the following: If
…and explain this in documentation. Just warning the user seems like a potiential source of unintended behaviour. Unless, say, user wants to introduce their own workaround. |
Excellent, I'll implement it like that in the next few days :) Just to clarify, I think we shouldn't attempt to install |
Yes, I agree about Thank you so much for taking care of this, I'm looking forward to your PR! |
I've updated my PR to accommodate the changes you requested. However, in your previous comment you said:
But I'm not sure what to write in the README.md file. So if you could give me the exact text you want to include in the documentation, I'll happily update my PR again. Or of course you can add it yourself if it's easier. |
I have merged your PR, added the note to the README and released it as version 1.1.0. Thank you so much for your help, Jose! Please, let me know once the reboot-notifier (or whatever the package will be named) makes it to the repository. |
Hi there, looks like reboot-notifier is in sid now : https://packages.debian.org/sid/reboot-notifier |
Thanks @jmatsushita, though is it sid only? No recommended solution for Jessie? |
It looks like reboot-notifier is in "jessie-backports" now: https://packages.debian.org/jessie-backports/reboot-notifier Knowing the Debian team, it won't make it to the stable dist until after stretch comes out. Would you consider adding support for reboot-notifier now? |
Sure! We will need extra instructions, perhaps a separate role for adding backports. |
An update made in June of
The associated commit: mvo5/unattended-upgrades@4c755d7 Not tested however. |
Thanks @sebalix! So to my understanding, unattended-upgrades has merged-in the reboot notifier feature, therefore no extra dependency is required. So for our part, just removing the conditional failure should work. |
Hi, |
Are you sure that |
Using v1.4.0 of this module, with both
|
Ah, I guess that was this part kicking in:
Might be an idea to make it an informational notification, rather than a red warning that says, "FAILED!" ;) |
@sampablokuper Ah, yes, good point. Perhaps we could remove this completely, but I am not sure what is the status of LTS distros which still require |
@jnv wrote:
I'm not suggesting the warning be removed completely, but there doesn't seem to be much point in retaining it on distro versions for which it is irrelevant (e.g. Debian 8 or 9). This PR fixes that :) |
According to https://help.ubuntu.com/community/AutomaticSecurityUpdates (and several other sources):
I think it would be nice to have a conditional task that installs the aforementioned package if necessary (that is, if the
unattended_automatic_reboot
variable is set to true).The text was updated successfully, but these errors were encountered: