If we add a dpkg trigger for this, the trigger needs to succeed regardless of whether the download was successful, otherwise we run into the same problem again. Michael proposes the use of an update-notifier interactive upgrade hook (https://wiki.ubuntu.com/InteractiveUpgradeHooks) in this case, to ensure the user gets feedback about the failure even though the package has successfully installed.
Then the cron job can take care of retrying, and sending another notification when it's decided the failure is "permanent".
If we add a dpkg trigger for this, the trigger needs to succeed regardless of whether the download was successful, otherwise we run into the same problem again. Michael proposes the use of an update-notifier interactive upgrade hook (https:/ /wiki.ubuntu. com/Interactive UpgradeHooks) in this case, to ensure the user gets feedback about the failure even though the package has successfully installed.
Then the cron job can take care of retrying, and sending another notification when it's decided the failure is "permanent".