unexpected end of file on package installation
APK keeps failing to install the attached package at random. Sometime it works, sometime it doesn't. It's always this specific package, none of the other 141 packages caused any issues.
The error message is:
(88/142) Installing libnftnl11 (1.2.1-r1)
ERROR: libnftnl11_1.2.1-r1: unexpected end of file
Looking at the adbdump
I don't see anything suspicious
❯ ./staging_dir/host/bin/apk adbdump staging_dir/packages/ramips/libnftnl11_1.2.1-r1.apk
#%SCHEMA: 676B6370
# ADB block, size: 1180, compat: 0, ver: 0
info:
name: libnftnl11
version: 1.2.1-r1
unique-id: 361b41450a34275235653cb9125493bc60dbee17
arch: mipsel_24kc
license: GPL-2.0-or-later
origin: package/libs/libnftnl
maintainer: Steven Barth <steven@midlink.org>
installed-size: 136 KiB
depends: # 1 items
- libmnl0
provides: # 1 items
- libnftnl=0
abi: 11
paths: # 6 items
- acl:
mode: 755
user: root
group: wheel
- name: lib
acl:
mode: 755
user: root
group: wheel
- name: lib/apk
acl:
mode: 755
user: root
group: wheel
- name: lib/apk/packages
acl:
mode: 755
user: root
group: wheel
files: # 1 items
- name: libnftnl.list
acl:
mode: 644
user: root
group: wheel
size: 140
mtime: 1643932995
hash: |
b38c327a11b752bc913bb57f5017704922256a17c3718be124f49518ccc4fedc
- name: usr
acl:
mode: 755
user: root
group: wheel
- name: usr/lib
acl:
mode: 755
user: root
group: wheel
files: # 2 items
- name: libnftnl.so.11
acl:
mode: 755
user: root
group: wheel
size: 18
mtime: 1643932995
target: 00a06c69626e66746e6c2e736f2e31312e362e30
- name: libnftnl.so.11.6.0
acl:
mode: 755
user: root
group: wheel
size: 133859
mtime: 1643932995
hash: |
9e8ee573686728590cffd660edc78f859a6036181f61231375bd881141d39e11
scripts:
post-install: |
#!/bin/sh
[ "${IPKG_NO_SCRIPT}" = "1" ] && exit 0
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
export root="${IPKG_INSTROOT}"
export pkgname="libnftnl"
add_group_and_user
default_postinst
pre-deinstall: |
#!/bin/sh
[ -s ${IPKG_INSTROOT}/lib/functions.sh ] || exit 0
. ${IPKG_INSTROOT}/lib/functions.sh
export root="${IPKG_INSTROOT}"
export pkgname="libnftnl"
default_prerm
# sig v00 h04 57a47f38c520a78667e4c8189bd9a340304402202ac7dd628388c9c9b6db69a8a0f84043e873fb866ff081041dc77ad25f3cba590220..: UNTRUSTED signature
# data block, size: 148
# data block, size: 133867