Nautilus:创建代理时出错:调用 org.gtk.vfs.GPhoto2VolumeMonitor 的 StartServiceByName 时出错:已超时(g-io-error-quark,24)

Nautilus:创建代理时出错:调用 org.gtk.vfs.GPhoto2VolumeMonitor 的 StartServiceByName 时出错:已超时(g-io-error-quark,24)

我正在使用 Ubuntu 20.04.1 LTS。

启动 nautilus 时(从桌面或任何使用文件系统的应用程序)该过程会挂起几秒钟才打开 UI。

从终端启动时,进程挂起,然后出现以下错误

Error creating proxy: Error calling StartServiceByName for org.gtk.vfs.GPhoto2VolumeMonitor: Timeout was reached (g-io-error-quark, 24)

此后,用户界面终于打开了。

我运行了journalctl,在我开始该过程的时候,出现了以下条目:

Jan 06 17:34:00 <some-name> kernel: sof-audio-pci 0000:00:1f.3: firmware boot complete
Jan 06 17:34:00 <some-name> kernel: sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
Jan 06 17:33:55 <some-name> systemd[1]: Started Hostname Service.
Jan 06 17:33:55 <some-name> dbus-daemon[1112]: [system] Successfully activated service 'org.freedesktop.hostname1'
Jan 06 17:33:54 <some-name> systemd[1]: Starting Hostname Service...
Jan 06 17:33:54 <some-name> dbus-daemon[1112]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.278' (uid=1000 pid=27483 comm="nautilus " label="unconfined")
Jan 06 17:33:29 <some-name> systemd[2658]: Failed to start Virtual filesystem service - digital camera monitor.
Jan 06 17:33:29 <some-name> systemd[2658]: gvfs-gphoto2-volume-monitor.service: Failed with result 'exit-code'.
Jan 06 17:33:29 <some-name> systemd[2658]: gvfs-gphoto2-volume-monitor.service: Main process exited, code=exited, status=203/EXEC
Jan 06 17:33:29 <some-name> systemd[27492]: gvfs-gphoto2-volume-monitor.service: Failed at step EXEC spawning /usr/libexec/gvfs-gphoto2-volume-monitor: Permission denied
Jan 06 17:33:29 <some-name> systemd[27492]: gvfs-gphoto2-volume-monitor.service: Failed to execute command: Permission denied
Jan 06 17:33:29 <some-name> systemd[2658]: Starting Virtual filesystem service - digital camera monitor...
Jan 06 17:33:29 <some-name> dbus-daemon[2672]: [session uid=1000 pid=2672] Activating via systemd: service name='org.gtk.vfs.GPhoto2VolumeMonitor' unit='gvfs-gphoto2-volume-monitor.service' requested by ':1.466' (uid=1000 pid=27483 comm="nautilus " label="unconfined")
Jan 06 17:33:23 <some-name> kernel: sof-audio-pci 0000:00:1f.3: firmware boot complete
Jan 06 17:33:23 <some-name> kernel: sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
Jan 06 17:33:15 <some-name> systemd[2658]: Started VTE child process 27467 launched by gnome-terminal-server process 26676.

我认为该问题尤其与以下错误有关:

Jan 06 17:33:29 <some-name> systemd[27492]: gvfs-gphoto2-volume-monitor.service: Failed at step EXEC spawning /usr/libexec/gvfs-gphoto2-volume-monitor: Permission denied
Jan 06 17:33:29 <some-name> systemd[27492]: gvfs-gphoto2-volume-monitor.service: Failed to execute command: Permission denied

运行sudo nautilus开始正常。

知道为什么 Nautilus 需要一些特殊权限才能启动吗?

答案1

查看文件的权限/usr/libexec/,似乎gvfs-gphoto2-volume-monitor只有这个文件没有执行权限。

所以chmod +x /usr/libexec/gvfs-gphoto2-volume-monitor解决了我的问题

相关内容