https://bugs.kde.org/show_bug.cgi?id=472689

            Bug ID: 472689
           Summary: Discover fails when unattended-upgrade is running in
                    the background
    Classification: Applications
           Product: Discover
           Version: 5.24.7
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: discover
          Assignee: plasma-b...@kde.org
          Reporter: philipp.k...@gmail.com
                CC: aleix...@kde.org
  Target Milestone: ---

STEPS TO REPRODUCE
1. Make sure you have updates to install (e.g. don't use your computer for a
while).
2. Reboot. unattended-upgrades will start updating, but the user doesn't
typically notice that.
3. Open Discover, click "Install updates". Any diligent user would do this
after not using their computer for a while.
4. Enter password to confirm installation.

OBSERVED RESULT

Fails due to lack of installer lock, which is a hard-to-understand error
message for (a) newbies or (b) people who don't know that unattended-upgrades
is even enabled on their system.

EXPECTED RESULT

It doesn't fail. There's two concurrent processes trying to achieve basically
the same thing: to install all available updates.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 22.04
(available in About System)
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3

POSSIBLE SOLUTIONS

When encountering a lock error, discover could check if unattended-upgrades is
running. If so, it could

(a) display a message that other upgrades are in progress, and/or
(b) wait for them to complete, and/or
(c) resume its own updates once the background process is complete, and/or
(d) in a "details" section show the log output of the background process (like
`tail`) so that the user can verify that it isn't stuck and that it's worth
waiting. This could be useful as there's no other kind of progress indicator in
this case. If this isn't possible, the error message could point to the
(canonical) log file location at least, so that the user knows where to look.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to