How do I stop software-notifier

Asked by tomdean

How do I stop software-notifier? I assume this action is preceeded by downloading something.
I do not want anything downloading unless I specifically ask for it.

Why is the complete desktop environment dependent on update-notifier?

> sudo apt purge update-notifier

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
  python3-debconf update-notifier-common
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
  ubuntu-desktop* ubuntu-desktop-minimal* ubuntu-release-upgrader-gtk* update-manager* update-notifier* vanilla-gnome-desktop*
0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
After this operation, 1704 kB disk space will be freed.
Do you want to continue? [Y/n] n

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said (last edit ):
#1

The title of your question is "How do I stop software-notifier", but I am not aware of a package or program with such name. I assume you talk about update-notifier.

"update-notifier" is provided as package with that name, but also the package "gnome-packagekit" has the property "provides update-notifier".

You can try installing the package gnome-packagekit and uninstalling the update-notifier package. This should not cause that ubuntu-desktop needs to be removed.

Remark: I do not know whether this solves you original target of "no download unless I ask for it".
Second remark: What settings do you have in software-properties-gtk about update notifications?

Revision history for this message
tomdean (tomdean) said :
#2

On 6/15/21 9:35 AM, Manfred Hampl wrote:
> Your question #697549 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/697549
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The title of your question is "How do I stop software-notifier", but I
> am not aware of a package or program with such name. I assume you talk
> about update-notifier.
>
> "update-manager" is provided as package with that name, but also the
> package "gnome-packagekit" has the property "provides update-notifier".
>
> You can try installing the package gnome-packagekit and uninstalling the
> update-notifier package. This should not cause that ubuntu-desktop needs
> to be removed.
>
> Remark: I do not know whether this solves you original target of "no download unless I ask for it".
> Second remark: What settings do you have in software-properties-gtk about update notifications?
>

In software-properties-gtk -> Updates,
Snap package updates are checked routinely and installed automaticlly.
   ( I uninstalled snapd long ago )
For other packages, subscribe to: Custom
Automatically check for updates: Never
When there are security updates: Display immediately
When there are other updates: Display weekly
Notify me of a new Ubuntu Version: For LTS versions

 > cat /etc/apt/apt.conf.d/99update-notifier
##DPkg::Post-Invoke {"if [ -d /var/lib/update-notifier ]; then touch
/var/lib/update-notifier/dpkg-run-stamp; fi; /usr/lib/update-notifier/
update-motd-updates-available 2>/dev/null || true";};
##APT::Update::Post-Invoke-Success
{"/usr/lib/update-notifier/update-motd-updates-available 2>/dev/null ||
true";};

 > cat ./apt/apt.conf.d/10periodic
APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Download-Upgradeable-Packages "0";
APT::Periodic::AutocleanInterval "0";
APT::Periodic::Unattended-Upgrade "0";
APT::Periodic::Enable "0";

Revision history for this message
actionparsnip (andrew-woodhead666) said :
#3

The updates aren't downloaded until you kick off an update. The repositories are simply read to see if newer packages are available, than the ones you have installed. Do you seriously think that Ubuntu downloads every single version of every package you have installed just in case you want to run updates? No, it doesn't do that. The repositories are read periodically. The amount of data downloaded to do this is less than 1Mb

Revision history for this message
tomdean (tomdean) said :
#4

On 6/15/21 2:45 PM, actionparsnip wrote:
> Your question #697549 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/697549
>
> Status: Open => Answered
>
> actionparsnip proposed the following answer:
> The updates aren't downloaded until you kick off an update. The
> repositories are simply read to see if newer packages are available,
> than the ones you have installed. Do you seriously think that Ubuntu
> downloads every single version of every package you have installed just
> in case you want to run updates? No, it doesn't do that. The
> repositories are read periodically. The amount of data downloaded to do
> this is less than 1Mb
>

Yes, I know updates MAY not be downloaded, just version/date
information. I do not want any network activity that I do not
specifically start. I want to control all network activity.

Tom Dean

Revision history for this message
Launchpad Janitor (janitor) said :
#5

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
tomdean (tomdean) said :
#6

On 6/15/21 9:35 AM, Manfred Hampl wrote:
> Your question #697549 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/697549
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> The title of your question is "How do I stop software-notifier", but I
> am not aware of a package or program with such name. I assume you talk
> about update-notifier.
>
> "update-manager" is provided as package with that name, but also the
> package "gnome-packagekit" has the property "provides update-notifier".
>
> You can try installing the package gnome-packagekit and uninstalling the
> update-notifier package. This should not cause that ubuntu-desktop needs
> to be removed.
>
> Remark: I do not know whether this solves you original target of "no download unless I ask for it".
> Second remark: What settings do you have in software-properties-gtk about update notifications?
>

I replaced /usr/bin/update-notifier with a script that just returns 0

#!/bin/sh
exit 0

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

Do what you think that it makes sense.
Just remember that you have to re-do that after an update of the package.

Are you sure that you disabled the right file?
According to https://wiki.ubuntu.com/UpdateNotifier there is only the check for release updates every two weeks, but several other local activities which you maybe want to keep.

I guess that you want to disable is rather /etc/cron.daily/update-manager-common or the files called in it.

Revision history for this message
tomdean (tomdean) said :
#8

On 7/8/21 11:06 AM, Manfred Hampl wrote:
> Your question #697549 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/697549
>
> Status: Open => Answered
>
> Manfred Hampl proposed the following answer:
> Do what you think that it makes sense.
> Just remember that you have to re-do that after an update of the package.
>
> Are you sure that you disabled the right file?
> According to https://wiki.ubuntu.com/UpdateNotifier there is only the check for release updates every two weeks, but several other local activities which you maybe want to keep.
>
> I guess that you want to disable is rather /etc/cron.daily/update-
> manager-common or the files called in it.
>

I read the README in share/doc

I really do not want any net activity that I did not intentionally ask
for. I do manual updates weekly.

Thanks for the pointer. I exit 0'ed
/etc/cron.daily/update-notifier-common too.

Revision history for this message
Launchpad Janitor (janitor) said :
#9

This question was expired because it remained in the 'Open' state without activity for the last 15 days.