Package libglib2.0-0:armhf fails to install: Exec format error

Bug #1847602 reported by Dale Smith
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glib2.0 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Description: Ubuntu 18.04.3 LTS
Release: 18.04

uname -a: Linux dtsmith-vallum 4.15.0-65-generic #74-Ubuntu SMP Tue Sep 17 17:06:04 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

All updates available to date have been applied.

Command is "sudo apt-get install libglib2.0-0:armhf"

Debian team supposed to fix this bug with package version 2.54.2-5 see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=885019

I am doing cross-compile work with the following compilers

arm-linux-gnueabihf-gcc-8 from package gcc-8-arm-linux-gnueabihf

The schemas from the native gcc-7 package are in /usr/share/glib-2.0/schemas.

"sudo apt-get install libglib2.0-dev:armhf" has the same error.

Work-around is to install libglib2.0-dev for the host. The schema files are in /usr/share/glib-2.0. I have cross-compiled syslog-ng as armhf and it works.

Here is the output of the apt install command:

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 2 reinstalled, 0 to remove and 0 not upgraded.
Need to get 0 B/2,186 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 172895 files and directories currently installed.)
Preparing to unpack .../libglib2.0-0_2.56.4-0ubuntu0.18.04.4_amd64.deb ...
Unpacking libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.4) over (2.56.4-0ubuntu0.18.04.4) ...
Preparing to unpack .../libglib2.0-0_2.56.4-0ubuntu0.18.04.4_armhf.deb ...
Unpacking libglib2.0-0:armhf (2.56.4-0ubuntu0.18.04.4) over (2.56.4-0ubuntu0.18.04.4) ...
Setting up libglib2.0-0:amd64 (2.56.4-0ubuntu0.18.04.4) ...
Setting up libglib2.0-0:armhf (2.56.4-0ubuntu0.18.04.4) ...
/var/lib/dpkg/info/libglib2.0-0:armhf.postinst: 39: /var/lib/dpkg/info/libglib2.0-0:armhf.postinst: /usr/lib/arm-linux-gnueabihf/glib-2.0/glib-compile-schemas: Exec format error
Processing triggers for libc-bin (2.27-3ubuntu1) ...
dtsmith@dtsmith-vallum:[~]$ /usr/lib/arm-linux-gnueabihf/glib-2.0/glib-compile-schemas
bash: /usr/lib/arm-linux-gnueabihf/glib-2.0/glib-compile-schemas: cannot execute binary file: Exec format error

ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: libglib2.0-0:armhf 2.56.4-0ubuntu0.18.04.4
ProcVersionSignature: Ubuntu 4.15.0-65.74-generic 4.15.18
Uname: Linux 4.15.0-65-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 10 07:47:58 2019
InstallationDate: Installed on 2019-10-09 (0 days ago)
InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64 (20180725)
PackageArchitecture: armhf
ProcEnviron:
 TERM=xterm-256color
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Dale Smith (dtsmith200101) wrote :
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.