Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id 59CFA225AD2 for <~alpine/devel@lists.alpinelinux.org>; Fri, 14 Mar 2025 22:34:30 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-543e4bbcd86so2817527e87.1 for <~alpine/devel@lists.alpinelinux.org>; Fri, 14 Mar 2025 15:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1741991668; x=1742596468; darn=lists.alpinelinux.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=xOKlVH1/ZZVcZairvRjLD5zGKefZQsJUlt/lbRjmlD0=; b=jzCQAfUjvMGEVk1qwwrRCU3hom34JGQWaT8c0Z7Wd4Eje8HBON2VLflK/8vRS+3Nyx wUSQ3+uYGgj7rsbbIEv/leFVRD8FlDrKPrCQZdyrhPUi0toQftIeY09SiTSj53o+CdV6 dTGX1A+K9vk9HJx6aIaQaRlle3Naaxt6k25zMvt6jRx8U4KGbZmpuVFkpHG2fX8edIan sKF40S11nTQp/dBO8kE9nTDMDW8MC88csas1swtkS6FLQgdNxO28bdDccblxkTNegbsx F99Y/SwDLnMSFeROlkfZtf8N4btak/bQCeZ/eABIk78mugLp6pMdZtc6OfToH7WB7VFb fq8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1741991668; x=1742596468; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xOKlVH1/ZZVcZairvRjLD5zGKefZQsJUlt/lbRjmlD0=; b=o4Mf+WNICZwlNwhjzIZWJa3N7P6Eu9gBF0chiAPr164EeaUd3/WxalKYU4qhQUiKly CQ7QARuOTwmQxkwhTS+4s3IFsyfsVpOfWPPfhkyu9m3PjVjSRUFVZOJhsWuzR8AL2ZyF o880k+CHVzEqPEPF3/d/DTABEMumXbiVVKpvjBZL7AQYQeVJgCJKsv28PLPZpmXz0osA BsO/kCsVrrnISuve2vUHIGOcYdmLJj5ColLcfyyHdeOs3xBon5hAXQMXyxdEPD7BYc35 NnaNS6hdptGJBpmy7MfxpE2qQbG1TTK63K1b1uQawbk21SW18xWi0glWinSbPlVOLUTp rC8Q== X-Gm-Message-State: AOJu0YyjZRvKRkJm7hegHqifpn4KvJEPACyRZZmxKGdEn5FMgyut7JPr MnOxde/ZZHsQJGcZp4nasu8eIfrEnHjOnorp4AGl2D9MrMS1JiBifMO8JVCbn0xbCenHiEnNMhi bPS5AiixG9nmKDILd10MEGFGh6ZE= X-Gm-Gg: ASbGncsoxFrpBcAv3nzE6zpOpaUZgtpg8dwu6itGJbJg8JQQQGdh1nBQuSUrqbFmJ28 n565M2ywG142NQs2zsY4VFvOM+CtHnuB6NIeC87YW2SB4yCXh+Hh7Yy486wNvTcoSR07YYduwlY AvA57htbhmzirDnX5ZL9r5GEHaW2Fy X-Google-Smtp-Source: AGHT+IFDXl578InbRvDZN1IEgdHweurYmOV0vGUeG8mRwl8qySgp29/2uAiQyHi6JsVruL6gUIPbblDa3YE6Y/cGKEw= X-Received: by 2002:a05:6512:4016:b0:545:291:7ee0 with SMTP id 2adb3069b0e04-549c3989bd1mr1538484e87.34.1741991667704; Fri, 14 Mar 2025 15:34:27 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jim Pryor Date: Fri, 14 Mar 2025 18:34:18 -0400 X-Gm-Features: AQ5f1JqcfXqICx_2Q-KwJ_GdYFwNsxhvLvrAdm7QICXA_T9oWyB88xSVgGVaxGc Message-ID: Subject: Re: Can't recognize local repository To: Sertonix Cc: ~alpine/devel@lists.alpinelinux.org Content-Type: multipart/alternative; boundary="0000000000008e2c960630550a4a" --0000000000008e2c960630550a4a Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I tried that (experimentally) and then `apk update -v` just ignored the directory (but no longer any warning). On Fri, Mar 14, 2025, 5:01=E2=80=AFPM Sertonix wrote: > 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 a= nd > > 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.g= z > > > > -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. > --0000000000008e2c960630550a4a Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I tried that (experimentally) and then `apk update -v` just = ignored the directory (but no longer any warning).


On Fri, Mar 14, 2025, 5:01=E2=80=AFPM Sertonix <sertonix@posteo.net> wrote:
On Fri Mar 14, 2025 at 9:31 PM CET, Jim Pry= or wrote:
> I have an issue where `apk` can't see a local repository. I have a= n
> 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 b= est 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--=C2=A0 =C2=A0 1 bob=C2=A0 =C2=A0 =C2=A0 abuild=C2=A0 =C2=A0 = =C2=A0 =C2=A0 1786 Mar 14 16:21 APKINDEX.tar.gz
>
> -rw-r--r--=C2=A0 =C2=A0 1 bob=C2=A0 =C2=A0 =C2=A0 abuild=C2=A0 =C2=A0 = =C2=A0 314101 Mar 14 15:27
> micropython-1.24.1-r1.apk
>
> -rw-r--r--=C2=A0 =C2=A0 1 bob=C2=A0 =C2=A0 =C2=A0 abuild=C2=A0 =C2=A0 = =C2=A0 157669 Mar 14 15:27
> micropython-cross-1.24.1-r1.apk
>
> -rw-r--r--=C2=A0 =C2=A0 1 bob=C2=A0 =C2=A0 =C2=A0 abuild=C2=A0 =C2=A0 = =C2=A0 =C2=A063295 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.
--0000000000008e2c960630550a4a--