Bug 461385 - When trying to install an update including packages that want to prompt the user to agree to a EULA, the update fails silently
Summary: When trying to install an update including packages that want to prompt the u...
Status: CONFIRMED
Alias: None
Product: Discover
Classification: Applications
Component: Updates (interactive) (show other bugs)
Version: 5.26.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-03 21:56 UTC by jonzn4SUSE
Modified: 2023-06-23 09:34 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Discover logs (814.66 KB, text/plain)
2022-11-17 06:01 UTC, jonzn4SUSE
Details
Discover settings (132.92 KB, image/png)
2022-11-17 06:06 UTC, jonzn4SUSE
Details
pkmon output --> Discover_ZBook-17-G4_log (52.33 KB, text/plain)
2022-11-20 21:30 UTC, jonzn4SUSE
Details
Discover acting up again (170.15 KB, text/plain)
2022-11-30 16:15 UTC, jonzn4SUSE
Details
root password prompt when first open (196.60 KB, image/png)
2022-12-04 22:43 UTC, jonzn4SUSE
Details
Discover refreshing again. (135.94 KB, image/png)
2023-04-07 04:21 UTC, jonzn4SUSE
Details
same issue (112.74 KB, image/jpeg)
2023-04-08 05:21 UTC, jonzn4SUSE
Details
This is what I get when updaing pam (83.35 KB, image/jpeg)
2023-04-08 05:22 UTC, jonzn4SUSE
Details
Just more detail (92.46 KB, image/jpeg)
2023-04-08 05:25 UTC, jonzn4SUSE
Details
multiple EULA appears to cause app refresh (322.32 KB, image/png)
2023-04-09 03:58 UTC, jonzn4SUSE
Details
output from pkmon duing the process (1.54 MB, text/plain)
2023-04-09 03:59 UTC, jonzn4SUSE
Details
The refresh is back. (106.23 KB, text/plain)
2023-04-24 22:18 UTC, jonzn4SUSE
Details
pkmon output 25APR23 (91.34 KB, text/plain)
2023-04-26 02:47 UTC, jonzn4SUSE
Details
unistalled nvidia drivers (421.49 KB, image/png)
2023-05-12 09:12 UTC, jonzn4SUSE
Details
Update process working (446.49 KB, image/png)
2023-05-12 09:13 UTC, jonzn4SUSE
Details
bad nvidia... (820.12 KB, image/png)
2023-05-13 01:43 UTC, jonzn4SUSE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jonzn4SUSE 2022-11-03 21:56:39 UTC
SUMMARY
***
After putting in the admin password the app just does a refresh, but does not update the system.
***


STEPS TO REPRODUCE
1. The apps shows the updates available
2. I hit update all
3. It prompts for root password.
4. After inputting the password and hitting enter.  

OBSERVED RESULT
The app just does a refresh and shows the same updates again.

EXPECTED RESULT
To install the update and then show that the OS is up to date.

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20221101
KDE Plasma Version: 5.26.2
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.6
Kernel Version: 6.0.5-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz
Memory: 31.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P630
Manufacturer: HP
Product Name: HP ZBook 17 G4

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-11-04 17:22:21 UTC
Does `pkcon update` in a terminal window work? Or does it do the same thing?
Comment 2 jonzn4SUSE 2022-11-07 10:45:33 UTC
This issue can be closed.  I had to reinstall because of another issue and it's working now.
Comment 3 Nate Graham 2022-11-07 14:20:05 UTC
Thanks for following up! SOunds like a local installation or configuration issue.
Comment 4 jonzn4SUSE 2022-11-15 15:14:21 UTC
(In reply to Nate Graham from comment #1)
> Does `pkcon update` in a terminal window work? Or does it do the same thing?

The issue reappeared with the app just doing a refresh and showing the same updates.  I ran pkcon update and it worked.  For future reference what logs should I look at when this happens?
Comment 5 Nate Graham 2022-11-15 18:30:15 UTC
Output of `pkmon` while Discover is running and you refresh it.
Comment 6 jonzn4SUSE 2022-11-17 06:01:11 UTC
Created attachment 153819 [details]
Discover logs

Tried 2 times, but no joy.

Operating System: openSUSE Tumbleweed 20221113
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.99.0
Qt Version: 5.15.7
Kernel Version: 6.0.7-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz
Memory: 125.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP ZBook 17 G6
Comment 7 jonzn4SUSE 2022-11-17 06:06:05 UTC
Created attachment 153820 [details]
Discover settings

These are the default settings.  I made no changes since install.
Comment 8 jonzn4SUSE 2022-11-17 14:19:28 UTC
I didn't update the system yet in case some other test are needed, currently showing 250 updates available.
Comment 9 jonzn4SUSE 2022-11-20 21:30:29 UTC
Created attachment 153908 [details]
pkmon output --> Discover_ZBook-17-G4_log

It happening again on my ZBook 17 G4.
Comment 10 jonzn4SUSE 2022-11-21 04:30:47 UTC
Silly thing is working now on the G4. 
I'll try the G6 later, I'm sure it'll probably work also.  ;-)
Comment 11 jonzn4SUSE 2022-11-22 14:37:38 UTC
This app... Ran the update today on the G6 and it worked. ;^/
Carry on.
Comment 12 jonzn4SUSE 2022-11-30 16:15:47 UTC
Created attachment 154171 [details]
Discover acting up again

pkmon output
Comment 13 Aleix Pol 2022-12-01 01:01:22 UTC
I see this error message:
/12_eaceebcd	error code: no-license-agreement, You've to agree/decline a license

I've created a MR that would tell us some more information about what is happening.
Would you be able to give it a run and tell us the output of plasma-discover process?
https://invent.kde.org/plasma/discover/commit/94d8b04cc52828e6a3c92c85143c6b33cbb55687
Comment 14 Nate Graham 2022-12-01 20:39:13 UTC
.
Comment 15 jonzn4SUSE 2022-12-02 06:20:59 UTC
Sure thing, but I will require hand holding and instructions please.  ;^))
Comment 16 jonzn4SUSE 2022-12-02 19:09:14 UTC
I ran it again today and it worked...  smh
The only license that comes up is usually Nvidia and it prompts for root password.



Operating System: openSUSE Tumbleweed 20221201
KDE Plasma Version: 5.26.3
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.8-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz
Memory: 125.2 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP ZBook 17 G6
Comment 17 jonzn4SUSE 2022-12-04 22:43:54 UTC
Created attachment 154319 [details]
root password prompt when first open

Now the app is asking for root password when it's opening it.
Comment 18 jonzn4SUSE 2022-12-04 22:44:37 UTC
Happening on 

Operating System: openSUSE Tumbleweed 20221203
KDE Plasma Version: 5.26.4
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.7
Kernel Version: 6.0.10-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz
Memory: 62.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P630
Manufacturer: HP
Product Name: HP ZBook 17 G4
Comment 19 Nate Graham 2022-12-05 18:39:21 UTC
Did you ever at any point run Discover with sudo or kdesu or any other privilege escalation tool?
Comment 20 jonzn4SUSE 2022-12-06 06:06:00 UTC
No, I always click on the icon on task manger.
Comment 21 jonzn4SUSE 2022-12-06 06:11:19 UTC
I noticed that if there's a root password prompt already up, the Discover app will refresh until I close the other prompt.   KSystemLog opens it's own root password prompt even if another prompt is already up.
Comment 22 jonzn4SUSE 2023-04-07 04:21:02 UTC
Created attachment 157913 [details]
Discover refreshing again.

The app just refreshed again today.  Looks like I'll have to update pam before using Discover to update the system.  see screenshot


Operating System: openSUSE Tumbleweed 20230402
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz
Memory: 125.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP ZBook 17 G6
Comment 23 jonzn4SUSE 2023-04-08 05:21:12 UTC
Created attachment 157942 [details]
same issue

Same issue on another laptop.  


Operating System: openSUSE Tumbleweed 20230331
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.8-1-default (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i7-4810MQ CPU @ 2.80GHz
Memory: 31.0 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 4600
Manufacturer: Hewlett-Packard
Product Name: HP ZBook 17 G2
System Version: A3009DD10303
Comment 24 jonzn4SUSE 2023-04-08 05:22:20 UTC
Created attachment 157943 [details]
This is what I get when updaing pam

On this laptop I'm going to proceed.
Comment 25 jonzn4SUSE 2023-04-08 05:25:01 UTC
Created attachment 157944 [details]
Just more detail
Comment 26 jonzn4SUSE 2023-04-08 05:27:16 UTC
After the pam update, all is well.  
Carry on...
Comment 27 jonzn4SUSE 2023-04-09 03:58:10 UTC
Created attachment 157968 [details]
multiple EULA appears to cause app refresh

Looks like the nvidia updates have multiple EULA and cause the app to refresh.  I put in the root password 2 or 3 times, but no joy.
Comment 28 jonzn4SUSE 2023-04-09 03:59:33 UTC
Created attachment 157969 [details]
output from pkmon duing the process

output from pkmon duing the process

Operating System: openSUSE Tumbleweed 20230402
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 5.104.0
Qt Version: 5.15.8
Kernel Version: 6.2.9-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz
Memory: 125.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP ZBook 17 G6
Comment 29 jonzn4SUSE 2023-04-09 18:08:00 UTC
I click update all, then get a root password prompt, and then another root password prompt for EULA with no update process.
Comment 30 Nate Graham 2023-04-09 19:48:26 UTC
John, it's awfully confusing to have the same bugzilla ticket used to report multiple issues. Most of the issues you're seeing are actually packaging bugs in openSUSE that Discover is simply informing you about. Those bugs need to be fixed by the openSUSE packagers.

Let's re-focus this bugzilla ticket on the original issue:

> STEPS TO REPRODUCE
> 1. The apps shows the updates available
> 2. I hit update all
> 3. It prompts for root password.
> 4. After inputting the password and hitting enter.  

> OBSERVED RESULT
> The app just does a refresh and shows the same updates again.

As far as I can tell, the issue is this:

> I see this error message:
> /12_eaceebcd	error code: no-license-agreement, You've to agree/decline a license

What's happening here is the result of a fundamental mismatch between openSUSE and graphical software center apps. The openSUSE packaging system relies on being able to ask the user questions during installation (such as this request to re-accept a EULA), but this functionality is not supported by the PackageKit library that graphical software center apps like Discover and GNOME Software use. See https://bugzilla.suse.com/show_bug.cgi?id=1163737.

*Someone* will have to make some changes before this issue can be resolved: either openSUSE will need to make their PackageKit plugin take a decision automatically rather than simply exiting because it can't ask the user a question, or else the PackageKit library will need to be extended to offer support for bubbling up questions to the user so that Discover can show them in the UI.

Because this specific example of the issue concerns a EULA, I don't think there can be a "sensible default decision" probably for legal reasons, so it will most likely require PackageKit to acknowledge the use case and permit it somehow. I've added a comment to https://github.com/PackageKit/PackageKit/issues/604 mentioning this.

Regardless, all of this needs to happen below Discover, so unfortunately I'm afraid there's nothing Discover can do about this issue. :( In the meantime I would recommend not using Discover on openSUSE-based distros and instead use either YaST or the `zypper` command line tools. Discover simply isn't set up to offer a good UX on openSUSE, unfortunately.
Comment 31 Nate Graham 2023-04-09 22:15:04 UTC
Good news! I was wrong: PackageKit already has specific support for showing EULAs apart from the general issue of interactivity during updates, and the openSUSE's Zypper PackageKit plugin implements it. So we just need to wire this up in Discover.
Comment 32 jonzn4SUSE 2023-04-10 01:42:00 UTC
YEAH!!!  ;-))
So for now I'll just update via yast and will be on the look out for the next round of EULA prompts.  ;-)
Comment 33 jonzn4SUSE 2023-04-10 02:01:32 UTC
Just call me Jonz (jon z) not john.  ;-)
I updated the nvidia stuff via Yast and then ran Discovery again and all is well.  I just like how Discovery cleans up the old packages better than Yast.
Comment 34 Nate Graham 2023-04-10 15:17:18 UTC
Oh goodness, so sorry for mangling your name! I think I was on autopilot there.
Comment 35 Aleix Pol 2023-04-14 01:18:39 UTC
This is good research, thanks Jon. We already support EULA handling, the code is in PKTransaction.cpp. It would be interesting to find a good way to reproduce the issue as we need somebody to sit down and figure it out.
Comment 36 jonzn4SUSE 2023-04-24 22:18:43 UTC
Created attachment 158403 [details]
The refresh is back.

After clicking update all, I get the root password prompt and then another root password prompt for EULA, but the Discover doesn't update.


Operating System: openSUSE Tumbleweed 20230420
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Kernel Version: 6.2.10-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz
Memory: 62.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P630
Manufacturer: HP
Product Name: HP ZBook 17 G4
Comment 37 Nate Graham 2023-04-25 15:43:08 UTC
I see this in the logs:

Transactions:
 1	/13_aaadacec
/13_aaadacec	allow_cancel 1
/13_aaadacec	percentage   -1
/13_aaadacec	role         update-packages
/13_aaadacec	status       setup
/13_aaadacec	status       dep-resolve
/13_aaadacec	percentage   0
/13_aaadacec	percentage   100
/13_aaadacec	status       update
/13_aaadacec	percentage   0
/13_aaadacec	status       finished
Transactions:
 [none]
/13_aaadacec	exit code: eula-required
/13_aaadacec	error code: no-license-agreement, You've to agree/decline a license
Comment 38 jonzn4SUSE 2023-04-26 02:30:42 UTC
There is only the root password prompt 2 times, 1st prompt for the system and the 2nd prompt is for EULA.
Here is a screen recording showing the issue.
It did work the second time I hit update all, but there was no prompt for passwords.

https://youtu.be/cEKkgEVN9Cc
Comment 39 jonzn4SUSE 2023-04-26 02:31:50 UTC
Operating System: openSUSE Tumbleweed 20230420
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.8
Kernel Version: 6.2.10-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz
Memory: 62.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P630
Manufacturer: HP
Product Name: HP ZBook 17 G4
Comment 40 jonzn4SUSE 2023-04-26 02:47:05 UTC
Created attachment 158430 [details]
pkmon output 25APR23

Today there are 22 more updates and the refresh is happening again.  
I'll attach logs and another video showing the issue.

https://youtu.be/SJjdb6iY_Ng
Comment 41 jonzn4SUSE 2023-05-10 00:33:26 UTC
There are more nvidia updates today.  Is there a need for more log info?
Comment 42 jonzn4SUSE 2023-05-10 00:37:06 UTC
I just unchecked all of the nvidia update, but the app still does a refresh.
Comment 43 jonzn4SUSE 2023-05-12 09:12:32 UTC
Created attachment 158883 [details]
unistalled nvidia drivers

Removed nvidia drivers
Comment 44 jonzn4SUSE 2023-05-12 09:13:46 UTC
Created attachment 158884 [details]
Update process working

No nvidia drivers, no issues with the update process.
Comment 45 jonzn4SUSE 2023-05-12 09:16:10 UTC
On this computer.


Operating System: openSUSE Tumbleweed 20230510
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.3.1-1-default (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Xeon® CPU E3-1535M v6 @ 3.10GHz
Memory: 62.2 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics P630
Manufacturer: HP
Product Name: HP ZBook 17 G4
Comment 46 jonzn4SUSE 2023-05-13 01:43:36 UTC
Created attachment 158899 [details]
bad nvidia...

So I blocked all nvidia packages from updating and all went well.
Comment 47 jonzn4SUSE 2023-05-13 01:44:23 UTC
On this machine.

Operating System: openSUSE Tumbleweed 20230511
KDE Plasma Version: 5.27.5
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.9
Kernel Version: 6.3.1-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × Intel® Core™ i7-9850H CPU @ 2.60GHz
Memory: 125.1 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630
Manufacturer: HP
Product Name: HP ZBook 17 G6
Comment 48 jonzn4SUSE 2023-06-23 09:34:45 UTC
Issue still ongoing, do I need to post more samples?