Error during the upgrade of LibreOffice from 6.3.5 to 6.4.2
Solution 1:
Just ran into this same problem on the latest KDE Neon. I'm sure the broken package will be fixed shortly by the LibreOffice Fresh team, but in the meantime I managed to fix it using the following command:
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libreoffice-common_1%3a6.4.2-0ubuntu0.18.04.2_all.deb
- The key here is the
--force-overwrite
option to dpkg, which addresses the error trying to overwrite/usr/lib/libreoffice/share/config/soffice.cfg/modules/smath/menubar/menubar.xml
, which is also inlibreoffice-common 1:6.3.5~rc2-0ubuntu0.18.04.1~lo1
package from the original package manager output.
After running this command, I then ran sudo apt --fix-broken install
again to fix all the broken packages left behind by the incomplete LibreOffice install, and this time it actually went through and cleaned up everything properly.
Am now back to work in LibreOffice so I can confirm that this works (at least on this system)!
Solution 2:
I get exactly the same here on Linux Mint 19.3
Try the following to solve it:
- Start Synaptic and find broken packages
- Select them and remove
- Close Synaptic
- Open a terminal and check
$ sudo apt --fix-broken install
- If OK, install LibreOffice:
$ sudo apt --fix-broken install libreoffice
I hope it will help you. It worked for me.