Disable Software Updater Notification?
I assume that you opened the program "Software & Updates", looked at the Updates tab, and choose "Never" for "Automatically check for updates"? This cut the frequency down for me, but I also had to disable the apt daily services:
In a terminal enter the commands
sudo systemctl disable apt-daily.service apt-daily-upgrade.service
sudo systemctl disable apt-daily.timer apt-daily-upgrade.timer
Your manual updates (sudo apt update
& sudo apt upgrade
) will work as normal, but the apt system will not automatically look about for new updates.
apt remove packagekit
This one line should do the trick:
$ sudo apt remove packagekit
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
appstream apt-config-icons fwupd fwupd-amd64-signed gnome-software-common irqbalance libappstream-glib8 libappstream4 libfwupd2
libgcab-1.0-0 libsmbios-c2 libtss2-esys0 libtss2-udev libxmlb1 runit-helper tpm2-abrmd tpm2-tools
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
gnome-core* gnome-software* gstreamer1.0-packagekit* packagekit* packagekit-tools* task-gnome-desktop*
0 upgraded, 0 newly installed, 6 to remove and 2 not upgraded.
After this operation, 5,788 kB disk space will be freed.
Do you want to continue? [Y/n] y
That is all you need.
Discussion
If you're getting annoying software update nag messages, most likely you have Gnome installed. Gnome has its own special utility for installing packages (gnome-software
) and its own package management system (packagekit
). I've found Gnome's package tools vastly inferior to the traditional apt update && apt upgrade
, but I can see how the graphical interface might make someone new to UNIX feel more comfortable. (Plus, some people are used to being nagged and told to do things: *"Updates available." "Now, you must reboot your computer for no good reason." "Updates available." "Busy doing work? You have to reboot to install these updates." "Updates available...")
However, since you stated that you use command line apt
, there's really no reason for you to have packagekit running at all.
Ľubuntu, la différence
Lubuntu (the LXQt Desktop version of Ubuntu) used to not have this problem, but it now comes with packagekit pre-installed, the same as the default GNOME Desktop. Well, almost the same. According to @Juergen in the comments, Lubuntu maintains its distinction from standard Ubuntu in that it requires a different command to disable the silliness:
sudo apt remove lubuntu-update-notifier
Unattended upgrades
I suggest also installing unattended-upgrades
:
apt install unattended-upgrades
This will download and install security upgrades every night. (Or, you can configure it to install all upgrades.) This is important because, without PackageKit, you will no longer have "Automatic Updates" running. In fact, you won't have Gnome Update Manager at all.
A bit more about packagekit
By the way, technically, packagekit is a "meta" layer which sits atop other package managers, such as rpm
. Theoretically, it could offer everything apt
does and more, but in reality it appears limited to the lowest-common denominator; the least you can find in any package management system. Hopefully it will get better, but as of 2021, it is seriously deficient.
The main reason I used to give to people for using PackageKit was the easy graphical interface for finding programs. Unfortunately, the Gnome Software search function often omits many packages. I know they are available, because I can easily apt search
and apt install
them from the command line.