I tried to remove unstable
openoffice and reinstall
libreoffice however I accidently removed directory of
/opt before I purged it. Now I cannot clean the broken package, and cannot remove/install
apt-get -f install doesn't work with error:
.... Errors were encountered while processing: /var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
and I followed How to fix a broken package by removing the packages manually via
dpkg but it did not remove it clean. Same problems hold still.
And I have unmet dependencies which I cannot clean or move up:
dpkg: error processing package libreoffice-calc (--configure): dependency problems - leaving unconfigured Errors were encountered while processing: libreoffice-java-common libreoffice-sdbc-hsqldb libreoffice-core python3-uno libreoffice-math libreoffice-impress libreoffice-writer libreoffice-base-core libreoffice-gnome libreoffice-base libreoffice-sdbc-firebird libreoffice-report-builder-bin libreoffice-pdfimport libreoffice-avmedia-backend-gstreamer libreoffice-gtk libreoffice-base-drivers libreoffice-draw libreoffice-calc
Basically they depend on a package named
libreoffice-common, but I have no idea how to purge or install it.
Followed instructions from mchid and
sudo apt-get install ... reports (actually they did the same things as
apt-get install libreoffice) terminated with:
Selecting previously unselected package xfonts-mathml. Preparing to unpack .../xfonts-mathml_6ubuntu1_all.deb ... Unpacking xfonts-mathml (6ubuntu1) ... Processing triggers for man-db (184.108.40.206-1ubuntu1) ... Processing triggers for shared-mime-info (1.2-0ubuntu3) ... Processing triggers for gnome-menus (3.10.1-0ubuntu2) ... Processing triggers for desktop-file-utils (0.22-1ubuntu1) ... Processing triggers for bamfdaemon (0.5.1+14.04.20140409-0ubuntu1) ... Rebuilding /usr/share/applications/bamf-2.index... Processing triggers for mime-support (3.54ubuntu1.1) ... Processing triggers for hicolor-icon-theme (0.13-1) ... Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ... Processing triggers for fontconfig (2.11.0-0ubuntu4.1) ... Errors were encountered while processing: /var/cache/apt/archives/libreoffice-common_1%3a4.2.7-0ubuntu2_all.deb E: Sub-process /usr/bin/dpkg returned an error code (1)
What all I know now, is that it seems I purged everything with
openoffice. Using command:
sudo apt-get purge libreoffice* sudo apt-get purge openoffice* sudo apt-get autoremove sudo apt-get clean sudo dpkg --configure -a #double check, reports nothing sudo dpkg -L libreoffice sudo dpkg -L openoffice
all of them shows they have been cleanly removed, however, I just couldn't install
libreoffice, with a single line of
/usr/bin/dpkg returned an error code (1).
dpkg -L openofficeshows the location.
dpkg -l | grep openoffice?