Comment 24 for bug 1357700

Revision history for this message
Jan Martinec (o-launchpad-piskvor-org) wrote :

I am also affected by this bug in Mint 13 Maya (based on precise), x86-x64.

This was the error given by aptitude when trying to remove (and then reinstall):

> /var/lib/dpkg/info/libreoffice-base.postrm: 31: /var/lib/dpkg/info/libreoffice-base.postrm: Syntax error: end of file unexpected (expecting "fi")
> dpkg: chyba při zpracovávání libreoffice-base (--remove):
> podproces instalovaný post-removal skript vrátil chybový status 2
(the dpkg: message says "error while processing ... subprocess installed by post-removal script returned error status 2")

As this prevented me from uninstalling and reinstalling, I tried to clean the package cache (thus the new package is re-downloaded) and reinstall with the latest version, forcing an overwrite:

sudo apt-get clean
sudo apt-get -o Dpkg::Options::="--force-overwrite" install --reinstall libreoffice-base

> Rozbaluji náhradu libreoffice-base …
> dpkg: varování: potlačuji problém, protože je nastaveno --force:
> zkouším přepsat soubor „/usr/lib/libreoffice/share/basic/dialog.xlc“, který je také v balíku libreoffice-common 1:4.3.1~rc2-0ubuntu1~precise1
('trying to overwrite file "...", which is also in package libreoffice-common 1:4.3.1~rc2-0ubuntu1~precise1')
> dpkg: varování: potlačuji problém, protože je nastaveno --force:
> zkouším přepsat soubor „/usr/lib/libreoffice/share/basic/script.xlc“, který je také v balíku libreoffice-common 1:4.3.1~rc2-0ubuntu1~precise1
> /var/lib/dpkg/info/libreoffice-base.postrm: 31: /var/lib/dpkg/info/libreoffice-base.postrm: Syntax error: end of file unexpected (expecting "fi")
> dpkg: varování: podproces starý post-removal skript vrátil chybový status 2
> dpkg - zkouším raději skript z nově nainstalovaného balíku …
("rather trying script from newly installed package")
> dpkg: … vypadá to, že se vše povedlo.
("looks like everything went well")

This has *solved* the problem for me - the issue seems to be 1. the same file included in multiple packages, and 2. an error in an old postrm script, preventing further upgrade.