Duplicity 0.7.10 在 Ubuntu 14.04 中升级 librsync 后失败

ale*_*exw 2 ubuntu installation python dependencies duplicity

我花了几个小时尝试配置Duplicity以对 Google Drive 执行自动远程备份。在这一点上,可以肯定地说我正处于自己的私人依赖地狱中。

使用我的发行版 (0.6.x) 附带的 Duplicity 版本,我收到一个错误:

BackendException:Google Docs 后端需要 Google 数据 API Python 客户端库(请参阅http://code.google.com/p/gdata-python-client/)。

尽管我安装了 Google API Python 客户端。所以,我决定尝试升级双重性,但失败了:

x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c duplicity/_librsyncmodule.c -o build/temp.linux-x86_64-2.7/duplicity/_librsyncmodule.o
duplicity/_librsyncmodule.c:26:22: fatal error: librsync.h: No such file or directory
 #include <librsync.h>
                      ^
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

因此,我决定也尝试升级librsync到最新的稳定版本 (2.0)。在为那个依赖而苦苦挣扎之后,我终于得到了两者librsyncduplicity更新到他们最新的稳定版本。

因此,当我使用 给我的 Duplicity 升级版本进行旋转时duplicity --version,我现在立即收到错误:

Traceback (most recent call last):
  File "/usr/local/bin/duplicity", line 71, in <module>
    from duplicity import collections
  File "/usr/local/lib/python2.7/dist-packages/duplicity/collections.py", line 32, in <module>
    from duplicity import path
  File "/usr/local/lib/python2.7/dist-packages/duplicity/path.py", line 43, in <module>
    from duplicity import librsync
  File "/usr/local/lib/python2.7/dist-packages/duplicity/librsync.py", line 30, in <module>
    from . import _librsync
ImportError: librsync.so.2: cannot open shared object file: No such file or directory
Run Code Online (Sandbox Code Playgroud)

小智 5

librsync.h那时

sudo apt-get install python-dev  
sudo apt-get install librsync-dev  
Run Code Online (Sandbox Code Playgroud)

为我工作。