Comment 16 for bug 915271

Revision history for this message
Anders Kaseorg (andersk) wrote :

There’s a similar problem when uninstalling and reinstalling all the libreoffice packages:

Unpacking libreoffice-core (from .../libreoffice-core_1%3a3.5.0~beta2-2ubuntu2_amd64.deb) ...
rmdir: failed to remove `usr/lib/libreoffice/basis3.4/program/': No such file or directory
dpkg: error processing /var/cache/apt/archives/libreoffice-core_1%3a3.5.0~beta2-2ubuntu2_amd64.deb (--unpack):
 subprocess new pre-installation script returned error exit status 1

The paths in libreoffice-core.preinst are missing a leading /, and the script should be written so it doesn’t fail when the directory isn’t there.