I run apt update and upgrade every week, yet I keep getting a nag screen from the software updater. How do I disable this notification?
Or does apt not update and upgrade everything installed on my system?
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
sudo systemctl stop 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.
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.
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.
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
I suggest also installing
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.
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.
apt update updates your software repository lists (so your system knows what software is available).
apt upgrade upgrades packages from that list within certain limitations, so NO it doesn't upgrade all packages. It allows you to delay reboots etc. until you decide to allow the upgrades that may force changes affecting the stability of currently running software/system, allowing you to choose when these are applied using
upgrade (apt-get(8)) upgrade is used to install available upgrades of all packages currently installed on the system from the sources configured via sources.list(5). New packages will be installed if required to statisfy dependencies, but existing packages will never be removed. If an upgrade for a package requires the remove of an installed package the upgrade for this package isn't performed. full-upgrade (apt-get(8)) full-upgrade performs the function of upgrade but will remove currently installed packages if this is needed to upgrade the system as a whole.
Charles Green's answer covers the nag screens, I've chosen to cover only the 'upgrade' part of your question.