[Android-tools-devel] Bug#963877: apksigner: cannot execute binary file: Exec format error
Claude Heiland-Allen
claude at mathr.co.uk
Sun Jun 28 15:11:48 BST 2020
On 2020-06-28 14:57, Claude Heiland-Allen wrote:
> Package: apksigner
> Version: 0.9-1
> Severity: normal
>
> Dear Maintainer,
>
> * What led up to the situation?
>
> running Debian in UserLAnd from Fdroid on Android 7.
>
> tried to run apksigner from bash, got error
> cannot execute binary file: Exec format error
>
> from sh invoked by make the error was more confusing, as if the jar
> was interpreted as a shell script.
hello-world-debian-android$ make
apksigner sign --ks keystore.jks --ks-key-alias androidkey --ks-pass
pass:android --key-pass pass:android --out helloworld.apk
helloworld.aligned.apk
/usr/bin/apksigner: 1: PK��O: not found
/usr/bin/apksigner: 2: �0��@�!�7�š��A����ߚ[�6MJ�: not found
/usr/bin/apksigner: 2: {c�v8���Bg�: not found
/usr/bin/apksigner: 3:K��Ocom/PK: not found
/usr/bin/apksigner: 4:K��O
com/android/PK: not found
/usr/bin/apksigner: 5: Syntax error: ")" unexpected
make: *** [Makefile:12: helloworld.apk] Error 2
>
>
> * What exactly did you do (or not do) that was effective (or
> ineffective)?
>
> java -jar /usr/bin/apksigner
> worked
>
>
>
> -- System Information:
> Debian Release: bullseye/sid
> APT prefers testing
> APT policy: (500, 'testing')
> Architecture: arm64 (aarch64)
>
> Kernel: Linux 3.18.35 (SMP w/3 CPU cores; PREEMPT)
> Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN,
> TAINT_OOT_MODULE
> Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C
> (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
> Init: unable to detect
>
> Versions of packages apksigner depends on:
> ii default-jre-headless [java8-runtime-headless] 2:1.11-72
> ii jarwrapper 0.72.12
> ii openjdk-11-jre-headless [java8-runtime-headless] 11.0.7+9-1
>
> apksigner recommends no packages.
>
> apksigner suggests no packages.
>
> -- no debconf information
--
https://mathr.co.uk
More information about the Android-tools-devel
mailing list