Ubuntu 20.04 坚果云无法正常启动

    科技2025-04-17  13

    问题描述

    在Ubuntu 20.04 OS中使用dpkg安装坚果云deb包

    sudo dpkg -i nautilus_nutstore_amd64.deb

    安装依赖

    sudo apt-get install -f

    安装完成后无法启动程序  

    原因

    这篇博文中说可能是python版本依赖问题。我查了下python版本,python2已经安装过了,并且python指向的默认版本已经是python2。

    ~$ ls -l /usr/bin/python* lrwxrwxrwx 1 root root 7 4月 15 18:45 /usr/bin/python -> python2 lrwxrwxrwx 1 root root 9 3月 13 2020 /usr/bin/python2 -> python2.7 -rwxr-xr-x 1 root root 3629032 8月 4 19:16 /usr/bin/python2.7 lrwxrwxrwx 1 root root 9 9月 29 08:37 /usr/bin/python3 -> python3.8 -rwxr-xr-x 1 root root 5486352 7月 28 20:59 /usr/bin/python3.8 -rwxr-xr-x 1 root root 384 3月 28 2020 /usr/bin/python3-futurize -rwxr-xr-x 1 root root 388 3月 28 2020 /usr/bin/python3-pasteurize

    在终端里直接运行python也是默认python2,说明我的这个不是python依赖版本的问题。

    ~$ python Python 2.7.18 (default, Aug 4 2020, 11:16:42) [GCC 9.3.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>

      我又按照这篇博文中的方法试过了,完全没有反应。

    仔细看了一下shell里面的提示,发现是缺少libnautilus-extension-dev这个包,最后在这篇文章里找到了答案。

     

    解决方法

    Ubuntu20.04版本需要从源代码编译安装   首先安装依赖包

    sudo apt-get install libglib2.0-dev libgtk2.0-dev libnautilus-extension-dev gvfs-bin python3-gi gir1.2-appindicator3-0.1

      下载Nautilus插件源代码包

    wget https://www.jianguoyun.com/static/exe/installer/nutstore_linux_src_installer.tar.gz

      解压缩,编译和安装Nautilus插件

    tar zxf nutstore_linux_src_installer.tar.gz cd nutstore_linux_src_installer && ./configure && make sudo make install

      重启Nautilus

    nautilus -q

      自动下载和安装坚果云其他二进制组件

    ./runtime_bootstrap

      具体参考源代码包里面的README文件:

    This is open source part of Nutstore, which is composed of nautilus extension. How to Build Nutstore Runtime From Source Tarball -------------------------------------------------- 1) Package dependency. You need the following packages (or equivalent): glib2.0-dev gtk2.0-dev gvfs-bin JRE(java runtime environment) libnautilus-extension-dev on ubuntu distribution after 10.04, you can install them as below: $> sudo apt-get install libnautilus-extension-dev openjdk-8-jre-headless gvfs-bin libgtk2.0-dev python-notify on fedora core, CentOS or RHEL, you can install them as below: $> sudo yum nautilus-devel glib2-devel gtk2-devel jre gvfs notify-python We currently only support **GNOME** and **Unity** desktop. If you would like to help us port nutstore to other window management system, e.g. KDE, Xfce you may mail us by contactus@nutstore.net, We are pleased to support you. All the code developed based on the Nutstore Nautilus Plugin should be redistributed under GPL license. 2) Build the Nautilus Plugin $> ./configure && make $> sudo make install 3) Restart Nautilus $> nautilus -q 4) Fetch th binary distribution package and install it $> ./runtime_bootstrap 5) Done! For Gnome desktop, nutstore is on "Applications->Internet->Nutstore" of GNOME application launch panel. For Unity dekstop, you need logout the current unity session to enable above changes. And then, search "Nutstore" in the application panel. Special notice only for Arch Linux user: As nutstore only supports python2 currently, you need to install python2 package manually, and replace the first line of ~/.nutstore/dist/bin/nutstore-pydaemon.py. Unfortunately, you may need to re-do the change everytime that nutstore is upgraded automatically. from #!/usr/bin/env python to #!/usr/bin/env python2
    Processed: 0.009, SQL: 8