Unable to install LibreOffice (ubuntu 15.04)

Trying to swap from OpenOffice to LibreOffice. Apparently some of LibreOffice has been installed because several libreoffice packages have unmet dependencies (libreoffice-core, -help-en-us, -java-common, -l10n-en-gb, -l10-n-3n-za, -l10n-es) - most of which seem to rely on libreoffice-common. However, I can’t uninstall (to start over) because libreoffice-common is not installed. I can’t install libreoffice-common:

Errors were encountered while processing:
E: Sub-process /usr/bin/dpkg returned an error code (1)

I have tried:
apt-get clean
apt-get autoclean
apt-get -f install
apt-get dpkg --configure -a (lots of errors here)
apt-get -u dist-upgrade

Any help would be gratefully appreciated.

What finally worked was this:

Go into Synaptic package manager and search for anything openoffice - mark for complete removal.
Same thing with libreoffice.

Once I did that, “sudo apt-get install libreoffice” worked.