如何使用 synaptic-pkexec?

如何使用 synaptic-pkexec?

我假设这个 (synaptic-pkexec) 是在最近的升级中安装的?问题是,我如何使用它?

当我运行它时,我看到了一条横幅:

==== AUTHENTICATING FOR com.ubuntu.pkexec.synaptic ===

(红色)然后:

Authentication is required to run the Synaptic Package Manager
Multiple identities can be used for authentication:

然后是用户姓名的编号列表,几个“,” (我认为缺少 GECOS 信息),然后是用户名。

如果我选择我的号码,我会收到密码提示。输入密码然后:

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.

(给谁?)

我该如何配置polkit-agent-helper-1(或其他什么?)来“授权 [原文如此]”我自己?
而且我也想以非 root 身份运行它。
我现在会坚持使用常规突触...

答案1

查找信息synaptic-pkexec很容易:

w3@aardvark:~(1)$ locate synaptic-pkexec
/usr/bin/synaptic-pkexec
w3@aardvark:~(0)$ dpkg -S /usr/bin/synaptic-pkexec
synaptic: /usr/bin/synaptic-pkexec
w3@aardvark:~(0)$ dpkg -L synaptic | grep -E 'pkexec|man/|READ|doc'
/usr/bin/synaptic-pkexec
/usr/share/man/pt_BR
/usr/share/man/pt_BR/man8
/usr/share/man/pt_BR/man8/synaptic.8.gz
/usr/share/man/man8
/usr/share/man/man8/synaptic.8.gz
/usr/share/man/tr
/usr/share/man/tr/man8
/usr/share/man/tr/man8/synaptic.8.gz
/usr/share/man/fr
/usr/share/man/fr/man8
/usr/share/man/fr/man8/synaptic.8.gz
/usr/share/man/es
/usr/share/man/es/man8
/usr/share/man/es/man8/synaptic.8.gz
/usr/share/polkit-1/actions/com.ubuntu.pkexec.synaptic.policy
/usr/share/doc
/usr/share/doc/synaptic
/usr/share/doc/synaptic/copyright
/usr/share/doc/synaptic/README.tasks
/usr/share/doc/synaptic/NEWS.gz
/usr/share/doc/synaptic/README.Debian
/usr/share/doc/synaptic/README.supported
/usr/share/doc/synaptic/TODO.gz
/usr/share/doc/synaptic/README
/usr/share/doc/synaptic/NEWS.Debian.gz
/usr/share/doc/synaptic/changelog.gz
w3@aardvark:~(0)$ file /usr/bin/synaptic-pkexec
/usr/bin/synaptic-pkexec: POSIX shell script, ASCII text executable

有很多东西供您阅读,其中包括/usr/bin/synaptic-pkexec: POSIX shell script, ASCII text executable,内容很短,可以包含在这里:

#!/bin/sh
pkexec "/usr/sbin/synaptic" "$@"

但我有一个问题:为什么,为什么你要使用一个你不理解的工具箱?

然而,进一步阅读您格式不佳的 Q 后,我推测您正尝试synaptic从非 GUI 会话运行。synaptic是一个 GUI 工具。apt,,apt-getaptitude包的命令行工具。

相关内容