当我从笔记本电脑上卸载 Gnome3 时遇到了一点问题(让它变慢了),并且软件包可能已经卸载了 nautilus 在该过程中需要的一些东西。现在,当我从 Unity 侧栏中单击 nautilus 时,它什么也不做。我在终端中输入 nautilus,这是它输出的内容:
tommydrum@crazypeople-ubuntu:~$ nautilus
Could not register the application: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: No such interface `org.gtk.Actions' on object at path /org/gnome/Nautilus
Run Code Online (Sandbox Code Playgroud)
当我从 unity 中右键单击 nautilus 并单击一个子文件夹时,它可以工作,但当我输入 nautilus 时就不行了/home/tommydrum/Downloads。当我以 root 身份运行 nautilus 时,会发生这种情况(它确实有效,但这是输出):
tommydrum@crazypeople-ubuntu:~$ sudo -i nautilus
[sudo] password for tommydrum:
(nautilus:14182): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Initializing nautilus-dropbox 1.4.0
Initializing nautilus-open-terminal extension
(opens now..) (then I close it, goes back to commandline)
Run Code Online (Sandbox Code Playgroud)
任何想法我可以重新安装什么包?或者我可能不小心卸载了什么包。
这个问题可能源于您卸载了 GNOME 3。我不知道您正在运行什么版本的 Ubuntu,但我知道在 12.10 版中,Ubuntu 实际上附带了比最新 GNOME 版本更旧的 Nautilus 版本。
无论如何,您一定在升级过程中在某处切换了 Nautilus 版本,并且一些重要文件丢失了
在不完全了解系统的情况下,我最好的建议是简单地清除并重新安装 Nautilus。
这可以通过以下命令完成:
sudo killall nautilus - 这将确保您在开始使用它之前杀死 Nautilus 程序。
sudo apt-get remove --purge nautilus - 这将完全删除 Nautilus 和任何残留的配置文件。
sudo apt-get update - 这将确保您的来源是最新的。
sudo apt-get install nautilus - 这将再次全新安装 Nautilus。
资料来源:
http://www.omgubuntu.co.uk/2012/08/ubuntu-12-10-will-ship-with-older-version-of-nautilus https://launchpad.net/ubuntu/+source/nautilus/ 1:3.5.90.really.3.4.2-0ubuntu1/+build/3739314