无法解锁系统设置,例如网络设置,在 xubuntu 中进行编辑

wul*_*lxz 11 linux xubuntu xfce4 policykit

我无法在 xubuntu 14.04 上使用 xfce GUI 更改任何设置或安装任何内容。某些设置窗口具有解锁按钮,您通常单击以输入密码以获得 root 权限,但如果我单击它们,则不会发生任何事情:

在此处输入图片说明

当启动那台机器时,它要求安装语言的东西。当我尝试安装它时,出现此错误:

在此处输入图片说明

我怎样才能解决这个问题?

编辑
我只是尝试/usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1按照此处的建议开始,但失败了:

xubuntu-pool-1 vm-admin # /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1 

(polkit-gnome-authentication-agent-1:3863): GLib-CRITICAL **: g_variant_new_string: assertion 'string != NULL' failed

(polkit-gnome-authentication-agent-1:3863): polkit-gnome-1-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Run Code Online (Sandbox Code Playgroud)

EDIT2
实际上,它似乎并没有失败。它不会返回到 bash 提示符,但无论如何解锁和安装都不起作用。

Edit3
我还确保在启动时检查了“PolicyKit Authentication Agent”。

更新:
我刚刚发现,这个问题只有在通过 xrdp 登录时才会发生。如果我在本地 vmware 控制台上(这台机器是虚拟的),它工作得很好。所以这个问题一定与xrdp有关。

使用普通用户的 polkit 命令的输出:

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

** (polkit-gnome-authentication-agent-1:4540): WARNING **: Unable to register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Cannot register authentication agent: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: Cannot determine user of subject
Run Code Online (Sandbox Code Playgroud)

对于带 sudo 和带 sudo 的 beeing 命令,此输出是相同的。

xCa*_*are 0

这可能是一个错误,我不知道如何扭转这个问题,但这里有一个想法:也许您可以创建一个新的管理员帐户,验证您的设置是否正常工作,并将您的数据移植到新帐户,以这种方式获得访问权限。我过去曾被锁定我的操作系统,这个技巧有时会起作用,而且我显然不是唯一的一个:

Ubuntu 论坛

它可能不起作用,但如果您没有其他选择,可能值得尝试。无论如何,祝你好运。