![如何修复最新 Dropbox 的“libdropbox_apex.so”问题?](https://linux22.com/image/916239/%E5%A6%82%E4%BD%95%E4%BF%AE%E5%A4%8D%E6%9C%80%E6%96%B0%20Dropbox%20%E7%9A%84%E2%80%9Clibdropbox_apex.so%E2%80%9D%E9%97%AE%E9%A2%98%EF%BC%9F.png)
我已经caja-dropbox
在我的 Ubuntu MATE 19.04 系统上安装了简单的软件包,sudo apt-get install caja-dropbox
但它没有从 GUI 启动,而是不断询问我有关 Caja 重启的问题。
从终端启动时,它会显示以下错误消息:
$ caja-dropbox start -i
Starting Dropbox...dropbox: locating interpreter
dropbox: logging to /tmp/dropbox-antifreeze-lmlIjG
dropbox: initializing
dropbox: initializing python 3.7.2
dropbox: setting program path '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/dropbox'
dropbox: setting home path '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195'
dropbox: setting python path '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195:/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/python-packages-37.zip'
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/cryptography.hazmat.bindings._constant_time.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/cryptography.hazmat.bindings._openssl.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/cryptography.hazmat.bindings._padding.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/psutil._psutil_linux.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/psutil._psutil_posix.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/linuxffi.pthread._linuxffi_pthread.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/cpuid.compiled._cpuid.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/tornado.speedups.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195/apex._apex.cpython-37m-x86_64-linux-gnu.so'
Traceback (most recent call last):
File "dropbox/client/main.pyc", line 18, in <module>
File "dropbox/client/features/catalina_migration/catalina_migration_controller.pyc", line 19, in <module>
File "dropbox/client/features/catalina_migration/catalina_account_context.pyc", line 13, in <module>
File "dropbox/client/features/catalina_migration/alert_dialog.pyc", line 10, in <module>
File "dropbox/client/features/file_locking/base_file_locking_alert.pyc", line 14, in <module>
File "dropbox/client/features/legacy_ui_launcher.pyc", line 21, in <module>
File "dropbox/client/configuration/manager.pyc", line 45, in <module>
File "dropbox/client/configuration/utils.pyc", line 27, in <module>
File "dropbox/client/notifications/loud_notifications/do_not_disturb/model.pyc", line 51, in <module>
File "ui/common/preferences.pyc", line 21, in <module>
File "dropbox/client/authentication/manager.pyc", line 36, in <module>
File "dropbox/client/authentication/control_flow_helpers.pyc", line 3, in <module>
File "dropbox/client/high_trace.pyc", line 53, in <module>
File "dropbox/client/logging/dbxlog_logger.pyc", line 11, in <module>
File "apex/dbxlog.pyc", line 14, in <module>
File "<_bootstrap_overrides>", line 153, in load_module
ImportError: libdropbox_apex.so: cannot open shared object file: No such file or directory
!! dropbox: fatal python exception:
['Traceback (most recent call last):\n', ' File "dropbox/client/main.pyc", line 18, in <module>\n', ' File "dropbox/client/features/catalina_migration/catalina_migration_controller.pyc", line 19, in <module>\n', ' File "dropbox/client/features/catalina_migration/catalina_account_context.pyc", line 13, in <module>\n', ' File "dropbox/client/features/catalina_migration/alert_dialog.pyc", line 10, in <module>\n', ' File "dropbox/client/features/file_locking/base_file_locking_alert.pyc", line 14, in <module>\n', ' File "dropbox/client/features/legacy_ui_launcher.pyc", line 21, in <module>\n', ' File "dropbox/client/configuration/manager.pyc", line 45, in <module>\n', ' File "dropbox/client/configuration/utils.pyc", line 27, in <module>\n', ' File "dropbox/client/notifications/loud_notifications/do_not_disturb/model.pyc", line 51, in <module>\n', ' File "ui/common/preferences.pyc", line 21, in <module>\n', ' File "dropbox/client/authentication/manager.pyc", line 36, in <module>\n', ' File "dropbox/client/authentication/control_flow_helpers.pyc", line 3, in <module>\n', ' File "dropbox/client/high_trace.pyc", line 53, in <module>\n', ' File "dropbox/client/logging/dbxlog_logger.pyc", line 11, in <module>\n', ' File "apex/dbxlog.pyc", line 14, in <module>\n', ' File "<_bootstrap_overrides>", line 153, in load_module\n', 'ImportError: libdropbox_apex.so: cannot open shared object file: No such file or directory\n'] (error 3)
我应该怎么做才能让 Dropbox 重新运行?
答案1
有问题的库libdropbox_apex.so
位于/var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195
文件夹中。
但这里有一个奇怪的事情——它没有可执行权限。这就是它与其他库的不同之处:
$ ls -al libdropbox_apex.so
-rw------- 1 root root 7138143 сен 18 10:24 libdropbox_apex.so
为了解决这个问题,我们需要为这个文件设置读取和执行权限:
sudo chmod a+rx /var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64*/libdropbox_apex.so
更新 20191109:有问题的库的数量 - 增加到 2 个,现在使用 Dropbox 84.4.170,我们需要更改以下权限libdropbox_sqlite_ext.so
:
sudo chmod a+rx /var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64*/libdropbox_sqlite_ext.so
然后从 GUI 或使用 重新启动它caja-dropbox start -i
。
笔记:
1)此方法也适用于 16.04 LTS、18.04 LTS 和 19.10。2
)我向 LaunchPad 报告了此问题,如下所示错误 1845876。
3)Dropbox 支持网站上的票证创建于 20191005 但仍未解决。