Skip to content

[Bug]: Alpine apk in v4.9.1 release is malformed and can't be installed #112

Description

@Sudo-Ivan

MeshChatX version

4.9.1

Release channel

Stable

Platform

Other

Operating system

Linux

OS details (if Other)

Alpine (tested on alpine:latest and alpine:3.20 containers)

How did you install MeshChatX?

Other (Alpine .apk from the release CDN)

What happened?

The v4.9.1 Alpine apk won't install. apk add --allow-untrusted rejects it with "v2 package format error" on apk-tools 3.0.8 and "package file format error" on apk-tools 2.14.4. The downloaded file sha256-matches the value in the releases API (773ac0b9a03bd3a9a0e32fd2e73cfe5c6aef9b7f2971805e093c85a98dcb010a), so this is the published artifact, not a corrupted download.

.PKGINFO says # Generated by fpm, and the package is malformed four ways:

  • arch = amd64. Alpine expects x86_64; the Debian name alone gets the package rejected.
  • The .PKGINFO tar header checksum is invalid (stored 011567, computed 010347). GNU tar, python tarfile, and apk all refuse it.
  • No datahash field, which apk requires for the data section.
  • size = 102400 is a placeholder, not the real installed size.

The payload is intact. The inner tar extracts to a complete Electron bundle under /opt/Reticulum MeshChatX/, so repackaging fixes this without touching the app.

Likely fix: build the apk with abuild inside an Alpine container, or at minimum add apk add --allow-untrusted on the artifact as a release gate. This failure would have been caught in about 30 seconds of CI.

What did you expect?

apk add installs the package on a clean Alpine container.

Steps to reproduce

  1. podman run --rm -it alpine (or docker)
  2. wget https://cdn.quad4.io/release/v4.9.1/ReticulumMeshChatX-v4.9.1-linux-alpine-x64.apk
  3. apk add --allow-untrusted ReticulumMeshChatX-v4.9.1-linux-alpine-x64.apk

Logs or error output

ERROR: ReticulumMeshChatX-v4.9.1-linux-alpine-x64.apk: v2 package format error
ERROR: ReticulumMeshChatX-v4.9.1-linux-alpine-x64.apk: package file format error

Checklist

  • I searched existing issues to avoid duplicates
  • I included my MeshChatX version, channel, operating system, and install method
  • I can reproduce the issue with the steps above

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions