Failed to upgrade/reinstall libreoffice-common
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
apt (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
A few days ago I noticed a problem during a normal apt-get upgrade - the libreoffice-common package failed to install:
dpkg: error processing archive /var/cache/
unable to open '/usr/lib/
Initially I assumed it was a download problem so I cleaned the cache and retried. I also checked disc space: 12GB free, inodes 1035169 free. I removed libreoffice entirely (purge) and reinstalled. Up to then, libreoffice was working, after the reinstallation failed with the same error it was not there. I noted there were two systems with the same problem, both i386, and three systems without the problem, two 64bit, and one i386. I haven't tried the purge/reinstall on the second system because one system with no office software is already one too many.
I've followed the instructions on: https:/
allan@finwhale:~$ ubuntu-
Support status summary of 'finwhale':
You have 9 packages (0.5%) supported until February 2016 (9m)
You have 29 packages (1.5%) supported until February 2015 (9m)
You have 1815 packages (94.3%) supported until May 2019 (5y)
You have 34 packages (1.8%) supported until May 2017 (3y)
You have 0 packages (0.0%) that can not/no-longer be downloaded
You have 37 packages (1.9%) that are unsupported
Run with --show-unsupported, --show-supported or --show-all to see more details
allan@finwhale:~$ cat /etc/dpkg/
cat: /etc/dpkg/
allan@finwhale:~$ dpkg --print-
allan@finwhale:~$ sudo grep -R proxy /etc/apt/*
[sudo] password for allan:
allan@finwhale:~$ grep proxy /etc/environment
allan@finwhale:~$ echo $http_proxy
allan@finwhale:~$ echo $ftp_proxy
allan@finwhale:~$ grep proxy /etc/bash.bashrc
allan@finwhale:~$ grep proxy ~/.bashrc
allan@finwhale:~$ cat /etc/apt/apt.conf
cat: /etc/apt/apt.conf: No such file or directory
allan@finwhale:~$ sudo fuser -vvv /var/lib/dpkg/lock
allan@finwhale:~$ sudo fuser -vvv /var/cache/
allan@finwhale:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_
DISTRIB_
DISTRIB_
allan@finwhale:~$ uname -a
Linux finwhale 3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:23:46 UTC 2014 i686 i686 i686 GNU/Linux
allan@finwhale:~$ sudo rm /var/lib/
allan@finwhale:~$ sudo rm /var/cache/
allan@finwhale:~$ sudo rm /var/lib/dpkg/lock
allan@finwhale:~$ sudo cp -arf /var/lib/dpkg /var/lib/
allan@finwhale:~$ allan@finwhale:~$ sudo mv /var/lib/
allan@finwhale:~$ sudo cp /var/lib/
allan@finwhale:~$ sudo mv /var/lib/
allan@finwhale:~$ sudo cp /var/lib/
allan@finwhale:~$ sudo rm -rf /var/lib/
allan@finwhale:~$ sudo rm -rf /var/lib/apt/lists
allan@finwhale:~$ sudo rm /var/cache/
allan@finwhale:~$ sudo mkdir /var/lib/apt/lists
allan@finwhale:~$ sudo mkdir /var/lib/
allan@finwhale:~$ LANG=C;sudo apt-get clean
allan@finwhale:~$ LANG=C;sudo apt-get autoclean
Reading package lists... Done
Building dependency tree
Reading state information... Done
allan@finwhale:~$ LANG=C;sudo apt-get --purge autoremove
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: The package libreoffice-common needs to be reinstalled, but I can't find an archive for it.
allan@finwhale:~$ allan@finwhale:~$ LANG=C;sudo apt-get --fix-missing update -o APT::Cache-
Ign http://
Ign http://
Ign http://
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Fetched 14.2 MB in 34s (416 kB/s)
Reading package lists... Done
allan@finwhale:~$ allan@finwhale:~$ sudo dpkg --configure -a
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-common is not installed.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-core:
libreoffice-core depends on libreoffice-common (>> 1:4.2.8); however:
Package libreoffice-common is not installed.
dpkg: error processing package libreoffice-core (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of python3-uno:
python3-uno depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package python3-uno (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-math:
libreoffice-math depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-math (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-impress (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice:
libreoffice depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
libreoffice depends on libreoffice-
Package libreoffice-impress is not configured yet.
libreoffice depends on libreoffice-math; however:
Package libreoffice-math is not configured yet.
libreoffice depends on libreoffice-
Package libreoffice-
libreoffice depends on python3-uno (>= 4.0~); however:
Package python3-uno is not configured yet.
dpkg: error processing package libreoffice (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-writer:
libreoffice-writer depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-writer (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-gnome:
libreoffice-gnome depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-gnome (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-base:
libreoffice-base depends on libreoffice-
Package libreoffice-
libreoffice-base depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-base (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-base is not configured yet.
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-gtk:
libreoffice-gtk depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-gtk (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-
libreoffice-
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-draw:
libreoffice-draw depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-draw (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libreoffice-calc:
libreoffice-calc depends on libreoffice-
Package libreoffice-
libreoffice-calc depends on libreoffice-core (= 1:4.2.8-0ubuntu2); however:
Package libreoffice-core is not configured yet.
dpkg: error processing package libreoffice-calc (--configure):
dependency problems - leaving unconfigured
Errors were encountered while processing:
libreoffice-
libreoffice-
libreoffice-core
python3-uno
libreoffice-math
libreoffice-
libreoffice
libreoffice-writer
libreoffice-
libreoffice-gnome
libreoffice-base
libreoffice-
libreoffice-
libreoffice-
libreoffice-
libreoffice-gtk
libreoffice-
libreoffice-draw
libreoffice-calc
allan@finwhale:~$ sudo dpkg --clear-avail
allan@finwhale:~$ LANG=C;sudo apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libreoffice-
Suggested packages:
libreoffice-
libreoffice-
The following packages will be upgraded:
libreoffice-
1 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
20 not fully installed or removed.
Need to get 19.9 MB of archives.
After this operation, 76.1 MB of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://
Fetched 19.9 MB in 14s (1392 kB/s)
(Reading database ... 201450 files and directories currently installed.)
Preparing to unpack .../libreoffice
Unpacking libreoffice-common (1:4.2.8-0ubuntu2) over (1:4.2.8-0ubuntu2) ...
dpkg: error processing archive /var/cache/
unable to open '/usr/lib/
rmdir: failed to remove '/var/lib/
rmdir: failed to remove '/var/lib/
rmdir: failed to remove '/var/lib/
rmdir: failed to remove '/var/lib/
rmdir: failed to remove '/var/lib/
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Processing triggers for gnome-icon-theme (3.10.0-0ubuntu2) ...
Processing triggers for hicolor-icon-theme (0.13-1) ...
Processing triggers for shared-mime-info (1.2-0ubuntu3) ...
Processing triggers for mime-support (3.54ubuntu1.1) ...
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+
Rebuilding /usr/share/
Errors were encountered while processing:
/var/cache/
E: Sub-process /usr/bin/dpkg returned an error code (1)
allan@finwhale:~$ LANG=C;sudo apt-get --fix-missing install
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.
allan@finwhale:~$ LANG=C;sudo apt-get update -o APT::Cache-
Ign http://
Ign http://
Ign http://
Hit http://
Get:1 http://
Get:2 http://
Hit http://
Get:3 http://
Get:4 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:5 http://
Get:6 http://
Get:7 http://
Hit http://
Hit http://
Hit http://
Get:8 http://
Get:9 http://
Get:10 http://
Hit http://
Hit http://
Hit http://
Fetched 1281 kB in 13s (96.4 kB/s)
Reading package lists... Done
Reading package lists... Done
Building dependency tree
Reading state information... Done
You might want to run 'apt-get -f install' to correct these.
The following packages have unmet dependencies:
E: Unmet dependencies. Try using -f.
allan@finwhale:~$ find /etc/apt -name '*.list' -exec bash -c 'echo -e "\n$1\n"; cat -n "$1"' _ '{}' \;
/etc/apt/
1 # deb cdrom:[Ubuntu 14.04.1 LTS _Trusty Tahr_ - Release i386 (20140722.2)]/ trusty main restricted
2
3 # See http://
4 # newer versions of the distribution.
5 deb http://
6
7 ## Major bug fix updates produced after the final release of the
8 ## distribution.
9 deb http://
10
11 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
12 ## team. Also, please note that software in universe WILL NOT receive any
13 ## review or updates from the Ubuntu security team.
14 deb http://
15 deb http://
16
17 ## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
18 ## team, and may not be under a free licence. Please satisfy yourself as to
19 ## your rights to use the software. Also, please note that software in
20 ## multiverse WILL NOT receive any review or updates from the Ubuntu
21 ## security team.
22 deb http://
23 deb http://
24
25 ## N.B. software from this repository may not have been tested as
26 ## extensively as that contained in the main release, although it includes
27 ## newer versions of some applications which may provide useful features.
28 ## Also, please note that software in backports WILL NOT receive any review
29 ## or updates from the Ubuntu security team.
30
31 deb http://
32 deb http://
33 deb http://
34
35 ## Uncomment the following two lines to add software from Canonical's
36 ## 'partner' repository.
37 ## This software is not part of Ubuntu, but is offered by Canonical and the
38 ## respective vendors as a service to Ubuntu users.
39 # deb http://
40 # deb-src http://
41
42 ## This software is not part of Ubuntu, but is offered by third-party
43 ## developers who want to ship their latest software.
44 # deb http://
45 # deb-src http://
allan@finwhale:~$
-------
Thanks for any help getting libreoffice reinstalled and updated.
Allan
Status changed to 'Confirmed' because the bug affects multiple users.