On Fri Mar 14, 2025 at 9:31 PM CET, Jim Pryor wrote:
> I have an issue where `apk` can't see a local repository. I have an
> unprivileged user who created some packages, created an APKINDEX file and
> signed the index. That user's public key is installed in `/etc/apk/keys`.
> The unprivileged user and root both belong to the `abuild` group. As best I
> can tell, the permissions on the repository, index, and package files look
> correct. But when I do `apk update` I get a message that the
> repository `/var/lib/packages` can't be found. Any ideas?
>
>
> main0:~# ls -l /var/lib/packages/
>
> total 532
>
> -rw-r--r-- 1 bob abuild 1786 Mar 14 16:21 APKINDEX.tar.gz
>
> -rw-r--r-- 1 bob abuild 314101 Mar 14 15:27
> micropython-1.24.1-r1.apk
>
> -rw-r--r-- 1 bob abuild 157669 Mar 14 15:27
> micropython-cross-1.24.1-r1.apk
>
> -rw-r--r-- 1 bob abuild 63295 Mar 14 15:27
> micropython-doc-1.24.1-r1.apk
>
The path of the repository contains the arch. So you need to place the
files in /var/lib/packages/armv7.