Received: from fforwardh-a3-smtp.messagingengine.com (fforwardh-a3-smtp.messagingengine.com [103.168.172.198]) by gbr-app-1.alpinelinux.org (Postfix) with ESMTPS id F0A30225A4F for <~alpine/devel@lists.alpinelinux.org>; Fri, 14 Mar 2025 21:03:41 +0000 (UTC) Received: from phl-compute-05.internal (phl-compute-05.phl.internal [10.202.2.45]) by mailfforwardh.phl.internal (Postfix) with ESMTP id 975E12920376 for <~alpine/devel@lists.alpinelinux.org>; Fri, 14 Mar 2025 17:03:39 -0400 (EDT) Received: from phl-imap-12 ([10.202.2.86]) by phl-compute-05.internal (MEProxy); Fri, 14 Mar 2025 17:03:39 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :content-type:date:date:feedback-id:feedback-id:from:from :in-reply-to:message-id:mime-version:reply-to:subject:subject:to :to:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t= 1741986219; x=1742072619; bh=YxgdV+f7nFO5aqgDRXtnPhQ3+e2zIFAt1Oj ugLniOYA=; b=S6DO9algFHRrMW8Dq8iuw1QsHT/jWrKIz+gxPQzpHCF6f/AHSFX A4IBQPCNCnKinBQsnoZUkMIH3LAN2h5yt0HL49jkjQAc7fNZRRZ9Blh/ZwLByelC sVuPKALpdEUJYaWa05jWC5+KwxBbQ3ODs5aIDDFDs/56vJ2c2I7gb/jhtmJLPDHJ fNMvhsG2652QbS8P41gsc2e1z2wxeBu3id6CKLdN5tm2bIJ6ufwzxTmloWUf33FF 4vV39hRZbKWYzTwDyJ0Iw2JouAOYnIa3cxOI/o4KUgBZoEBpFyUPrJESelfxFHnj wei+HhOxecFyRlIeAcrHxOo3xQU+uqSWI4Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufedukeeiucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpefogg ffhffvkffutgfgsehtjeertdertddtnecuhfhrohhmpedflfhimhcurfhrhihorhdfuceo ughusghiohhushhjihhmsehgmhgrihhlrdgtohhmqeenucggtffrrghtthgvrhhnpeffje etieehudejteeuheeuledufeeiiefhffefvdefhfetiedtvedugfefheduveenucffohhm rghinheprhhsrgdrphhusgdprghlphhinhgvlhhinhhugidrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpeguuhgsihhouhhsjhhimhes ghhmrghilhdrtghomhdpnhgspghrtghpthhtohepuddpmhhouggvpehsmhhtphhouhhtpd hrtghpthhtohepmigrlhhpihhnvgdsuggvvhgvlheslhhishhtshdrrghlphhinhgvlhhi nhhugidrohhrgh X-ME-Proxy: Feedback-ID: i5b2c416c:Fastmail Received: by mailuser.phl.internal (Postfix, from userid 501) id 514C01C20067; Fri, 14 Mar 2025 17:03:39 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface MIME-Version: 1.0 Date: Fri, 14 Mar 2025 17:03:20 -0400 From: "Jim Pryor" To: ~alpine/devel@lists.alpinelinux.org Message-Id: <778c0fb3-2828-4299-b245-31919bb66dbd@app.fastmail.com> Subject: Can't recognize local repository Content-Type: text/plain Content-Transfer-Encoding: 7bit (Apologies if this is a double post. I _think_ the first version was rejected for having styled text.) 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 /etc/apk/keys/bob* -rw-r--r-- 1 root root 800 Mar 14 15:44 /etc/apk/keys/bob-67d48136.rsa.pub main0:~# ls -l /home/bob/.abuild/ total 12 -rw-r--r-- 1 bob wheel 80 Mar 14 16:19 abuild.conf -rw------- 1 bob wheel 3272 Mar 14 15:19 bob-67d48136.rsa -rw-r--r-- 1 bob wheel 800 Mar 14 15:19 bob-67d48136.rsa.pub main0:~# id root uid=0(root) gid=0(root) groups=0(root),0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel),11(floppy),20(dialout),26(tape),27(video),300(abuild) main0:~# id bob uid=1000(bob) gid=300(abuild) groups=300(abuild),10(wheel) main0:~# ls -ld /var drwxr-xr-x 12 root root 4096 Mar 9 13:15 /var main0:~# ls -ld /var/lib drwxr-xr-x 6 root root 4096 Mar 14 16:15 /var/lib main0:~# ls -ld /var/lib/packages drwxrwxr-x 2 root abuild 4096 Mar 14 16:21 /var/lib/packages 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 main0:~# cat /etc/apk/repositories http://dl-cdn.alpinelinux.org/alpine/v3.21/main http://dl-cdn.alpinelinux.org/alpine/v3.21/community /var/lib/packages main0:~# id -un root main0:~# apk update -v fetch http://dl-cdn.alpinelinux.org/alpine/v3.21/main/armv7/APKINDEX.tar.gz fetch http://dl-cdn.alpinelinux.org/alpine/v3.21/community/armv7/APKINDEX.tar.gz WARNING: opening /var/lib/packages: No such file or directory v3.21.3-159-gdab69828342 [http://dl-cdn.alpinelinux.org/alpine/v3.21/main] v3.21.3-161-gf15e577c644 [ http://dl-cdn.alpinelinux.org/alpine/v3.21/community] OK: 23811 distinct packages available ``` -- dubiousjim@gmail.com