小编Jam*_*nne的帖子

无法安装或删除软件,因为身份验证服务不可用

我正在尝试通过软件中心安装 Flash,但出现此错误:

"Software can't be installed or removed because the authentication service is not 
available. (org.freedesktop.PolicyKit.Error.Failed: ('system-bus-name', {'name':  
':1.51'}): org.debian.apt.install-or-remove-packages" 
Run Code Online (Sandbox Code Playgroud)

我检查了启动应用程序,发现检查了策略套件身份验证代理。

然后我尝试使用 /usr/lib/policykit-1-gnome/polkit-gnome-authentication-agent-1

并收到此错误消息:

(polkit-gnome-authentication-agent-1:25835): polkit-gnome-1-WARNING **:  
Unable to determine the session we are in: No session for pid 25835
Run Code Online (Sandbox Code Playgroud)

通过使用以 root 模式运行软件中心,似乎可以避免该错误

gksu software-center  
Run Code Online (Sandbox Code Playgroud)

或者通过命令模式安装它,例如 sudo apt-get install flashplugin-installer

software-center authentication policy

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

authentication ×1

policy ×1

software-center ×1