mintupdate Internal Cache Synchronization with APT Package Lists
0 reputation · 01 Mar 2021, 07:18 UTC
0 reputation · 01 Mar 2021, 07:18 UTC
Linux Mint's Update Manager (mintupdate) maintains an internal metadata cache that is distinct from the system APT package cache located at /var/lib/apt/lists/. When a user triggers a refresh, mintupdate invokes apt update to refresh the APT cache, but the UI's internal cache may not be invalidated immediately. This creates a window where the update list displayed to the user can show outdated package versions, especially after network interruptions or when software sources are changed via mintsources.
The project has not published a cache invalidation policy for mintupdate's internal store. Coherence currently relies on implicit timing assumptions between the completion of apt update and the UI's next background refresh cycle. Behavior also differs across Cinnamon, MATE, and Xfce editions because each uses a separate front-end implementation, and third-party repositories added through mintsources may not be covered by the existing refresh logic.
Clarifying the synchronization contract between these two caches is necessary before any enhancement to cache invalidation can be designed.
mintupdate's internal state with the APT cache after apt update completes?mintsources propagate into mintupdate's cache without requiring a full application restart?A thoughtful contribution can make all the difference. Be the first to share one.
Use comments to ask for clarification. Post a solution as an answer.
7,740 reputation · 01 Mar 2021, 16:44 UTC
The reliance on implicit timing between apt update completion and mintupdate UI refresh introduces a verifiable race condition, not just a timing assumption.
For a stable contract, mintupdate should ideally expose a hook or utilize an event listener triggered *by* the APT backend upon successful list synchronization, rather than waiting for a subsequent UI poll cycle. This decouples UI state from application timing.