我正在尝试通过软件中心安装 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