2

It pops up every hour, even though I went into Preferences > Software Sources > Updates and set the schedule to weekly and rebooted (and daily is the shortest period offered in that dialog.)

There is no surprise why it is doing this: it is a result of the /usr/lib/ubuntu-update-notifier/lubuntu-upg-notifier.sh script having a hard-coded sleep 3600 in its loop - but is there a better way of changing it than editing this file? In particular, is there a way to have it follow the schedule set in the Software Sources Updates tab?

Update: I did not want to be that entitled, self-absorbed guy who wants open-source projects to address his particular needs, but I see that I have become him. I realize now that I should just use the notifier for critical updates, and if I want anything more, I will write it myself (and share it, if I think it is any good.)

sdenham
  • 123

2 Answers2

3

Lubuntu Update Notifier

The timer is version 0.1 used in focal/20.04 was 1 hour.

It was changed (24 hours) in version 0.2 found in groovy/20.10

using exactly what you describe, as can be seen in

FYI: The current version is 0.3 (used in hirsute), you could file a bug report (request an easier, or more friendly way to change value) if you wish another way, but I suspect you've already found the way.

Better choices no doubt exist, but volunteer developer time is limited. The alternative would also be to suggest/code a fix yourself via the provided github link. You sound more than capable :)

guiverc
  • 33,561
1

sudo rm /etc/xdg/autostart/upg-notifier-autostart.desktop worked for me.

If someone wants ansible role for some reason, feel free to copy https://github.com/matkoniecz/recovery-with-ansible/blob/master/roles/stop_upgrade_notifier_popup/tasks/main.yml