PyR*_*lez 0 xfce synaptic authentication
所以我用 Xfce (使用 crouton)安装了 Ubuntu 并尝试运行 synaptic 并遇到了以下问题:
$ synaptic-pkexec
==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===
Authentication is required to run the Synaptic Package Manager
Authenticating as: *redacted*
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.
Run Code Online (Sandbox Code Playgroud)
我使我的用户成为 root 用户(我可以使用安装和卸载东西apt-get)。怎么了?
小智 5
与它一起使用sudo
sudo synaptic-pkexec
Run Code Online (Sandbox Code Playgroud)
当我尝试在 Debian 上全新安装 Xfce4 时为我工作;应该也适用于 Ubuntu。
此外,当我进行全新安装时,我无法以图形方式(通过 GUI)启动 synaptic。解决此问题的方法是安装以下软件包:
sudo apt install synaptic apt-xapian-index policykit-1-gnome
Run Code Online (Sandbox Code Playgroud)
policykit-1-gnome使 synaptic 的 GUI 身份验证对话框成为可能,否则 synaptic 将运行,但不会在 GUI 上显示任何内容。
apt-xapian-index基本上是为了维护包索引。