我无法在 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/ubuntubionic main grep:/etc/apt/sources.list.d/dropbox.list.save:权限被拒绝
答案1
这似乎是 Xenial 和 Bionic 上可重现的问题。dropbox
由Dropbox 的存储库有一些奇怪的依赖树,因为输出的apt rdepends dropbox
是
dropbox
Reverse Depends:
Conflicts: nautilus-dropbox
Depends: nautilus-dropbox
这里的依赖关系也是冲突的包,我认为这很奇怪,需要从 Dropbox 方面进行纠正。
该软件包nautilus-dropbox
也可在 Ubuntu 的 Multiverse 存储库中找到。因此,我建议您删除 Dropbox 的存储库。
首先使用以下命令确定哪个文件具有 Dropbox 存储库的条目:
grep dropbox /etc/apt/sources.list /etc/apt/sources.list.d/*.list
使用 sudo 权限和一些文本编辑器(例如)编辑该文件nano
,然后添加注释#
以注释该行。要编辑,请运行:
sudo nano /path/to/file
更新 APT 的缓存并安装 nautilus-dropbox:
sudo apt update
sudo apt install nautilus-dropbox
如果你想使用 Dropbox 守护进程,请使用以下方式安装缺少的库
sudo apt-get install libatomic1