Skip to content

apk v2 package format error #2131

@hertznsk

Description

@hertznsk

Problem

APK packages created using FPM version 1.17.0 cannot be installed on Alpine Linux 3.23 with the error below:
ERROR: datadog-php-tracer_1.17.0_aarch64.apk: v2 package format error.

Root Cause

Alpine 3.23 introduced apk-tools v3.0.0, which enforces stricter APK v2 package validation. The new version requires a datahash field in the package's PKGINFO file - a SHA256 hash of the gzipped data.tar that's validated post-installation. Packages built with fpm 1.17.0 don't include this field, causing validation failures.

Additional information

DataDog/dd-trace-php#3555

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions