You are not logged in.

#1 2025-12-23 17:58:44

componentscience
Member
Registered: 2024-01-05
Posts: 20

[Solved] Custom local package repo - failed retrieving file from disk

Trying to create a custom local package repo and the database is not found when running 'pacman -Sy'. Also tried running the commands as root but it made no difference. Confirmed the database is successfully created after running 'repo-add'.

Sequence of steps:
 
1) Manually build Aur packages
   
2) Create custom repo directory

$ mkdir CustomAurRepo
$ cd CustomAurRepo

3) Copy Aur *pkg.tar.zst files into custom repo directory

4) Create custom repo (from inside repo directory)

$ repo-add CustomAurRepo.db.tar.gz *pkg.tar.zst

5) Manually update /etc/pacman.conf

6) Refresh database

sudo pacman -Sy

Stdout and stderr:
http://0x0.st/Pz12.txt

/etc/pacman.conf
http://0x0.st/Pz1L.conf

Last edited by componentscience (2025-12-24 01:15:09)

Offline

#2 2025-12-23 18:09:08

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,724

Re: [Solved] Custom local package repo - failed retrieving file from disk

/project/ArchLinux/ is a very strange path. You really have that in your root dir?

Offline

#3 2025-12-23 18:10:25

componentscience
Member
Registered: 2024-01-05
Posts: 20

Re: [Solved] Custom local package repo - failed retrieving file from disk

Yes

Offline

#4 2025-12-23 20:52:00

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Custom local package repo - failed retrieving file from disk

My guess is the alpm user (the user used for downloading) can not access your repo path.

Offline

#5 2025-12-23 21:51:23

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,462
Website

Re: [Solved] Custom local package repo - failed retrieving file from disk

stat / /project /project/ArchLinux /project/ArchLinux/CustomAurRepo /project/ArchLinux/CustomAurRepo/CustomAurRepo.db

Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2025-12-24 00:08:54

componentscience
Member
Registered: 2024-01-05
Posts: 20

Re: [Solved] Custom local package repo - failed retrieving file from disk

Allan wrote:

My guess is the alpm user (the user used for downloading) can not access your repo path.

Is it okay to add the alpm user to the group that can access the repo path?

Offline

#7 2025-12-24 01:14:40

componentscience
Member
Registered: 2024-01-05
Posts: 20

Re: [Solved] Custom local package repo - failed retrieving file from disk

Moved the repo to a different directory and it worked. The alpm user was not added to any supplementary groups as asked above. Assuming it is not safe to do so? Thank you all.

Offline

#8 2025-12-24 02:48:37

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,672
Website

Re: [Solved] Custom local package repo - failed retrieving file from disk

I don't think adding the alpm user to a group currently works...  It is on the todo list.

Offline

#9 2025-12-24 09:02:11

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 14,951

Re: [Solved] Custom local package repo - failed retrieving file from disk


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB