Bug 464422

Summary: Misleading error message when unrelated package fails to configure.
Product: [Applications] Discover Reporter: David <david.cortes.rivera>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: REPORTED ---    
Severity: normal CC: aleixpol
Priority: NOR    
Version First Reported In: 5.26.5   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description David 2023-01-17 18:48:00 UTC
SUMMARY
If I have a queue of packages from previous apt/aptitude calls that somehow failed to configure, and I use discover to update a single package that I click from the UI, it will issue some apt-related command that includes both updating the selected package AND reconfiguring the earlier installed package. If the latter fails, it will show me an error message saying that the package couldn't be installed, which is wrong since the selected package does get successfully updated. Clicking the details button will show the unrelated package being the failure, but this is very unclear.

STEPS TO REPRODUCE
1. Install some package from apt/apt-get/aptitude that will fail to configure after its download.
2. Use the discover UI to update a single package different from the one above.

OBSERVED RESULT
Shows me an error message saying that "the package" failed to install.

EXPECTED RESULT
Should not even attempt to reconfigure a different package when I want to update one selected package.

SOFTWARE/OS VERSIONS
Operating System: Debian GNU/Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.7
Kernel Version: 5.18.0-4-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700 Eight-Core Processor
Memory: 15.5 GiB of RAM
Graphics Processor: AMD Radeon RX Vega
Manufacturer: Acer
Product Name: Predator PH517-61
System Version: V1.09

ADDITIONAL INFORMATION