Issue of own repository

I make repository of mine on GitHub to install calamares (I named it hel-calamares)on the iso of the distro that I will create and I added the repository in mirrorlist which in ect/pacman.d like that

[helwan-linux]
Server = https://github.com/helwan-linux/hel-repos

I gave this command it gave Error:
sudo pacman-conf -f /etc/pacman.d/mirrorlist

I added it in pacman.conf manualy
[helwan-linux]
Server = https://github.com/helwan-linux/hel-repos

I gave this command : sudo pacman -S hel-calamares

warning: database file for ‘helwan-linux’ does not exist (use ‘-Sy’ to download)
error: could not register ‘helwan-linux’ database (database already registered)
error: could not register ‘helwan-linux’ database (database already registered)
error: target not found: hel-calamares

then this command : sudo pacman -Sy helwan-linux

error: could not register ‘helwan-linux’ database (database already registered)
error: could not register ‘helwan-linux’ database (database already registered)
:: Synchronizing package databases…
endeavouros is up to date
core is up to date
helwan-linux.db failed to download
extra is up to date
multilib is up to date
error: failed retrieving file ‘helwan-linux.db’ from github.com : The requested URL returned error: 404
error: failed to synchronize all databases (failed to retrieve some files)

I put hel-calamares out of hel-repo to be https://github.com/helwan-linux/

then : sudo pacman -S pacman then ex-commands to install and add to mirror

warning: database file for ‘helwan-linux’ does not exist (use ‘-Sy’ to download)
error: could not register ‘helwan-linux’ database (database already registered)
error: could not register ‘helwan-linux’ database (database already registered)
warning: pacman-6.0.2-8 is up to date – reinstalling
error: failed to prepare transaction (could not find database)

help please

Is your repo properly created? Do you have a proper pacman DB and signatures on your repo?

With github you need to use some special URL to access the raw files.
Something like that:

https://raw.githubusercontent.com/helwan-linux/hel-repos/master/

https://raw.githubusercontent.com/helwan-linux/hel-repos/master/README.md

1 Like

that is what I am asking about how to have db and yea repo is created

You should take a look at repo-add. This manages the database a repo needs.

Although, again I feel the need to point out that helping you build an entire distro is a bit outside the limits of the help we typically provide on the forum.