Skip to content

It "forgets" that it triggered an auto-update #794

Open

Description

@Rudxain

Describe the bug
If "Apply updates automatically" is enabled, and an auto-update has been triggered, Update Manager doesn't notify the user that an update is in progress. And when the user wants to explicitly allow an update it says "another process is using apt" (or something along those lines), which is correct, but very unhelpful, because the UM was the one responsible for the lock!

To Reproduce
Steps to reproduce the behavior:

  1. Go to the "Update Manager" app
  2. Click on "Install Updates"
  3. See software lock error

Expected behavior
It should show a message that an update is already in progress, preferably showing the well-known dialog-window with progress bar.

Distribution:

  • Linux Mint
  • LMDE
  • Other (please specify)

Software version:
5.9.7

Logs:

01.18@13:36 ++ Launching Update Manager
01.18@13:36 ++ Changes to the package cache detected, triggering refresh
01.18@13:36 ++ Starting refresh (local only)
01.18@13:36 ++ Initial refresh will happen in 0 day(s), 0 hour(s) and 10 minute(s)
01.18@13:36 ++ Tracker: Mintupdate update button was pressed recently: 1 days ago
01.18@13:36 ++ Found 3 software updates
01.18@13:36 ++ Refresh finished
01.18@13:40 ++ Starting refresh (local only)
01.18@13:40 ++ Found 3 software updates
01.18@13:40 ++ Refresh finished
01.18@13:46 ++ Update Manager is in tray mode, performing initial refresh
01.18@13:46 ++ Package management system locked by another process, retrying in 60s
01.18@13:47 ++ Package management system locked by another process, retrying in 60s
01.18@13:48 ++ Package management system locked by another process, retrying in 60s
01.18@13:49 ++ Package management system locked by another process, retrying in 60s
01.18@13:50 ++ Package management system locked by another process, retrying in 60s
01.18@13:51 ++ Package management system locked by another process, retrying in 60s
01.18@13:52 ++ Package management system locked by another process, retrying in 60s
01.18@13:53 ++ Package management system locked by another process, retrying in 60s
01.18@13:54 ++ Package management system locked by another process, retrying in 60s
01.18@13:55 ++ Package management system locked by another process, retrying in 60s
01.18@13:56 ++ Package management system locked by another process, retrying in 60s
01.18@13:57 ++ Package management system locked by another process, retrying in 60s
01.18@13:58 ++ Package management system locked by another process, retrying in 60s
01.18@13:59 ++ Package management system locked by another process, retrying in 60s
01.18@14:00 ++ Package management system locked by another process, retrying in 60s
01.18@14:01 ++ Package management system locked by another process, retrying in 60s
01.18@14:02 ++ Package management system locked by another process, retrying in 60s
01.18@14:03 ++ Package management system locked by another process, retrying in 60s
01.18@14:04 ++ Package management system locked by another process, retrying in 60s
01.18@14:05 ++ Package management system locked by another process, retrying in 60s
01.18@14:06 ++ Package management system locked by another process, retrying in 60s
01.18@14:07 ++ Package management system locked by another process, retrying in 60s
01.18@14:08 ++ Package management system locked by another process, retrying in 60s
01.18@14:09 ++ Package management system locked by another process, retrying in 60s
01.18@14:10 ++ Package management system locked by another process, retrying in 60s
01.18@14:11 ++ Package management system locked by another process, retrying in 60s
01.18@14:12 ++ Package management system locked by another process, retrying in 60s
01.18@14:13 ++ Package management system locked by another process, retrying in 60s
01.18@14:14 ++ Package management system locked by another process, retrying in 60s
01.18@14:15 ++ Package management system locked by another process, retrying in 60s
01.18@14:16 ++ Package management system locked by another process, retrying in 60s
01.18@14:17 ++ Package management system locked by another process, retrying in 60s
01.18@14:18 ++ Package management system locked by another process, retrying in 60s
01.18@14:19 ++ Package management system locked by another process, retrying in 60s
01.18@14:20 ++ Package management system locked by another process, retrying in 60s
01.18@14:21 ++ Package management system locked by another process, retrying in 60s
01.18@14:22 ++ Package management system locked by another process, retrying in 60s
01.18@14:23 ++ Package management system locked by another process, retrying in 60s
01.18@14:24 ++ Changes to the package cache detected, triggering refresh
01.18@14:24 ++ Starting refresh (retrieving lists of updates from remote servers)
01.18@14:24 ++ Refreshing available Cinnamon updates from the server
01.18@14:24 ++ Refreshing available Flatpak updates
01.18@14:24 ++ System is up to date
01.18@14:24 ++ Refresh finished
01.18@14:24 ++ Recurring refresh will happen in 0 day(s), 1 hour(s) and 59 minute(s)

Additional context

Activity

  1. github-actions commented on Mar 2, 2026

    @github-actions

    This issue has been automatically marked as stale because it has not had
    any activity in over 2 years.

    If this issue is still relevant:

    • Please test on a current version of this package.
    • Add a comment with your findings

    If no activity occurs in the next 30 days, this issue will be
    automatically closed. Issues can be reopened if needed.

  2. martin152 commented on Nov 25, 2026

    @martin152

    Still the case with mintupdate 7.1.4 on Mint 22.3. This morning's automatic upgrade started at 06:24 and finished at 06:55 with 19 packages installed, a new kernel among them. Most of that was the download, which on my connection took Fetched 215 MB in 27min 29s (131 kB/s). Update Manager was running in the tray the whole time, and this is all its log has from then:

    2026.11.25@06:25 ++ Changes to the package cache detected; triggering refresh
    2026.11.25@06:25 ++ Checking for updates
    2026.11.25@06:26 ++ System is up to date
    2026.11.25@06:26 ++ Refresh finished
    

    Its cache monitor kept calling dpkg_lock_check.sh after that (14 times between 06:25 and 06:45 in the journal) without starting another refresh, so I assume it saw the lock as held. But nothing in the window or the tray told me an upgrade was running, let alone how far along it was.

    Timeshift had the same gap with scheduled snapshots. linuxmint/timeshift#595 has the running task write its progress to a file any user can read, and linuxmint/mintreport#142 shows that in the tray.

    Edit (26 Nov), a correction: mintreport's tray does show something during an automatic upgrade: a grey gear icon with the tooltip "Automatic Updates / Automatic updates are being installed." It checks every 10 seconds, and it showed up for a test process with the same command line, so "nothing in the tray" was probably wrong. It doesn't show progress though, and Update Manager's own icon and window still said nothing during the run.

    Related: mintreport looks for the full path /usr/lib/linuxmint/mintUpdate/automatic_upgrades.py, and master has renamed that script to system_automatic_upgrades.py, so that gear won't appear with the next mintupdate unless mintreport changes too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions