I've been trying every possible solution I've found online which worked for others in my same situation. But none of them has so far worked for me. So, I'd truly appreciate any help from you: thanks a million!
it all started when I did a --purge remove zend* in order to get rid of the following error always popping up at the end of apt-get update:
and then loads of packages got removed. I did the mistake not to check them all beforehand, so that also gnome got removed and at the next reboot I had to reinstall it (I had no GUI). This caused some mess with libreoffice so that now I do have a GUI etc. but whenever I run apt-get upgrade I get:W: GPG error: http://repos.zend.com server Release: The following signatures were invalid: BADSIG 2EAE1437F7D2C623 Infra team <zp-infra@zend.com>
If I try to run apt-get -f install, it doesn't work because of:The following packages have unmet dependencies:
libreoffice-core : Depends: libreoffice-common (> 1:3.5.4+dfsg2) but it is not installed
libreoffice-filter-binfilter : Depends: libreoffice-common (>= 1:3.4.0~) but it is not installed
libreoffice-java-common : Depends: libreoffice-common but it is not installed
E: Unmet dependencies. Try using -f.
So I tried to create the missing directories and empty the non-empty ones so that /var/lib/libreoffice only contains the dirs "program" and "share" and "share" contains only the dir "prereg". Then I tried to run:dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a3.5.4+dfsg2-0+deb7u2_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice4.0-freedesktop-menus 4.0-9703
rmdir: failed to remove `/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove `/var/lib/libreoffice/share/': Directory not empty
rmdir: failed to remove `/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove `/var/lib/libreoffice': Directory not empty
rmdir: failed to remove `/var/lib/libreoffice': Directory not empty
in order to remove all the packages that were giving me troubles with dependencies (so that I could reinstall them afresh). Then tried again apt-get -f install but I get again:sudo dpkg --purge libreoffice-base-core
sudo dpkg --purge libreoffice-calc
sudo dpkg --purge libreoffice-common
sudo dpkg --purge libreoffice-core
sudo dpkg --purge libreoffice-draw
sudo dpkg --purge libreoffice-emailmerge
sudo dpkg --purge libreoffice-filter-binfilter
sudo dpkg --purge libreoffice-gnome
sudo dpkg --purge libreoffice-gtk
sudo dpkg --purge libreoffice-impress
sudo dpkg --purge libreoffice-java-common
sudo dpkg --purge libreoffice-math
sudo dpkg --purge libreoffice-style-galaxy
sudo dpkg --purge libreoffice-style-tango
sudo dpkg --purge libreoffice-writer python-uno
This issue is quite critical because it hinders me to upgrade the system or install anything via apt.dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a3.5.4+dfsg2-0+deb7u2_all.deb (--unpack):
trying to overwrite '/usr/bin/soffice', which is also in package openoffice4.0-freedesktop-menus 4.0-9703
rmdir: failed to remove `/var/lib/libreoffice/share/': Directory not empty
rmdir: failed to remove `/var/lib/libreoffice': Directory not empty
rmdir: failed to remove `/var/lib/libreoffice': Directory not empty
Thank you so much and loads of good karma to you!!