Public bug reported: Offline updates is not offline!! It fails when network is not available. (See below.)
It seems to me that attempts to reach the network before bootup, which would include setup of any network monitoring tools, should be considered a security vulnerability. In my case the network is not available because I have a VPN which shuts off network access until it's set up; but it might fail for other reasons. Then it gives a failure message that goes by too fast, before shutting down. While considering whether I could turn this function off altogether, I found a report from fedora: "When offline updates are disabled by turning off packagekit-offline- update.service in systemd it is still possible for offline updates to be triggered, causing boot to hang at system-update.target" https://bugzilla.redhat.com/show_bug.cgi?id=988235 This is Ubuntu 22.04 $ journalctl -u packagekit-offline-update.service -- Boot 6ac0bbee4c2944889a35ee2d165c410f -- Sep 02 13:05:28 ThinkPad-W530 systemd[1]: Starting Update the operating system whilst offline... Sep 02 13:05:28 ThinkPad-W530 pk-offline-update[2429]: sent mode to plymouth 'updates' Sep 02 13:05:28 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Installing updates; this could take a while...' Sep 02 13:05:28 ThinkPad-W530 pk-offline-update[2429]: writing dummy results Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: assigned role Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: status wait Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: status waiting-for-auth Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: status wait Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: status setup Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: status loading-cache Sep 02 13:05:35 ThinkPad-W530 pk-offline-update[2429]: percentage 0% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 100% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Installing Updates - 100%' Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 0% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 50% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Installing Updates - 50%' Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 100% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Installing Updates - 100%' Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 0% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 100% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Installing Updates - 100%' Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: status query Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: status running Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: status loading-cache Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: status download Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: percentage 99% Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Installing Updates - 99%' Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: package downloading ubuntu-pro-client-l10n-33.2~22.04.amd64 (ubuntu-jammy-updates-main) Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: package downloading ubuntu-pro-client-33.2~22.04.amd64 (ubuntu-jammy-updates-main) Sep 02 13:05:36 ThinkPad-W530 pk-offline-update[2429]: package downloading ubuntu-advantage-tools-33.2~22.04.all (ubuntu-jammy-updates-main) Sep 02 13:05:43 ThinkPad-W530 pk-offline-update[2429]: status running Sep 02 13:05:43 ThinkPad-W530 pk-offline-update[2429]: status finished Sep 02 13:05:43 ThinkPad-W530 pk-offline-update[2429]: writing failed results Sep 02 13:05:43 ThinkPad-W530 pk-offline-update[2429]: failed to update system: E: http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-pro-client-l10n amd64 33.2~22.04 is not (yet) available (Could not resolve 'us.archive.ubuntu.com') E: http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-pro-client amd64 33.2~22.04 is not (yet) available (Could not resolve 'us.archive.ubuntu.com') E: http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 ubuntu-advantage-tools all 33.2~22.04 is not (yet) available (Could not resolve 'us.archive.ubuntu.com') Sep 02 13:05:54 ThinkPad-W530 pk-offline-update[2429]: shutting down Sep 02 13:05:54 ThinkPad-W530 pk-offline-update[2429]: sent mode to plymouth 'shutdown' Sep 02 13:05:54 ThinkPad-W530 pk-offline-update[2429]: sent msg to plymouth 'Shutting down after installing updates…' Sep 02 13:05:54 ThinkPad-W530 systemd[1]: packagekit-offline-update.service: Deactivated successfully. Sep 02 13:05:54 ThinkPad-W530 systemd[1]: Stopped Update the operating system whilst offline. ** Affects: packagekit (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2078751 Title: packagekit-offline-update.service is not offline! It wants a network, otherwise fails. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/packagekit/+bug/2078751/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs