我无法在 Ubuntu 18.04 上安装 Dropbox。每当我跑步sudo apt install nautilus-dropbox
时,我都会得到:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
nautilus-dropbox : Depends: dropbox but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
输出apt-cache policy nautilus-dropbox
:
nautilus-dropbox:
Installed: (none)
Candidate: 2019.02.14
Version table:
2019.02.14 500
500 http://linux.dropbox.com/ubuntu bionic/main i386 Packages
500 http://linux.dropbox.com/ubuntu bionic/main amd64 Packages
2015.10.28-1ubuntu2 500
500 http://lk.archive.ubuntu.com/ubuntu bionic/multiverse amd64 Packages
100 /var/lib/dpkg/status
而且我没有阅读它,我在终端中使用了它:
cd ~ && wget -O - "https://www.dropbox.com/download?plat=lnx.x86_64" | tar xzf -
接下来,从新创建的.dropbox-dist
文件夹中运行 Dropbox 守护程序:
~/.dropbox-dist/dropboxd
的输出~/.dropbox-dist/dropboxd
dropbox: locating interpreter
dropbox: logging to /tmp/dropbox-antifreeze-w9d19V
dropbox: initializing
dropbox: initializing python 3.7.2
dropbox: setting program path '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/dropbox'
dropbox: setting home path '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155'
dropbox: setting python path '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155:/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/python-packages-37.zip'
dropbox: python initialized
dropbox: running dropbox
dropbox: setting args
dropbox: applying overrides
dropbox: running main script
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/cryptography.hazmat.bindings._constant_time.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/cryptography.hazmat.bindings._openssl.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/cryptography.hazmat.bindings._padding.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/psutil._psutil_linux.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/psutil._psutil_posix.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/linuxffi.pthread._linuxffi_pthread.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/cpuid.compiled._cpuid.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/apex._apex.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/tornado.speedups.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/linuxffi.resolv.compiled._linuxffi_resolv.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/librsyncffi.compiled._librsyncffi.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/linuxffi.sys.compiled._linuxffi_sys.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/posixffi.libc._posixffi_libc.cpython-37m-x86_64-linux-gnu.so'
dropbox: load fq extension '/home/somlak/.dropbox-dist/dropbox-lnx.x86_64-85.4.155/linuxffi.gnu.compiled._linuxffi_gnu.cpython-37m-x86_64-linux-gnu.so'
Traceback (most recent call last):
File "dropbox/client/main.pyc", line 7919, in main
File "dropbox/client/main.pyc", line 7843, in main_startup
File "dropbox/client/main.pyc", line 942, in __init__
File "dropbox/sync_engine_boundary/factory.pyc", line 147, in make_default_file_system
File "dropbox/sync_engine_boundary/factory.pyc", line 99, in __init__
File "dropbox/sync_engine_boundary/factory.pyc", line 118, in _initialize_classes
File "dropbox/sync_engine/nucleus/classic_client/sync_engine.pyc", line 276, in <module>
File "dropbox/sync_engine/nucleus/classic_client/thin_adapter/in_proc.pyc", line 98, in <module>
File "dropbox/sync_engine/nucleus/classic_client/wrapped_thin_client.pyc", line 26, in <module>
File "dropbox/sync_engine/nucleus/thin_client/client.pyc", line 28, in <module>
File "dropbox/foundation/metrics/amp/remote_sink.pyc", line 10, in <module>
ImportError: libatomic.so.1: 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 7919, in main\n', ' File "dropbox/client/main.pyc", line 7843, in main_startup\n', ' File "dropbox/client/main.pyc", line 942, in __init__\n', ' File "dropbox/sync_engine_boundary/factory.pyc", line 147, in make_default_file_system\n', ' File "dropbox/sync_engine_boundary/factory.pyc", line 99, in __init__\n', ' File "dropbox/sync_engine_boundary/factory.pyc", line 118, in _initialize_classes\n', ' File "dropbox/sync_engine/nucleus/classic_client/sync_engine.pyc", line 276, in <module>\n', ' File "dropbox/sync_engine/nucleus/classic_client/thin_adapter/in_proc.pyc", line 98, in <module>\n', ' File "dropbox/sync_engine/nucleus/classic_client/wrapped_thin_client.pyc", line 26, in <module>\n', ' File "dropbox/sync_engine/nucleus/thin_client/client.pyc", line 28, in <module>\n', ' File "dropbox/foundation/metrics/amp/remote_sink.pyc", line 10, in <module>\n', 'ImportError: libatomic.so.1: cannot open shared object file: No such file or directory\n'] (error 3)
Aborted (core dumped)
我跑之后
grep dropbox /etc/apt/sources.list /etc/apt/sources.list.d/* /etc/apt/sources.list.d/dropbox.list:deb [arch=i386,amd64] http://linux .dropbox.com/ubuntu仿生主 grep:/etc/apt/sources.list.d/dropbox.list.save:权限被拒绝
在 Xenial 和 Bionic 上,这似乎是一个可重现的问题。Dropbox 的存储库
dropbox
提供的包有一些奇怪的依赖树,因为输出是apt rdepends dropbox
这里的依赖也是冲突包,我认为这很奇怪,需要从 Dropbox 端纠正。
该软件包
nautilus-dropbox
也可在 Ubuntu 的 Multiverse 存储库中找到。因此,我建议您删除 Dropbox 的存储库。首先使用以下方法确定哪个文件具有 Dropbox 存储库的条目:
使用 sudo 权限和一些文本编辑器编辑该文件,例如 ,
nano
并添加一个#
注释该行。要编辑运行:更新 APT 的缓存并安装 nautilus-dropbox:
如果您想使用 Dropbox 守护程序,请使用以下方法安装缺少的库