Broken Package System -And- Software Center Repair Fails Consistantly

Asked by Heath Taylor

I unchecked all third party sources from my package manager, like asked to do so as they are a common problem for errors. I then try to update the only update available which is: ( Office Productivity Suite ). Yet it's failing to update because of unmet dependencies. I am not aware of what dependencies it is referring to. I am a newer user to Ubuntu.

Problem recap-- Can't update my LibreOffice, but why not? No third party repositories are enabled. I also am not able to install anything from the software center, as it says I need to repair something, yet it fails to repair each time. Thank you for your help.

---Error code as follows for the update:

The following packages have unmet dependencies:

libreoffice-core:

---Error code as follows for the broken package manager that isn't able to repair itself:

installArchives() failed: (Reading database ...
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 151050 files and directories currently installed.)
Preparing to replace libreoffice-common 1:3.4.3-3ubuntu2 (using .../libreoffice-common_1%3a3.4.4-0ubuntu1_all.deb) ...
Unpacking replacement libreoffice-common ...
xz: (stdin): Compressed data is corrupt
dpkg-deb: error: subprocess <decompress> returned error exit status 1
dpkg: error processing /var/cache/apt/archives/libreoffice-common_1%3a3.4.4-0ubuntu1_all.deb (--unpack):
 short read on buffer copy for backend dpkg-deb during `./usr/lib/libreoffice/basis3.4/program/resource/cuien-US.res'
Processing triggers for desktop-file-utils ...
Processing triggers for gnome-menus ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for shared-mime-info ...
Processing triggers for hicolor-icon-theme ...
Processing triggers for man-db ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a3.4.4-0ubuntu1_all.deb
Error in function:
SystemError: E:Sub-process /usr/bin/dpkg returned an error code (1)
dpkg: dependency problems prevent configuration of libreoffice-core:
 libreoffice-core depends on libreoffice-common (>> 1:3.4.4); however:
  Version of libreoffice-common on system is 1:3.4.3-3ubuntu2.
dpkg: error processing libreoffice-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-style-human:
 libreoffice-style-human depends on libreoffice-core; however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-style-human (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-math:
 libreoffice-math depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-math (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-impress:
 libreoffice-impress depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-impress (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-writer:
 libreoffice-writer depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-writer (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-base-core:
 libreoffice-base-core depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-base-core (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-gnome:
 libreoffice-gnome depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-gnome (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-emailmerge:
 libreoffice-emailmerge depends on libreoffice-core; however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-emailmerge (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-gtk:
 libreoffice-gtk depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-gtk (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python-uno:
 python-uno depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing python-uno (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-draw:
 libreoffice-draw depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
dpkg: error processing libreoffice-draw (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-help-en-us:
 libreoffice-help-en-us depends on libreoffice-writer | language-support-translations-en; however:
  Package libreoffice-writer is not configured yet.
  Package language-support-translations-en is not installed.
dpkg: error processing libreoffice-help-en-us (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-calc:
 libreoffice-calc depends on libreoffice-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-core is not configured yet.
 libreoffice-calc depends on libreoffice-base-core (= 1:3.4.4-0ubuntu1); however:
  Package libreoffice-base-core is not configured yet.
dpkg: error processing libreoffice-calc (--configure):
 dependency problems - leaving unconfigured

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu apt Edit question
Assignee:
No assignee Edit question
Solved by:
Heath Taylor
Solved:
Last query:
Last reply:
Revision history for this message
Bruno Lessa (djalmascat) said :
#1

hello.
did you try to use:

sudo dpkg --configure libreoffice*

I hope I've helped you.

Revision history for this message
mycae (mycae) said :
#2

I think this is your problem:

----
Preparing to replace libreoffice-common 1:3.4.3-3ubuntu2 (using .../libreoffice-common_1%3a3.4.4-0ubuntu1_all.deb) ...
Unpacking replacement libreoffice-common ...
xz: (stdin): Compressed data is corrupt
----

The data in the deb file is corrupted. However, it is unclear why the deb's hash check appears to be OK, which should have avoided this problem in the first place. Did you use a PPA for libreoffice? If so, it could be that the PPA shipped a bad update, then signed it as A-OK, and has got you into this mess.

Disabling the PPA from your sources will have no effect if you already have the package installed, or partway installed. It won't uninstall the software for you (think if the PPA goes down or something).

I would recommend force removing libreoffice, and all its dependencies, then re-updating, then reinstalling libreoffice. As a *LAST RESORT* try:

sudo dpkg --force-remove-reinstreq libreoffice*
sudo apt-get clean
sudo apt-get update

Then reinstall from the main ubuntu repos. I'd avoid PPAs unless you are *sure* you need them.

Revision history for this message
Heath Taylor (heathderr) said :
#3

I solved my problem it looks like. I used the " sudo apt-get clean " by itself, and it looked like it did nothing as it just brought me the next line on the terminal.

I then used the " sudo apt-get install -f " I think it is called. That then actually operated and finished its task, unlike before as it would stop.

After that all things updated correctly and I am now able to download and install software freely.

Thanks all.