Skip to content

APK package is incorrect. #1480

@JGodin-C2C

Description

@JGodin-C2C

What
When trying to install the apk package using apk-tools > 3.0.0, installation fails

Reproduce

docker run -it php:8.3-fpm-alpine /bin/sh
/var/www/html # wget https://github.com/elastic/apm-agent-php/releases/download/v1.16.0/apm-agent-php_1.16.0_x86_64.apk
Connecting to github.com (140.82.121.4:443)
Connecting to release-assets.githubusercontent.com (185.199.110.133:443)
saving to 'apm-agent-php_1.16.0_x86_64.apk'
apm-agent-php_1.16.0 100% |**********************************************************************************************************************************************| 5390k  0:00:00 ETA
'apm-agent-php_1.16.0_x86_64.apk' saved
/var/www/html # apk add --allow-untrusted  ./apm-agent-php_1.16.0_x86_64.apk
ERROR: ./apm-agent-php_1.16.0_x86_64.apk: v2 package format error
/var/www/html # sha512sum ./apm-agent-php_1.16.0_x86_64.apk 
aaf185e1b4b81d813a8ea2927170680e7b064ea57b2fde0422eef4004733fe28089ce67d686744b1e9c103ba3dfca25ebddbec0aac911dfb6be1190535f699eb  ./apm-agent-php_1.16.0_x86_64.apk

Expected behavior
Apm-agent is installed

Analysis
The package manager for alpine is now using a stricter way of verifiying the package integrity.
I guess that you are using FPM to build the package.
It does not seems to support APK v3 (yet ? )
jordansissel/fpm#2131

Regards.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions