我安装了个base版,然后安装xfce,但是在thunar里面点击左侧盘符不会自动挂载或者提示输入密码挂载,而是直接报错。
应该是需要安装对应功能的包,我网上搜了下,好像是需要: xfce-polkit,在仓库里好像没有这个包,请教下应该如何处理?
(其实默认KDE是很好用的,我只是好奇安装base版折腾测试了下)
我安装了个base版,然后安装xfce,但是在thunar里面点击左侧盘符不会自动挂载或者提示输入密码挂载,而是直接报错。
应该是需要安装对应功能的包,我网上搜了下,好像是需要: xfce-polkit,在仓库里好像没有这个包,请教下应该如何处理?
(其实默认KDE是很好用的,我只是好奇安装base版折腾测试了下)
可以试试安装polkit-gnome来提供polkit集成,应该会自动依赖polkit
显示这个包是已经安装的,但是看安装的文件又好像是缺少的:
$ oma files polkit-gnome | head
polkit-gnome: /etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
polkit-gnome: /usr/libexec/polkit-gnome-authentication-agent-1
polkit-gnome: /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
polkit-gnome: /usr/share/doc/polkit-gnome/COPYING
polkit-gnome: /usr/share/locale/ar/LC_MESSAGES/polkit-gnome-1.mo
polkit-gnome: /usr/share/locale/be/LC_MESSAGES/polkit-gnome-1.mo
polkit-gnome: /usr/share/locale/bn_IN/LC_MESSAGES/polkit-gnome-1.mo
polkit-gnome: /usr/share/locale/ca/LC_MESSAGES/polkit-gnome-1.mo
polkit-gnome: /usr/share/locale/ca@valencia/LC_MESSAGES/polkit-gnome-1.mo
polkit-gnome: /usr/share/locale/cs/LC_MESSAGES/polkit-gnome-1.mo$ ls /usr/lib/polkit*
polkit-agent-helper-1 polkitd
比如这个/usr/lib 目录下的文件就不存在,请问如何重新安装这个包?我尝试 oma remove 提示我这个是重要系统软件不允许移除。
$ oma remove polkit-gnome
==== AUTHENTICATING FOR org.freedesktop.systemd1.manage-units ====
Authentication is required to start transient unit ‘oma.service’.
Authenticating as: Yan Qian (qian)
Password:
==== AUTHENTICATION COMPLETE ====
ERROR The current operation would remove key AOSC OS components. If we
proceed, the system features below will no longer be available:* Mouse input support * Keyboard input support ERROR To avoid system failure, oma has aborted the operation.
我刚查了下帮助是这样:
$ oma install polkit-gnome --reinstall
但重新安装后也还是一样的问题,/usr/lib 下并没有polkit-gnome那个文件夹。
我看了下这个自启动程序文件中的Exec开头的这一行有问题:
$ grep Exec /etc/xdg/autostart/xfce-polkit-gnome-authentication-agent-1.desktop
Exec=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
将其改为下面这样就可以了:
Exec=/usr/libexec/polkit-gnome-authentication-agent-1
好的,我们推个修复