我需要奔跑sudo balena-etcher
,而且我一直在"Error: No polkit authentication agent found"
,我似乎需要polkit-gnome-1
运行类似的东西,但是每当我尝试运行它时,我都会收到错误,因为systemd/system/polkit.service
它已经在运行
被屏蔽的错误信息是因为我屏蔽了该服务以尝试运行polkit-gnome-1
但没有成功。
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1
(polkit-gnome-authentication-agent-1:832242): polkit-gnome-1-WARNING **: 20:21:56.976: Error getting authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Unit polkit.service is masked.
我可能误解了什么,但我只是想能够sudo <gui-app/electron app/balena-etcher>
polkit
否则我就不跑了
~ ➜ ps aux | grep polkit
<nothing>
Ubuntu 22.04,Wayland,Gnome
编辑1:
按照建议,输出dpkg -l | grep polk
~ ➜ dpkg -l | grep polk
ii gir1.2-polkit-1.0 0.105-33 amd64 GObject introspection data for PolicyKit
ii libpolkit-agent-1-0:amd64 0.105-33 amd64 PolicyKit Authentication Agent API
ii libpolkit-gobject-1-0:amd64 0.105-33 amd64 PolicyKit Authorization API
ii mate-polkit:amd64 1.26.0-1 amd64 MATE authentication agent for PolicyKit-1
ii mate-polkit-bin 1.26.0-1 all MATE authentication agent for PolicyKit-1 (executable wrapper script)
ii mate-polkit-common 1.26.0-1 amd64 MATE authentication agent for PolicyKit-1 (common files)
ii pkexec 0.105-33 amd64 run commands as another user with polkit authorization
ii policykit-1 0.105-33 amd64 transitional package for polkitd and pkexec
ii polkitd 0.105-33 amd64 framework for managing administrative policies and privileges