Score:1

XUbuntu 22.04.2 LTS automatic updates do not work

tg flag

I use XUbuntu 22.04.2 LTS for desktop and would like to receive all available updates as soon as possible. I tried setting this via the update manager application but automatic updates do not work at all: I never see a anything being updated or even the update manager application prompting me for available updates. I had to resort to manually running the software updater tool after each boot. How can I fix this?

Settings UI for Updates

Score:2
cn flag

Automatic updates ARE working...when there are no bugfixes.

The key piece of information that you are missing is that there is a random delay in the installation of security updates.

Your preferences states that you want security updates installed automatically, and that you want to be notified immediately for bugfixes (other updates).

Let's run through a couple scenarios.

  1. Your system checks and discovers 0 bugfixes and 2 security updates. The system won't notify you, and later that day installs the 2 updates automatically.

  2. Your system checks and discovers 2 bugfixes and 2 security updates. Since Unattended Updates has not run yet, the system will notify you of all 4 updates.

    Further. lets pretend that you DON'T install the updates. Later that day Unattended Upgrades will run, installing the security updates. Tomorrow you will be prompted to install only the two bugfixes.

  3. After you have been logged in for several hours, apt checks (it's not just at startup!) and discovers 0 bugfixes and 1 security update. This is a repeat of case #1 -- Unattended Upgrades will install it later without telling you.


Here's how to see when apt will check for updates, and when apt will run Unattended Upgrades. The difference is that delay, of course:

$ systemctl list-timers | grep apt
Sat 2023-03-04 06:03:58 CST 10h left      Fri 2023-03-03 06:31:24 CST 13h ago    apt-daily-upgrade.timer        apt-daily-upgrade.service
Sat 2023-03-04 14:56:58 CST 19h left      Fri 2023-03-03 19:35:54 CST 20min ago  apt-daily.timer                apt-daily.service

If you want to add -updates to Unattended Upgrades, you can edit the config file /etc/apt/apt.conf.d/50unattended-upgrades to make that happen.

Look for the line // "${distro_id}:${distro_codename}-updates"; and simply uncomment it.

Peter G. Horvath avatar
tg flag
Thank your very much for the detailed explanation. :)
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.