Preparing to unpack .../libreoffice-base_1%3a5.1.2-0ubuntu1_amd64.deb ... Adding 'diversion of /usr/lib/libreoffice/share/basic/dialog.xlc to /usr/lib/libreoffice/share/basic/dialog.xlc.noaccess by libreoffice-base' Adding 'diversion of /usr/lib/libreoffice/share/basic/script.xlc to /usr/lib/libreoffice/share/basic/script.xlc.noaccess by libreoffice-base' check-files-ownership: line 6: return: can only `return' from a function or sourced script check-files-ownership: line 6: return: can only `return' from a function or sourced script check-files-ownership: line 6: return: can only `return' from a function or sourced script check-files-ownership: line 6: return: can only `return' from a function or sourced script check-files-ownership: line 6: return: can only `return' from a function or sourced script dpkg-maintscript-helper: error: directory '/usr/share/doc/libreoffice-base' contains files not owned by package libreoffice-base, cannot switch to symlink dpkg: error processing archive /var/cache/apt/archives/libreoffice-base_1%3a5.1.2-0ubuntu1_amd64.deb (--unpack): subprocess new pre-installation script returned error exit status 1