web-dev-qa-db-fra.com

Comment résoudre le problème de `libdropbox_apex.so` avec la dernière Dropbox?

J'ai installé caja-dropbox package sur mon système Ubuntu MATE 19.04 aussi simple que Sudo apt-get install caja-dropbox mais il ne démarre pas à partir de l'interface graphique et me demande continuellement sur le redémarrage de Caja.

Lors du démarrage à partir du terminal, il affiche les messages d'erreur suivants:

$ 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)

Que dois-je faire pour que Dropbox fonctionne à nouveau?

3
N0rbert

La bibliothèque problématique libdropbox_apex.so est situé dans le /var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64-81.4.195 dossier.

Mais il y a une chose étrange ici - il n'a pas d'autorisations exécutables. Voici comment il diffère des autres bibliothèques:

$ ls -al libdropbox_apex.so
-rw------- 1 root root 7138143 сен 18 10:24 libdropbox_apex.so

Pour résoudre le problème, nous devons définir des autorisations de lecture et d'exécution pour ce fichier:

Sudo chmod a+rx /var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64*/libdropbox_apex.so

Mise à jour 20191109 : le nombre de bibliothèques problématiques - augmenté à 2, maintenant avec Dropbox 84.4.170 nous devons changer l'autorisation de libdropbox_sqlite_ext.so aussi:

Sudo chmod a+rx /var/lib/dropbox/.dropbox-dist/dropbox-lnx.x86_64*/libdropbox_sqlite_ext.so

puis redémarrez-le à partir de l'interface graphique ou avec caja-dropbox start -i.


Remarques:

1) cette méthode est également applicable pour 16.04 LTS, 18.04 LTS et 19.10.
2) J'ai signalé cela à LaunchPad sous la forme bug 1845876 .
3) Ticket sur le site de support Dropbox a été créé le 20191005 mais n'est toujours pas résolu.

4
N0rbert