package libreoffice-common 1:5.1.6~rc2-0ubuntu1~xenial6 failed to install/upgrade: unable to stat './usr/share/icons/locolor/32x32/mimetypes/libreoffice-oasis-drawing.png' (which I was about to install): Input/output error

Bug #1831341 reported by Tilmann Rückauer
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libreoffice (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Distribution-upgrade was proposed on my BananaPi from Ubuntu 16.04.6 LTS to 18.04.2 LTS. I agreed, but during the process, the crash occured.

ProblemType: Package
DistroRelease: Ubuntu 16.04
Package: libreoffice-common 1:5.1.6~rc2-0ubuntu1~xenial6
Uname: Linux 3.4.39-BPI-M3-Kernel armv7l
ApportVersion: 2.20.1-0ubuntu2.18
Architecture: armhf
Date: Sat Jun 1 18:32:16 2019
DuplicateSignature:
 package:libreoffice-common:1:5.1.6~rc2-0ubuntu1~xenial6
 Unpacking ure (5.1.6~rc2-0ubuntu1~xenial7) over (5.1.6~rc2-0ubuntu1~xenial6) ...
 dpkg: error processing archive /var/cache/apt/archives/ure_5.1.6~rc2-0ubuntu1~xenial7_armhf.deb (--unpack):
  unable to stat './usr/share/maven-repo/org/libreoffice/jurt/5.1.6/jurt-5.1.6.jar' (which I was about to install): Input/output error
ErrorMessage: unable to stat './usr/share/icons/locolor/32x32/mimetypes/libreoffice-oasis-drawing.png' (which I was about to install): Input/output error
PackageArchitecture: all
RelatedPackageVersions:
 dpkg 1.18.4ubuntu1.5
 apt 1.2.31
SourcePackage: libreoffice
Title: package libreoffice-common 1:5.1.6~rc2-0ubuntu1~xenial6 failed to install/upgrade: unable to stat './usr/share/icons/locolor/32x32/mimetypes/libreoffice-oasis-drawing.png' (which I was about to install): Input/output error
UpgradeStatus: Upgraded to xenial on 2019-06-01 (0 days ago)

Revision history for this message
Tilmann Rückauer (t-matze) wrote :
Revision history for this message
Tilmann Rückauer (t-matze) wrote :

Ah, to be precise: The Upgrade was cancelled due to lacking space on /. Afterwards, an update was proposed, during which this error occurred.

tags: removed: need-duplicate-check
Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Hi Tilmann, please could you try:

sudo apt clean
sudo apt install --reinstall libreoffice

Changed in libreoffice (Ubuntu):
status: New → Incomplete
Revision history for this message
Tilmann Rückauer (t-matze) wrote :
Download full text (5.2 KiB)

Hi Marcus,

thank you for your help. Here is what I got:

pi@bpi-iot-ros-ai:~$ sudo apt clean
[sudo] password for pi:
pi@bpi-iot-ros-ai:~$ sudo apt install --reinstall libreoffice
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:
 libreoffice : Depends: fonts-sil-gentium-basic but it is not going to be installed
               Depends: libreoffice-base but it is not going to be installed
               Depends: libreoffice-math but it is not going to be installed
               Depends: libreoffice-report-builder-bin but it is not going to be installed
               Depends: fonts-dejavu but it is not going to be installed
               Depends: libreoffice-java-common (>= 1:5.1.6~rc2~) but it is not going to be installed
               Depends: python3-uno (>= 4.4.0~beta2) but it is not going to be installed
 libreoffice-style-galaxy : Depends: libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial7) but 1:5.1.6~rc2-0ubuntu1~xenial6 is to be installed
 libreoffice-style-human : Depends: libreoffice-common (= 1:5.1.6~rc2-0ubuntu1~xenial7) but 1:5.1.6~rc2-0ubuntu1~xenial6 is to be installed
 ure : Depends: uno-libs3 (= 5.1.6~rc2-0ubuntu1~xenial6) but 5.1.6~rc2-0ubuntu1~xenial7 is to be installed
E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution).
pi@bpi-iot-ros-ai:~$ sudo apt -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
  libreoffice-common ure
Suggested packages:
  libreoffice-style-breeze libreoffice-style-hicontrast libreoffice-style-oxygen
  libreoffice-style-sifr libreoffice-style-tango java5-runtime
Recommended packages:
  fonts-stix python3-uno
The following packages will be upgraded:
  libreoffice-common ure
2 upgraded, 0 newly installed, 0 to remove and 19 not upgraded.
2 not fully installed or removed.
Need to get 23.8 MB of archives.
After this operation, 1024 B of additional disk space will be used.
Do you want to continue? [Y/n]
Get:1 http://ports.ubuntu.com xenial-updates/main armhf ure armhf 5.1.6~rc2-0ubuntu1~xenial7 [1409 kB]
Get:2 http://ports.ubuntu.com xenial-updates/main armhf libreoffice-common all 1:5.1.6~rc2-0ubuntu1~xenial7 [22.4 MB]
Fetched 23.8 MB in 5s (4760 kB/s)
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
 LANGUAGE = (unset),
 LC_ALL = (unset),
 LC_TIME = "en_US.UTF-8",
 LC_MONETARY = "en_US.UTF-8",
 LC_ADDRESS = "en_US.UTF-8",
 LC_TELEPHONE = "en_US.UTF-8",
 LC_NAME = "en_US.UTF-8",
 LC_MEASUREMENT = "en_US.UTF-8",
 LC_IDENTIFICATION = "en_US.UTF-8",
 LC_NUMERIC = "en_US.UTF-8",
 LC_PAPER = "en_US.UTF-8",
 LANG = "de_DE.UTF-8"
    are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set L...

Read more...

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Could you try:

sudo dpkg -i --force-overwrite /var/cache/apt/archives/ure_5.1.6~rc2-0ubuntu1~xenial7_armhf.deb
sudo dpkg -i --force-overwrite /var/cache/apt/archives/libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial7_all.deb

Revision history for this message
Tilmann Rückauer (t-matze) wrote :

All right. Here is the output:

pi@bpi-iot-ros-ai:~$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/ure_5.1.6~rc2-0ubuntu1~xenial7_armhf.deb
[sudo] password for pi:
(Reading database ... 185691 files and directories currently installed.)
Preparing to unpack .../ure_5.1.6~rc2-0ubuntu1~xenial7_armhf.deb ...
Unpacking ure (5.1.6~rc2-0ubuntu1~xenial7) over (5.1.6~rc2-0ubuntu1~xenial6) ...
dpkg: error processing archive /var/cache/apt/archives/ure_5.1.6~rc2-0ubuntu1~xenial7_armhf.deb (--install):
 unable to stat './usr/share/maven-repo/org/libreoffice/jurt/5.1.6/jurt-5.1.6.jar' (which I was about to install): Input/output error
Errors were encountered while processing:
 /var/cache/apt/archives/ure_5.1.6~rc2-0ubuntu1~xenial7_armhf.deb
pi@bpi-iot-ros-ai:~$ sudo dpkg -i --force-overwrite /var/cache/apt/archives/libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial7_all.deb
(Reading database ... 185691 files and directories currently installed.)
Preparing to unpack .../libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial7_all.deb ...
Unpacking libreoffice-common (1:5.1.6~rc2-0ubuntu1~xenial7) over (1:5.1.6~rc2-0ubuntu1~xenial6) ...
dpkg: error processing archive /var/cache/apt/archives/libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial7_all.deb (--install):
 unable to stat './usr/share/icons/locolor/32x32/mimetypes/libreoffice-oasis-drawing.png' (which I was about to install): Input/output error
dpkg-deb: error: subprocess paste was killed by signal (Broken pipe)
rmdir: failed to remove '/var/lib/libreoffice/share/prereg/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/share/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice/program/': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
rmdir: failed to remove '/var/lib/libreoffice': No such file or directory
Processing triggers for desktop-file-utils (0.22-1ubuntu5.2) ...
Processing triggers for bamfdaemon (0.5.3~bzr0+16.04.20180209-0ubuntu1) ...
Rebuilding /usr/share/applications/bamf-2.index...
Processing triggers for mime-support (3.59ubuntu1) ...
Processing triggers for man-db (2.7.5-1) ...
Processing triggers for gnome-icon-theme (3.12.0-1ubuntu3) ...
Errors were encountered while processing:
 /var/cache/apt/archives/libreoffice-common_1%3a5.1.6~rc2-0ubuntu1~xenial7_all.deb

Sad to note that this still doesn't seem to make progress.
Is this caused by the hardware (BananaPi = ARM)?

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

Ah, looking at your Dmesg.txt now, and it does look like your file system is corrupted:

[4124618.299153] EXT4-fs error (device mmcblk0p2): ext4_lookup:1050: inode #172049: comm dpkg: deleted inode referenced: 157953

You can try fix this by running:

fsck /dev/mmcblk0p2

Revision history for this message
Tilmann Rückauer (t-matze) wrote :
Download full text (8.7 KiB)

Hi Marcus,

please excuse the latency of my response. Had to work.

In the meanwhile, I changed the partition size of the root and home partitions, allocating more space to root, since there was not enough free space left for the download of system updates. In that process, qparted checked the fs. The partitions are named differently (mmcblk0p2=sdf2), since I took the micro-SD card out of the BanananPi and plugged it into my PC in order to work on the unmounted partitions. Here is the report:

GParted 0.30.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2

Dateisystem (ext4) auf /dev/sdf2 überprüfen und reparieren 00:00:12 ( ERFOLG )

/dev/sdf2 kalibrieren 00:00:01 ( ERFOLG )

Pfad: /dev/sdf2 (Partition)
Anfang: 729088
Ende: 23656447
Größe: 22927360 (10.93 GiB)
Dateisystem auf /dev/sdf2 auf Fehler überprüfen und (falls möglich) diese beheben 00:00:11 ( ERFOLG )

e2fsck -f -y -v -C 0 '/dev/sdf2' 00:00:11 ( ERFOLG )

Durchgang 1: Inodes, Blöcke und Größen werden geprüft
Durchgang 2: Verzeichnisstruktur wird geprüft
Durchgang 3: Verzeichnisverknüpfungen werden geprüft
Durchgang 4: Referenzzähler werden überprüft
Durchgang 5: Zusammengefasste Gruppeninformation wird geprüft

225176 Inodes sind in Benutzung (31.48% von 715264)
275 nicht zusammenhängende Dateien (0.1%)
241 nicht zusammenhängende Verzeichnisse (0.1%)
# von Inodes mit ind/dind/tind Blöcken: 0/0/0
Histogramm der Tiefe von Erweiterungen: 178544/89
1335296 Blöcke werden benutzt (46.59% von 2865920)
0 defekte Blöcke
1 große Datei

157743 reguläre Dateien
19071 Verzeichnisse
54 zeichenorientierte Gerätedateien
25 Blockgerätedateien
0 Fifos
32 Verknüpfungen
48273 symbolische Verknüpfungen (46454 schnelle symbolische Verknüpfungen)
1 Socket
------------
225199 Dateien
e2fsck 1.44.1 (24-Mar-2018)
Dateisystem bis zum Auffüllen der Partition vergrößern 00:00:00 ( ERFOLG )

resize2fs -p '/dev/sdf2' 00:00:00 ( ERFOLG )

resize2fs 1.44.1 (24-Mar-2018)
Das Dateisystem ist bereits 2865920 (4k) Blöcke lang. Nichts zu tun!

After this was done, I tried to run the command you suggested. Again, I worked on my PC with the micro-SD card plugged in:

ty@tilmann-yvonne-Rechenknecht:~$ mount
[...]
/dev/sdf1 on /media/ty/BPI-BOOT type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)
/dev/sdf2 on /media/ty/BPI-ROOT type ext4 (rw,nosuid,nodev,relatime,block_validity,delalloc,barrier,user_xattr,acl,stripe=1024,uhelper=udisks2)
/dev/sdf3 on /media/ty/c54307ab-fcbe-4450-af13-a75bf85ede49 type ext2 (rw,nosuid,nodev,relatime,block_validity,barrier,user_xattr,acl,uhelper=udisks2)
ty@tilmann-yvonne-Rechenknecht:~$ sudo umount /dev/sdf1
ty@tilmann-yvonne-Rechenknecht:~$ sudo umount /dev/sdf2
ty@tilmann-yvonne-Rechenknecht:~$ sudo umount /dev/sdf3
ty@tilmann-yvonne-Rechenknecht:~$ sudo fsck.ext4 /dev/sdf2
e2fsck 1.44.1 (24-Mar-2018)
BPI-ROOT: sauber, 224654/715264 Dateien, 1334265/2865920 Blöcke
ty@tilmann-yvonne-Rechenknecht:~$ sudo fsck.ext4 /dev/sdf3
e2fsck 1.44.1 (24-Mar-2018)
/dev/sdf3: sauber, 2831/1204224 Dateien...

Read more...

Revision history for this message
Marcus Tomlinson (marcustomlinson) wrote :

No problem :) Glad it’s sorted.

Changed in libreoffice (Ubuntu):
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.