You are not logged in.
Hello,
i recently have recently decided to switch from yay to aurutils. I followed the guide the manpage gave me (not 100% but with the naming and where to place the repo) and i now reached the point where i need to add my old packages into my aur repo. My question now is where do i find the packages installed by yay from the aur?
Thanks,
Nima0908
Offline
Mod note: moving to AUR Issues.
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
man pacman:
...
-m, --foreign
Restrict or filter output to packages that were not found in the sync database(s). Typically these are packages that were downloaded manually and installed with --upgrade.
...
Online
Hello,
Thanks. I was already using
pacman -Qm
to list all foreign packages but it somehow doesnt show me all foreign packages.
Last edited by Nima0908 (2024-11-19 21:46:58)
Offline
Yes it does.
It may not list packages you're looking for, but that's something different, so please elaborate on expectations ./. outcome.
Offline
No it does not. I have packages installed like teams for linux or vesktop which are from the aur but they dont get listed even though i can see that theyre installed and also use them
Offline
Well, let's see.
pacman -Qi vesktop
Edit: next stops spoiler:
pacman -Qm | grep -i vesktop
pacman-conf
Last edited by seth (2024-11-19 22:16:18)
Offline
When i do
sudo pacman -Qi
i get the output
Name : vesktop-bin
Version : 1.5.3-1
Description : A cross platform electron-based desktop app aiming to give you a snappier Discord experience with Vencord pre-installed
Architecture : x86_64
URL : https://github.com/Vencord/Vesktop
Licenses : GPL-3.0-only
Groups : None
Provides : vesktop=1.5.3 vencord-desktop=1.5.3
Depends On : electron31
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : vesktop vencord-desktop
Replaces : None
Installed Size : 9.00 MiB
Packager : Unknown Packager
Build Date : Fri 05 Jul 2024 10:04:33 PM CEST
Install Date : Fri 05 Jul 2024 10:04:44 PM CEST
Install Reason : Explicitly installed
Install Script : No
Validated By : None
which clearly shows that it was installed explicitly but when i do
sudo pacman -Qm
i get the output
libva-nvidia-driver-git 0.0.12.r11.gf3205bd-1
libva-nvidia-driver-git-debug 0.0.12.r11.gf3205bd-1
nwg-look-bin 0.2.7-1
nwg-look-bin-debug 0.2.7-1
swaylock-effects 1.7.0.0-4
swaylock-effects-debug 1.7.0.0-4
swww-debug 0.9.5-1
wlogout 1.2.2-0
wlogout-debug 1.2.2-0
xorg-xwayland-git-debug 24.1.0.r138.g760583331-1
which doesnt show it
Offline
it was installed explicitly
That's not reelvant itr, please post the output of "pacman-conf"
Offline
❯ pacman-conf
[options]
RootDir = /
DBPath = /var/lib/pacman/
CacheDir = /var/cache/pacman/pkg
CacheDir = /var/cache/pacman/aur
HookDir = /etc/pacman.d/hooks/
GPGDir = /etc/pacman.d/gnupg/
LogFile = /var/log/pacman.log
HoldPkg = pacman
HoldPkg = glibc
Architecture = x86_64
CheckSpace
ParallelDownloads = 5
CleanMethod = KeepCurrent
SigLevel = PackageRequired
SigLevel = PackageTrustedOnly
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustedOnly
LocalFileSigLevel = PackageOptional
LocalFileSigLevel = PackageTrustedOnly
[core]
Usage = All
Server = https://mirror.sunred.org/archlinux/core/os/x86_64
Server = https://mirror.f4st.host/archlinux/core/os/x86_64
Server = https://pkg.fef.moe/archlinux/core/os/x86_64
Server = https://mirror.moson.org/arch/core/os/x86_64
Server = https://at.arch.mirror.kescher.at/core/os/x86_64
Server = https://arch.phinau.de/core/os/x86_64
Server = https://de.arch.mirror.kescher.at/core/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64
Server = https://mirror.ubrco.de/archlinux/core/os/x86_64
Server = https://md.mirrors.hacktegic.com/archlinux/core/os/x86_64
Server = https://mirror.alwyzon.net/archlinux/core/os/x86_64
Server = https://archlinux.thaller.ws/core/os/x86_64
Server = https://mirror.osbeck.com/archlinux/core/os/x86_64
Server = https://repo.jing.rocks/archlinux/core/os/x86_64
Server = https://arch.mirror.constant.com/core/os/x86_64
Server = https://mirror.cyberbits.eu/archlinux/core/os/x86_64
Server = https://archmirror.it/repos/core/os/x86_64
Server = https://mirror.cspacehostings.com/archlinux/core/os/x86_64
Server = https://mirror.theash.xyz/arch/core/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/core/os/x86_64
[extra]
Usage = All
Server = https://mirror.sunred.org/archlinux/extra/os/x86_64
Server = https://mirror.f4st.host/archlinux/extra/os/x86_64
Server = https://pkg.fef.moe/archlinux/extra/os/x86_64
Server = https://mirror.moson.org/arch/extra/os/x86_64
Server = https://at.arch.mirror.kescher.at/extra/os/x86_64
Server = https://arch.phinau.de/extra/os/x86_64
Server = https://de.arch.mirror.kescher.at/extra/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/extra/os/x86_64
Server = https://mirror.ubrco.de/archlinux/extra/os/x86_64
Server = https://md.mirrors.hacktegic.com/archlinux/extra/os/x86_64
Server = https://mirror.alwyzon.net/archlinux/extra/os/x86_64
Server = https://archlinux.thaller.ws/extra/os/x86_64
Server = https://mirror.osbeck.com/archlinux/extra/os/x86_64
Server = https://repo.jing.rocks/archlinux/extra/os/x86_64
Server = https://arch.mirror.constant.com/extra/os/x86_64
Server = https://mirror.cyberbits.eu/archlinux/extra/os/x86_64
Server = https://archmirror.it/repos/extra/os/x86_64
Server = https://mirror.cspacehostings.com/archlinux/extra/os/x86_64
Server = https://mirror.theash.xyz/arch/extra/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/extra/os/x86_64
[multilib]
Usage = All
Server = https://mirror.sunred.org/archlinux/multilib/os/x86_64
Server = https://mirror.f4st.host/archlinux/multilib/os/x86_64
Server = https://pkg.fef.moe/archlinux/multilib/os/x86_64
Server = https://mirror.moson.org/arch/multilib/os/x86_64
Server = https://at.arch.mirror.kescher.at/multilib/os/x86_64
Server = https://arch.phinau.de/multilib/os/x86_64
Server = https://de.arch.mirror.kescher.at/multilib/os/x86_64
Server = https://archlinux.uk.mirror.allworldit.com/archlinux/multilib/os/x86_64
Server = https://mirror.ubrco.de/archlinux/multilib/os/x86_64
Server = https://md.mirrors.hacktegic.com/archlinux/multilib/os/x86_64
Server = https://mirror.alwyzon.net/archlinux/multilib/os/x86_64
Server = https://archlinux.thaller.ws/multilib/os/x86_64
Server = https://mirror.osbeck.com/archlinux/multilib/os/x86_64
Server = https://repo.jing.rocks/archlinux/multilib/os/x86_64
Server = https://arch.mirror.constant.com/multilib/os/x86_64
Server = https://mirror.cyberbits.eu/archlinux/multilib/os/x86_64
Server = https://archmirror.it/repos/multilib/os/x86_64
Server = https://mirror.cspacehostings.com/archlinux/multilib/os/x86_64
Server = https://mirror.theash.xyz/arch/multilib/os/x86_64
Server = https://ftp.sh.cvut.cz/arch/multilib/os/x86_64
[aur]
Usage = All
SigLevel = PackageOptional
SigLevel = PackageTrustAll
SigLevel = DatabaseOptional
SigLevel = DatabaseTrustAll
Server = file:///var/cache/pacman/aur
Offline
ls /var/cache/pacman/aur
"Foreign" packages are packages that are not found in any repo.
Offline
Yeah, youre right, sorry. This is the server for aurutils in which i manually addet the packages from
~/.cache/yay/
but as i saw by closer inspections, that are not the right packages so to come back to my first question, where do i find all the current packages installed by yay?
Offline
where do i find all the current packages installed by yay?
pacman records the install reason for a package. The sync databases record what packages are available in repos as of the last sync. If you have a mixture of packages from a local repo and packages not in any repo I think you will have to manually determine which packages you are looking for.
Offline
that are not the right packages
What does that mean?
And itr:
where do i find all the current packages installed by yay?
Maybe for clarification: Do you mean a list of AUR packages or the packages themselves?
yay keeps a cache and you found it, but packages are not somehow installed as tarballs but extracted into the filesystem and the cache might have been cleared at some point or you might have used a different --builddir
Offline
I know that. Maybe i didnt clarify exactly enough. I do not look for the packages exactly but for the *.pkg.tar.xz (xz is only a example it can pe different) that is created when installed.
Offline
I do not look for the packages exactly but for the *.pkg.tar.xz (xz is only a example it can pe different) that is created when installed.
The package is created when it is built not when it is installed. This is the confusion using a helper such as yay creates. If you want to search for built packages on the system:
find -iname '*.pkg*'
Offline
Hello,
thanks this worked. I used
sudo pacman -Qm | awk '{print $1}' | xargs -I{} find / -iname '{}*.pkg*' 2>/dev/null | xargs -I{} cp -u {} /var/cache/pacman/aur && \
repo-add -n /var/cache/pacman/aur/aur.db.tar.gz /var/cache/pacman/aur/*.pkg.tar.xz
which worked for me. But now when i do
sudo pacman -Syu
i get the output
❯ sudo pacman -Syu
error: could not register 'aur' database (database already registered)
:: Synchronizing package databases...
core is up to date
extra is up to date
multilib is up to date
aur.db failed to download
error: failed retrieving file 'aur.db' from disk : URL rejected: Bad file:// URL
error: failed to synchronize all databases (unexpected error)
which is weird because as far as i see it in my pacman.conf and /etc/pacman.d/aur it should be correctly configured.
pacman.conf:
#
# /etc/pacman.conf
#
# See the pacman.conf(5) manpage for option and repository directives
#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
#GPGDir = /etc/pacman.d/gnupg/
#HookDir = /etc/pacman.d/hooks/
HoldPkg = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
Architecture = auto
# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg =
#IgnoreGroup =
#NoUpgrade =
#NoExtract =
# Misc options
#UseSyslog
#Color
#NoProgressBar
CheckSpace
#VerbosePkgLists
ParallelDownloads = 5
# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required
# NOTE: You must run `pacman-key --init` before first using pacman; the local
# keyring can then be populated with the keys of all official Arch Linux
# packagers with `pacman-key --populate archlinux`.
#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
# - URLs will have $repo replaced by the name of the current repo
# - URLs will have $arch replaced by the name of the architecture
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#
# The testing repositories are disabled by default. To enable, uncomment the
# repo name header and Include lines. You can add preferred servers immediately
# after the header, and they will be used before the default mirrors.
#[core-testing]
#Include = /etc/pacman.d/mirrorlist
[core]
Include = /etc/pacman.d/mirrorlist
#[extra-testing]
#Include = /etc/pacman.d/mirrorlist
[extra]
Include = /etc/pacman.d/mirrorlist
# If you want to run 32 bit applications on your x86_64 system,
# enable the multilib repositories as required here.
#[multilib-testing]
#Include = /etc/pacman.d/mirrorlist
[multilib]
Include = /etc/pacman.d/mirrorlist
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
[aur]
SigLevel = Optional TrustAll
Server = file://var/cache/pacman/aur
Include = /etc/pacman.d/aur
/etc/pacman.d/aur:
[options]
CacheDir = /var/cache/pacman/pkg
CacheDir = /var/cache/pacman/aur
CleanMethod = KeepCurrent
[aur]
SigLevel = Optional TrustAll
Server = file:///var/cache/pacman/aur
Offline
Please post the output of:
# pacman -Syu --debug
stat /var/cache/pacman/aur/aur.db*
Offline
Here is the output:
❯ sudo pacman -Syu --debug
stat /var/cache/pacman/aur/aur.db*
debug: pacman v7.0.0 - libalpm v15.0.0
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: Architecture: auto
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 82: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 91: including /etc/pacman.d/mirrorlist
debug: config: new section 'aur'
debug: config: SigLevel: Optional
debug: config: SigLevel: TrustAll
debug: config file /etc/pacman.conf, line 98: including /etc/pacman.d/aur
debug: config: new section 'options'
debug: config: CacheDir: /var/cache/pacman/pkg
debug: config: CacheDir: /var/cache/pacman/aur
debug: config: CleanMethod: KeepCurrent
debug: config: new section 'aur'
debug: config: SigLevel: Optional
debug: config: SigLevel: TrustAll
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: option 'cachedir' = /var/cache/pacman/aur/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': https://mirror.sunred.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.f4st.host/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://pkg.fef.moe/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.moson.org/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://at.arch.mirror.kescher.at/core/os/x86_64
debug: adding new server URL to database 'core': https://arch.phinau.de/core/os/x86_64
debug: adding new server URL to database 'core': https://de.arch.mirror.kescher.at/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.ubrco.de/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://md.mirrors.hacktegic.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.alwyzon.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.thaller.ws/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.osbeck.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://repo.jing.rocks/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://arch.mirror.constant.com/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.cyberbits.eu/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archmirror.it/repos/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.cspacehostings.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.theash.xyz/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://ftp.sh.cvut.cz/arch/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': https://mirror.sunred.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.f4st.host/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://pkg.fef.moe/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.moson.org/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://at.arch.mirror.kescher.at/extra/os/x86_64
debug: adding new server URL to database 'extra': https://arch.phinau.de/extra/os/x86_64
debug: adding new server URL to database 'extra': https://de.arch.mirror.kescher.at/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.uk.mirror.allworldit.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.ubrco.de/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://md.mirrors.hacktegic.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.alwyzon.net/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.thaller.ws/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.osbeck.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://repo.jing.rocks/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://arch.mirror.constant.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.cyberbits.eu/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archmirror.it/repos/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.cspacehostings.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.theash.xyz/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://ftp.sh.cvut.cz/arch/extra/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': https://mirror.sunred.org/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.f4st.host/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://pkg.fef.moe/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.moson.org/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://at.arch.mirror.kescher.at/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://arch.phinau.de/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://de.arch.mirror.kescher.at/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.uk.mirror.allworldit.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.ubrco.de/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://md.mirrors.hacktegic.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.alwyzon.net/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.thaller.ws/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.osbeck.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://repo.jing.rocks/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://arch.mirror.constant.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.cyberbits.eu/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archmirror.it/repos/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.cspacehostings.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.theash.xyz/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://ftp.sh.cvut.cz/arch/multilib/os/x86_64
debug: registering sync database 'aur'
debug: database path for tree aur set to /var/lib/pacman/sync/aur.db
debug: "/var/lib/pacman/sync/aur.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/aur.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for aur repository
debug: adding new server URL to database 'aur': file://var/cache/pacman/aur
debug: returning error 14 from alpm_register_syncdb (../lib/libalpm/db.c: 60) : database already registered
error: could not register 'aur' database (database already registered)
debug: option 'sandboxuser' = (null)
:: Synchronizing package databases...
core downloading...
extra downloading...
multilib downloading...
aur downloading...
debug: core.db: url is https://mirror.sunred.org/archlinux/core/os/x86_64/core.db
debug: core.db: maxsize 134217728
debug: core.db: using time condition 1732060526
debug: core.db: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/core.db.part (wb)
debug: extra.db: url is https://mirror.sunred.org/archlinux/extra/os/x86_64/extra.db
debug: extra.db: maxsize 134217728
debug: extra.db: using time condition 1732118869
debug: extra.db: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/extra.db.part (wb)
debug: multilib.db: url is https://mirror.sunred.org/archlinux/multilib/os/x86_64/multilib.db
debug: multilib.db: maxsize 134217728
debug: multilib.db: using time condition 1731891406
debug: multilib.db: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/multilib.db.part (wb)
debug: aur.db: url is file://var/cache/pacman/aur/aur.db
debug: aur.db: maxsize 134217728
debug: aur.db: using time condition 1732112730
debug: aur.db: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/aur.db.part (wb)
debug: aur.db: curl returned result 3 from transfer
error: failed retrieving file 'aur.db' from disk : URL rejected: Bad file:// URL
debug: aur.db: no more servers to retry
debug: core.db: curl returned result 0 from transfer
debug: core.db: response code 304
debug: core.db.sig: url is https://mirror.sunred.org/archlinux/core/os/x86_64/core.db.sig
debug: core.db.sig: maxsize 16384
debug: core.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/core.db.sig.part (wb)
debug: core.db: file met time condition
debug: extra.db: curl returned result 0 from transfer
debug: extra.db: response code 304
debug: extra.db.sig: url is https://mirror.sunred.org/archlinux/extra/os/x86_64/extra.db.sig
debug: extra.db.sig: maxsize 16384
debug: extra.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/extra.db.sig.part (wb)
debug: extra.db: file met time condition
debug: multilib.db: curl returned result 0 from transfer
debug: multilib.db: response code 304
debug: multilib.db.sig: url is https://mirror.sunred.org/archlinux/multilib/os/x86_64/multilib.db.sig
debug: multilib.db.sig: maxsize 16384
debug: multilib.db.sig: opened tempfile for download: /var/lib/pacman/sync/download-yRpQQS/multilib.db.sig.part (wb)
debug: multilib.db: file met time condition
debug: core.db.sig: curl returned result 0 from transfer
debug: core.db.sig: response code 404
debug: core.db.sig: no more servers to retry
debug: extra.db.sig: curl returned result 0 from transfer
debug: extra.db.sig: response code 404
debug: extra.db.sig: no more servers to retry
debug: multilib.db.sig: curl returned result 0 from transfer
debug: multilib.db.sig: response code 404
debug: multilib.db.sig: no more servers to retry
debug: curl_download_internal return code is -1
debug: failed to sync dbs: unexpected error
error: failed to synchronize all databases (unexpected error)
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'multilib'
debug: unregistering database 'aur'
File: /var/cache/pacman/aur/aur.db -> aur.db.tar
Size: 10 Blocks: 0 IO Block: 4096 symbolic link
Device: 259,3 Inode: 45219843 Links: 1
Access: (0777/lrwxrwxrwx) Uid: ( 1000/ marius) Gid: ( 1000/ marius)
Access: 2024-11-20 15:25:30.089557829 +0100
Modify: 2024-11-20 15:25:30.067558101 +0100
Change: 2024-11-20 15:25:30.067558101 +0100
Birth: 2024-11-20 15:25:30.067558101 +0100
File: /var/cache/pacman/aur/aur.db.tar
Size: 71680 Blocks: 144 IO Block: 4096 regular file
Device: 259,3 Inode: 45220016 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ marius) Gid: ( 1000/ marius)
Access: 2024-11-20 15:25:30.089557829 +0100
Modify: 2024-11-20 15:25:30.058558212 +0100
Change: 2024-11-20 15:25:30.066558113 +0100
Birth: 2024-11-20 15:25:30.054558261 +0100
File: /var/cache/pacman/aur/aur.db.tar.old
Size: 71680 Blocks: 144 IO Block: 4096 regular file
Device: 259,3 Inode: 45220094 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ marius) Gid: ( 1000/ marius)
Access: 2024-11-20 15:23:55.993714890 +0100
Modify: 2024-11-20 15:23:55.963715258 +0100
Change: 2024-11-20 15:25:30.066558113 +0100
Birth: 2024-11-20 15:23:55.959715307 +0100
Offline
pacman.conf:
Server = file://var/cache/pacman/aur
It is missing a third forward slash, it does have three in in /etc/pacman.d/aur
Server = file:///var/cache/pacman/aur
The Server entry in /etc/pacman.d/aur is added as an additional server to the one listed in /etc/pacman.conf for aur and as the first entry with the typo is the one used to provide the sync database that causes the error.
Edit:
I suspect you want:
[aur]
Include = /etc/pacman.d/aur
Removing
SigLevel = Optional TrustAll
Server = file://var/cache/pacman/aur
Last edited by loqs (Yesterday 17:17:53)
Offline
Hello,
thanks, i completely overlooked that i missed a third /. I know that i really only need to do
include = /etc/pacman.d/aur
but when i did it it didnt work and told me
❯ sudo pacman -Syu
[sudo] password for marius:
error: could not register 'aur' database (database already registered)
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)
thats why i addet the server to it.
Here is also the --debug output:
❯ sudo pacman -Syu --debug
debug: pacman v7.0.0 - libalpm v15.0.0
debug: config: new section 'options'
debug: config: HoldPkg: pacman
debug: config: HoldPkg: glibc
debug: config: Architecture: auto
debug: config: arch: x86_64
debug: config: SigLevel: Required
debug: config: SigLevel: DatabaseOptional
debug: config: LocalFileSigLevel: Optional
debug: config: new section 'core'
debug: config file /etc/pacman.conf, line 76: including /etc/pacman.d/mirrorlist
debug: config: new section 'extra'
debug: config file /etc/pacman.conf, line 82: including /etc/pacman.d/mirrorlist
debug: config: new section 'multilib'
debug: config file /etc/pacman.conf, line 91: including /etc/pacman.d/mirrorlist
debug: config: new section 'aur'
debug: config file /etc/pacman.conf, line 96: including /etc/pacman.d/aur
debug: config: new section 'options'
debug: config: CacheDir: /var/cache/pacman/pkg
debug: config: CacheDir: /var/cache/pacman/aur
debug: config: CleanMethod: KeepCurrent
debug: config: new section 'aur'
debug: config: SigLevel: Optional
debug: config: SigLevel: TrustAll
debug: config: finished parsing /etc/pacman.conf
debug: setup_libalpm called
debug: option 'logfile' = /var/log/pacman.log
debug: option 'gpgdir' = /etc/pacman.d/gnupg/
debug: option 'hookdir' = /etc/pacman.d/hooks/
debug: option 'cachedir' = /var/cache/pacman/pkg/
debug: option 'cachedir' = /var/cache/pacman/aur/
debug: registering sync database 'core'
debug: database path for tree core set to /var/lib/pacman/sync/core.db
debug: "/var/lib/pacman/sync/core.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/core.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for core repository
debug: adding new server URL to database 'core': https://mirror.sunred.org/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.f4st.host/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://pkg.fef.moe/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.moson.org/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://at.arch.mirror.kescher.at/core/os/x86_64
debug: adding new server URL to database 'core': https://arch.phinau.de/core/os/x86_64
debug: adding new server URL to database 'core': https://de.arch.mirror.kescher.at/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.uk.mirror.allworldit.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.ubrco.de/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://md.mirrors.hacktegic.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.alwyzon.net/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archlinux.thaller.ws/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.osbeck.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://repo.jing.rocks/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://arch.mirror.constant.com/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.cyberbits.eu/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://archmirror.it/repos/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.cspacehostings.com/archlinux/core/os/x86_64
debug: adding new server URL to database 'core': https://mirror.theash.xyz/arch/core/os/x86_64
debug: adding new server URL to database 'core': https://ftp.sh.cvut.cz/arch/core/os/x86_64
debug: registering sync database 'extra'
debug: database path for tree extra set to /var/lib/pacman/sync/extra.db
debug: "/var/lib/pacman/sync/extra.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/extra.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for extra repository
debug: adding new server URL to database 'extra': https://mirror.sunred.org/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.f4st.host/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://pkg.fef.moe/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.moson.org/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://at.arch.mirror.kescher.at/extra/os/x86_64
debug: adding new server URL to database 'extra': https://arch.phinau.de/extra/os/x86_64
debug: adding new server URL to database 'extra': https://de.arch.mirror.kescher.at/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.uk.mirror.allworldit.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.ubrco.de/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://md.mirrors.hacktegic.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.alwyzon.net/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archlinux.thaller.ws/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.osbeck.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://repo.jing.rocks/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://arch.mirror.constant.com/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.cyberbits.eu/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://archmirror.it/repos/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.cspacehostings.com/archlinux/extra/os/x86_64
debug: adding new server URL to database 'extra': https://mirror.theash.xyz/arch/extra/os/x86_64
debug: adding new server URL to database 'extra': https://ftp.sh.cvut.cz/arch/extra/os/x86_64
debug: registering sync database 'multilib'
debug: database path for tree multilib set to /var/lib/pacman/sync/multilib.db
debug: "/var/lib/pacman/sync/multilib.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/multilib.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for multilib repository
debug: adding new server URL to database 'multilib': https://mirror.sunred.org/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.f4st.host/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://pkg.fef.moe/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.moson.org/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://at.arch.mirror.kescher.at/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://arch.phinau.de/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://de.arch.mirror.kescher.at/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.uk.mirror.allworldit.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.ubrco.de/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://md.mirrors.hacktegic.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.alwyzon.net/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archlinux.thaller.ws/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.osbeck.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://repo.jing.rocks/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://arch.mirror.constant.com/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.cyberbits.eu/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://archmirror.it/repos/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.cspacehostings.com/archlinux/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://mirror.theash.xyz/arch/multilib/os/x86_64
debug: adding new server URL to database 'multilib': https://ftp.sh.cvut.cz/arch/multilib/os/x86_64
debug: registering sync database 'aur'
debug: database path for tree aur set to /var/lib/pacman/sync/aur.db
debug: "/var/lib/pacman/sync/aur.db.sig" is not readable: No such file or directory
debug: sig path /var/lib/pacman/sync/aur.db.sig could not be opened
debug: got error 43 at _alpm_gpgme_checksig (../lib/libalpm/signing.c: 599) : missing PGP signature
debug: missing optional signature
debug: setting usage of 15 for aur repository
debug: returning error 14 from alpm_register_syncdb (../lib/libalpm/db.c: 60) : database already registered
error: could not register 'aur' database (database already registered)
debug: option 'sandboxuser' = (null)
:: Synchronizing package databases...
debug: got error 22 at alpm_db_update (../lib/libalpm/be_sync.c: 179) : no servers configured for repository
debug: failed to sync dbs: no servers configured for repository
error: failed to synchronize all databases (no servers configured for repository)
debug: unregistering database 'local'
debug: unregistering database 'core'
debug: unregistering database 'extra'
debug: unregistering database 'multilib'
debug: unregistering database 'aur'
Offline
/etc/pacman.d/aur isn't supposed to contain another "[aur]"
Try
…
# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
[aur]
Include = /etc/pacman.d/aur
SigLevel = Optional TrustAll
Server = file:///var/cache/pacman/aur
[options]
CacheDir = /var/cache/pacman/pkg
CacheDir = /var/cache/pacman/aur
CleanMethod = KeepCurrent
Arguebly the "options" don't belong into that file at all.
Offline