Preparing to unpack .../0-python_2.7.15~rc1-1_amd64.deb ... Unpacking python (2.7.15~rc1-1) ... Selecting previously unselected package librsync1:amd64. Preparing to unpack .../1-librsync1_0.9.7-10build1_amd64.deb ... Unpacking librsync1:amd64 (0.9.7-10build1) ... Selecting previously unselected package python-monotonic. Preparing to unpack .../2-python-monotonic_1.1-2_all.deb ... Unpacking python-monotonic (1.1-2) ... Selecting previously unselected package python-six. Preparing to unpack .../3-python-six_1.11.0-2_all.deb ... Unpacking python-six (1.11.0-2) ... Selecting previously unselected package python-fasteners. Preparing to unpack .../4-python-fasteners_0.12.0-3_all.deb ... Unpacking python-fasteners (0.12.0-3) ... Selecting previously unselected package python-lockfile. Preparing to unpack .../5-python-lockfile_1%3a0.12.2-2_all.deb ... Unpacking python-lockfile (1:0.12.2-2) ... Selecting previously unselected package duplicity. Preparing to unpack .../6-duplicity_0.7.17-0ubuntu1_amd64.deb ... Unpacking duplicity (0.7.17-0ubuntu1) ... Selecting previously unselected package python-gi. Preparing to unpack .../7-python-gi_3.26.1-2_amd64.deb ... Unpacking python-gi (3.26.1-2) ... dpkg: error processing package xbrlapi (--configure): package is in a very bad inconsistent state; you should reinstall it before attempting configuration