Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ubuntu App Centre cant install apps #1070

Open
2 tasks done
KieranReck opened this issue Oct 17, 2024 · 3 comments
Open
2 tasks done

Ubuntu App Centre cant install apps #1070

KieranReck opened this issue Oct 17, 2024 · 3 comments
Labels
bug Something isn't working needs-triage Any bug that requires classification by a contributor

Comments

@KieranReck
Copy link

Describe the bug
When trying to install apps using Ubuntu's App Centre you get a rather unhelpful error message stating "something went wrong..were sorry, but we're not sure what the error is."
Screenshot from 2024-10-17 08-35-29

The has happened with every app I have tried to install unsing App Centre (eg Opera, freeCAD, etc), and has also happened when I try to use App Centre to install a .deb package.

This error doesn't occur if I log out and run a standard Ubuntu session on the same install.

The point at which Regolith seems to be falling down is when App Centre tries to pop up an authentication dialog asking for your password to confirm the install. Looking in the logs this is backed up by a polkit error from snapd access.go:66: polkit error: Authorization requires interaction
Screenshot from 2024-10-17 08-36-23

To Reproduce
Steps to reproduce the behavior:

  • Fresh Regolith3.2 install on an already existing Ubuntu 24.04.1 setup (which has already had i3 installed previously, not sure if that is relevant).
  • Open "App Centre" and try to install anything, you get the error message

Expected behavior
A clear and concise description of what you expected to happen.

  • Open App Centre
  • Find an app
  • Click "Install"
  • Enter your password in the popup authentication dialog
  • install happens

Screenshots
If applicable, add screenshots to help explain your problem.

Configuration file(s)
Please attach or mention any customization you've done to configuration files which might have an impact on the bug you are describing. It'll help us determine the root cause of your issue.

  • It doesn't feel like any of my customization would be related to this issue, let me know if you need more info

Installation Details

  • Regolith Install Stage: (stable)
  • Regolith Version: [3.2]
  • Host OS: [Ubuntu 24.04.1]

Additional context
Add any other context about the problem here.

I looked around for solutions and I saw mention of needing to change permissions on a polkit file, however I quickly felt out of my depth trying to judge if these solutions were even related to this issue, so I didn't try any of them. I did notice that /usr/libexec/polkit-agent-helper-1 seems to have a broken link of some kind? I have included a screenshot that i'm sure you guys will understand better than I do.
Screenshot from 2024-10-17 08-31-43

Please feel free to ask me to try things!

@KieranReck KieranReck added bug Something isn't working needs-triage Any bug that requires classification by a contributor labels Oct 17, 2024
@SoumyaRanjanPatnaik
Copy link

Can you check if mate-polkit is running? Make sure it is, and try running pkexec. LMK if you don't get the authentication dialog.

@KieranReck
Copy link
Author

running systemctl status mate-polkit resulted in:

"service could not be found"

running systemctl status polkit resulted in this set of messages:

Nov 02 06:56:46 kieran-XPS-ubuntu systemd[1]: Started polkit.service - Authorization Manager.
Nov 02 06:56:46 kieran-XPS-ubuntu polkitd[23283]: Acquired the name org.freedesktop.PolicyKit1 on the system bus
Nov 02 06:56:47 kieran-XPS-ubuntu polkitd[23283]: Registered Authentication Agent for unix-process:6694:11878 (system bus name :1.529 [pkexec], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)
Nov 02 06:56:47 kieran-XPS-ubuntu polkitd[23283]: Identity unix-group:admin' is not valid, ignoring: No UNIX group with name admin: No such file or directory
Nov 02 06:56:49 kieran-XPS-ubuntu polkitd[23283]: Operator of unix-process:6694:11878 FAILED to authenticate to gain authorization for action org.freedesktop.policykit.exec for unix-process:6694:11878 [bash] (owned by unix-user:kieran)
Nov 02 06:56:49 kieran-XPS-ubuntu polkitd[23283]: Unregistered Authentication Agent for unix-process:6694:11878 (system bus name :1.529, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8)

Running pkexec prompts me to enter my password, then throws this error:

polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ====
Error executing command as another user: Not authorized

I looked up these errors online, but I didn't want to jump into things like adding my user to the admin group if that isn't the correct process, so I haven't tried anything further yet to solve these errors. Do you have any suggestions?

Additionally, I looked into polkit, polkit-mate, and authentication agents. Am I right in thinking that Regolith should have come with one already installed and running? Possibly the built in Gnome flashback authentication agent?

Treat me as a noob here, I'm still trying to get my head around all of this stuff

@eldenpark
Copy link

Having the same issue here. Running Regolith 3.2 on a fresh install of Ubuntu 24.04.1.

"Ubuntu user authentication popup" does not show up (or rather it is immediately closed in a blink of a second when it was supposed to wait for a user to type in the password)

As a workaround, I can run the following command and then keep the process running to show that popup.

/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

But this isn't the way we would go after. Waiting for some thoughts!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Any bug that requires classification by a contributor
Projects
None yet
Development

No branches or pull requests

3 participants