错误一:
vmware-setup-helper requires root access
Having just installed vmplayer on openSUSE Leap 15.1 and find it can only run as root:
I/O warning : failed to load external entity "/etc/vmware/hostd/proxy.xml"
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ====
Authentication is needed to run `/usr/lib/vmware/bin/vmware-setup-helper' as the super user
Authenticating as: root
Password:
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
原因:可能是在一个用户下安装的VMware,然后在另一个用户下启动VMware,然后导致报错;
或者 不能在root账户下启动VMware,我的就是这种情况,切换到别的用户就可以了。
请看下面这句话!!!
Run it the first time as Root, to finish the setup. Then it shouldn't need root afterwards.
第一次以Root身份运行它,以完成安装设置。然后它就不需要Root了。
错误二:
$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: [my realname],,, ([my username])
Password:
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
This incident has been reported.
解决方法:
执行如下命令即可
/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 &
具体原因我也不清楚,反正问题解决了!_(:з」∠)_