Hello,
I quickly searched for you the source code for kde's plasma-discover [1] (the program that implements the user interface for this feature) for Debian Bookworm:According to the source code in the file libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp [2], I assume that when offline updates are enabled in plasma-discover, packages are downloaded, installed and the user is prompted to reboot by PackageKit [3] (KDE's package manager); this should be the code that triggers the reboot prompt when useOfflineUpdates is enabled:
As far as I can understand, plasma-discover's offline updates and unattended updates are different functionalities.
Therefore they should not conflict with the "unattended-upgrades" package.
However, if KDE's itself supports unattended updates, KDE's offline updates could be triggered after KDE's unattended updates.
Hope this helps.
--
[1] Package: plasma-discover
[2] sources / plasma-discover / 5.27.5-2 / libdiscover / backends / PackageKitBackend / PackageKitUpdater.cpp
[3] Package: packagekit
As for @sunrat, it's a feature I don't use with KDE and wasn't aware of. I prefer to update Debian manually.[..] I've read that offline updates relies on Discover but I couldn't find anything about how it was implemented in Debian : what is the timer? [..]
I quickly searched for you the source code for kde's plasma-discover [1] (the program that implements the user interface for this feature) for Debian Bookworm:
Code:
$ apt source plasma-discover$ cd plasma-discover-5.27.5$ grep -ri useOfflineUpdateskcm/package/contents/ui/main.qml: enabled: !kcm.discoverSettings.isUseOfflineUpdatesImmutablekcm/package/contents/ui/main.qml: checked: kcm.discoverSettings.useOfflineUpdateskcm/package/contents/ui/main.qml: kcm.discoverSettings.useOfflineUpdates = checkedkcm/package/contents/ui/main.qml: settingName: "useOfflineUpdates"kcm/discoversettings.kcfg: <entry name="UseOfflineUpdates" type="Bool">libdiscover/resources/AbstractBackendUpdater.cpp:void AbstractBackendUpdater::setOfflineUpdates(bool useOfflineUpdates)libdiscover/resources/AbstractBackendUpdater.cpp: Q_UNUSED(useOfflineUpdates);libdiscover/resources/ResourcesUpdatesModel.cpp: // kwriteconfig5 --file discoverrc --group Software --key UseOfflineUpdates truelibdiscover/resources/ResourcesUpdatesModel.cpp: m_offlineUpdates = group.readEntry<bool>("UseOfflineUpdates", false);libdiscover/resources/ResourcesUpdatesModel.cpp: if (!names.contains("UseOfflineUpdates") || group.name() != "Software") {libdiscover/resources/ResourcesUpdatesModel.cpp: if (m_offlineUpdates == group.readEntry<bool>("UseOfflineUpdates", false)) {libdiscover/resources/AbstractBackendUpdater.h: virtual void setOfflineUpdates(bool useOfflineUpdates);libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp: if (useOfflineUpdates() && !candidates.isEmpty()) {libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp: else if (useOfflineUpdates())libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp:bool PackageKitUpdater::useOfflineUpdates() constlibdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp: return m_useOfflineUpdates || qEnvironmentVariableIntValue("PK_OFFLINE_UPDATE");libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp: m_useOfflineUpdates = use;libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp: if (useOfflineUpdates()) {libdiscover/backends/PackageKitBackend/PackageKitUpdater.cpp: if (useOfflineUpdates() && exit == PackageKit::Transaction::ExitSuccess) {libdiscover/backends/PackageKitBackend/PackageKitUpdater.h: bool useOfflineUpdates() const;libdiscover/backends/PackageKitBackend/PackageKitUpdater.h: bool m_useOfflineUpdates = false;
- sources / plasma-discover / 5.27.5-2 / libdiscover / backends / packagekitbackend / packagekitupdater.cpp:
Code:
void PackageKitUpdater::finished(PackageKit::Transaction::Exit exit, uint /*time*/){[..] if (useOfflineUpdates() && exit == PackageKit::Transaction::ExitSuccess) { PackageKit::Daemon::global()->offline()->trigger(PackageKit::Offline::ActionReboot); enableReadyToReboot(); }}
Nothing happened because there are probably no packages to update.I tried but nothing happened. [..] Do you need to turn off unattended-upgrades? Do you still need apt-daily.service? I was hoping to read somebody else's experience.
As far as I can understand, plasma-discover's offline updates and unattended updates are different functionalities.
Therefore they should not conflict with the "unattended-upgrades" package.
However, if KDE's itself supports unattended updates, KDE's offline updates could be triggered after KDE's unattended updates.
Hope this helps.
--
[1] Package: plasma-discover
[2] sources / plasma-discover / 5.27.5-2 / libdiscover / backends / PackageKitBackend / PackageKitUpdater.cpp
[3] Package: packagekit
Statistics: Posted by Aki — 2024-08-05 12:06