Package: duplicity
Version: 0.7.11-1
Severity: important

Dear Maintainer,

installing duplicity on a system without having gpg installed leaves the
duplicity tool in a broken state.

# duplicity --version
Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1553, in <module>
    with_tempdir(main)
  File "/usr/bin/duplicity", line 1547, in with_tempdir
    fn()
  File "/usr/bin/duplicity", line 1382, in main
    action = commandline.ProcessCommandLine(sys.argv[1:])
  File "/usr/lib/python2.7/dist-packages/duplicity/commandline.py", line 1092, 
in ProcessCommandLine
    globals.gpg_profile = gpg.GPGProfile()
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 90, in __init__
    self.gpg_major = self.get_gpg_major(globals.gpg_binary)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpg.py", line 98, in 
get_gpg_major
    res = gpg.run(["--version"], create_fhs=["stdout"])
  File "/usr/lib/python2.7/dist-packages/duplicity/gpginterface.py", line 374, 
in run
    create_fhs, attach_fhs)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpginterface.py", line 423, 
in _attach_fork_exec
    self._as_child(process, gnupg_commands, args)
  File "/usr/lib/python2.7/dist-packages/duplicity/gpginterface.py", line 462, 
in _as_child
    os.execvp(command[0], command)
  File "/usr/lib/python2.7/os.py", line 346, in execvp
    _execvpe(file, args)
  File "/usr/lib/python2.7/os.py", line 382, in _execvpe
    func(fullname, *argrest)
OSError: [Errno 2] No such file or directory

GPGError: failed to determine gpg version of None from

Once the gpg package is installed, duplicity works fine. gpg is not listed as a
dependency for duplicity and therefore breaks the package in environments that
are missing gpg, such as the official docker container images.


-- System Information:
Debian Release: 9.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-3-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C 
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages duplicity depends on:
ii  libc6            2.24-11+deb9u1
ii  librsync1        0.9.7-10+b1
ii  python           2.7.13-2
ii  python-lockfile  1:0.12.2-2

Versions of packages duplicity recommends:
ii  python-oauthlib  2.0.1-1
ii  python-paramiko  2.0.0-1
ii  python-urllib3   1.19.1-1
ii  rsync            3.1.2-1

Versions of packages duplicity suggests:
pn  lftp                <none>
pn  ncftp               <none>
pn  python-boto         <none>
pn  python-cloudfiles   <none>
pn  python-gdata        <none>
pn  python-swiftclient  <none>
pn  tahoe-lafs          <none>

-- no debconf information

Reply via email to