You are not logged in.
Pages: 1
Topic closed
I'm following the instructions from `man aur':
Pacman configuration
For the purposes of this example, we assume the local repository custom
is located in /home/custompkgs.
Append a section for the local repository to /etc/pacman.conf
[custom]
SigLevel = Optional TrustAll
Server = file:///home/custompkgs
Create the repository root and database:
$ sudo install -d /home/custompkgs -o $USER
$ repo-add /home/custompkgs/custom.db.tar.gz
If built packages are available, add them to the database:
$ cd /home/custompkgs
$ repo-add -n custom.db.tar.gz *.pkg.tar*
Synchronize pacman:
$ sudo pacman -Syu
This is the relevant excerpt from my /etc/pacman.conf:
[aurpkgs]
SigLevel = Optional TrustAll
Server = file:///home/deveng/local/aurpkgs
And this is my shell session:
$ pwd
/home/deveng/local/aurpkgs
$ ls -1a
./
../
aurutils/
aurutils-20.1-1-any.pkg.tar.zst
aurutils.tar.gz
$ sudo install -d /home/deveng/local/aurpkgs -o $USER
$ repo-add /home/deveng/local/aurpkgs/pkgs.db.tar.gz
==> Creating updated database file '/home/deveng/local/aurpkgs/pkgs.db.tar.gz'
==> WARNING: No packages remain, creating empty database.
==> WARNING: No packages remain, creating empty database.
$ repo-add -n pkgs.db.tar.gz aurutils-20.1-1-any.pkg.tar.zst
==> Extracting pkgs.db.tar.gz to a temporary location...
==> Extracting pkgs.files.tar.gz to a temporary location...
==> Adding package 'aurutils-20.1-1-any.pkg.tar.zst'
-> Computing checksums...
-> Creating 'desc' db entry...
-> Creating 'files' db entry...
==> Creating updated database file 'pkgs.db.tar.gz'
$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
pkgs.db failed to download
error: failed retrieving file 'pkgs.db' from disk : Couldn't open file /home/deveng/local/aurpkgs/pkgs.db
error: failed to synchronize all databases (failed to retrieve some files)
$ ls -la
total 184
drwxr-xr-x 3 deveng alpm 20480 Oct 24 11:06 ./
drwxr-xr-x 5 deveng deveng 4096 Oct 2 09:11 ../
drwxr-xr-x 4 deveng alpm 4096 Oct 24 09:27 aurutils/
-rw-r--r-- 1 deveng alpm 119742 Oct 24 09:22 aurutils-20.1-1-any.pkg.tar.zst
-rw-r--r-- 1 deveng alpm 13228 Oct 24 09:22 aurutils.tar.gz
lrwxrwxrwx 1 deveng deveng 14 Oct 24 11:06 pkgs.db -> pkgs.db.tar.gz
-rw-r--r-- 1 deveng deveng 592 Oct 24 11:06 pkgs.db.tar.gz
-rw-r--r-- 1 deveng deveng 45 Oct 24 11:06 pkgs.db.tar.gz.old
lrwxrwxrwx 1 deveng deveng 17 Oct 24 11:06 pkgs.files -> pkgs.files.tar.gz
-rw-r--r-- 1 deveng deveng 1072 Oct 24 11:06 pkgs.files.tar.gz
-rw-r--r-- 1 deveng deveng 45 Oct 24 11:06 pkgs.files.tar.gz.old
My guess is that I am misunderstanding something or missing some other detail. I would appreciate any ideas or guidance.
Last edited by FernandoBasso (2024-10-25 09:09:33)
There is a difference between knowing the path and walking the path.
Offline
You'll need to configure the repo appropriately for pacman v7 compat and I strongly suggest you don't pick a home dir base path for this: https://archlinux.org/news/manual-inter … -required/
Offline
You'll need to configure the repo appropriately for pacman v7 compat and I strongly suggest you don't pick a home dir base path for this: https://archlinux.org/news/manual-inter … -required/
I read that piece news about pacman v7 when it camem out, but at the time my other machine did not present any problems and I was able to continue using aur normally with a local repository in $HOME/local/aurpkgs.
I now realize it was still working because I did not merge the .pacnew file with /etc/pacman.conf. And since I did a fresh install on a new machine, /etc/pacman.conf contains the new configs, thus causing the behavior I described.
I simply moved the local repository to /opt/aurpkgs and it worked, and it also worked when I tried with /home/aurpkgs.
Thank you.
There is a difference between knowing the path and walking the path.
Offline
Hello, I'm having the same problem, but chowning the directory and its files didn't help.
I get this output and also included a sanity check to ensure the db file exists:
[ocha@chamise custompkgs]$ sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
custom.db failed to download
error: failed retrieving file 'custom.db' from disk : Couldn't open file /home/ocha/bin/custompkgs/custom.db
error: failed to synchronize all databases (failed to retrieve some files)
[ocha@chamise custompkgs]$ pwd
/home/ocha/bin/custompkgs
[ocha@chamise custompkgs]$ ls
aurutils-20.3-1-any.pkg.tar.zst custom.db custom.db.tar.gz custom.db.tar.gz.old custom.files custom.files.tar.gz custom.files.tar.gz.old
I don't seem to have any pacnew files to merge:
$ grep '\.pacnew\|\.pacsave' /var/log/pacman.log
$
Pacman v7.0.0 - libalpm v15.0.0
Last edited by accy (2024-11-24 22:20:49)
Offline
If the linked news article doesn't answer your questions, please open a new topic about your issue.
Closing this old, solved topic.
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
Pages: 1
Topic closed