Skip to main content
Topic solved
This topic has been marked as solved and requires no further attention.
Topic: [SOLVED] pacman trying to add AUR to my mirrorlist  (Read 635 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

[SOLVED] pacman trying to add AUR to my mirrorlist

i want to install blender, im on artix, yes my system is fully up to date - pacman -Syu
when i add the arch mirrors in pacman.conf my whole pacman -Syu just stops working n throws out this

Code: [Select]
 sudo pacman -Syu
error: GPGME error: No data
:: Synchronizing package databases...
error: failed to synchronize all databases (no servers configured for repository)

when i comment back out t;his section
Code: [Select]
# Arch
#[extra]
#Include = /etc/pacman.d/mirrorlist-arch

#[community]
#Include = /etc/pacman.d/mirrorlist-arch

#[multilib]
#Include = /etc/pacman.d/mirrorlist-arch

everything works fine again

so am i missing something ? do  have to regenerate the keys or huh, i would just like to use aur too on artix
thank you
my pacman.conf

Code: [Select]
GNU nano 8.0                                                                                                                                   
#     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 gremlins 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.

#[system-gremlins]
#Include = /etc/pacman.d/mirrorlist

[system]
Include = /etc/pacman.d/mirrorlist

#[world-gremlins]
#Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

[galaxy]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

#[lib32]
#Include = /etc/pacman.d/mirrorlist



# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs



# Arch
[extra]
Include = /etc/pacman.d/mirrorlist-arch

[community]
Include = /etc/pacman.d/mirrorlist-arch

[multilib]
Include = /etc/pacman.d/mirrorlist-arch


i also ran
Code: [Select]
~$ sudo pacman-key --populate archlinux

mirrorlists
/etc/pacman.d/mirrorlist
Code: [Select]
  GNU nano 8.0                                                                                                                               
##
## Artix Linux repository mirrorlist
## Generated on 2024-05-08
##

# Artix mirrors
# Use rankmirrors(1) to get a list of the fastest mirrors for your location,
# e.g.: rankmirrors -v -n 5 /etc/pacman.d/mirrorlist
# Then put the resulting list on top of this file.

# Default mirrors
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = https://mirror.clarkson.edu/artix-linux/repos/$repo/os/$arch
Server = http://ftp.ntua.gr/pub/linux/artix-linux/$repo/os/$arch

## Europe
# Czech Republic
Server = https://ftp.sh.cvut.cz/artix-linux/$repo/os/$arch
# Denmark
Server = https://mirrors.dotsrc.org/artix-linux/repos/$repo/os/$arch
Server = https://mirror.group.one/artix/$repo/os/$arch
# France
Server = https://artix.cccp.io/$repo/os/$arch
Server = https://ftp.crifo.org/artix/repos/$repo/os/$arch
Server = https://mirror.opensrv.org/artixlinux/$repo/os/$arch
# Hungary
Server = https://quantum-mirror.hu/mirrors/pub/artix-linux/$repo/os/$arch


/etc/pacman.d/mirrorlist-arch
Code: [Select]
##
## Arch Linux repository mirrorlist
## Filtered by mirror score from mirror status page
## Generated on 2024-06-01
##

## Canada
#Server = https://muug.ca/mirror/archlinux/$repo/os/$arch
## Canada
#Server = https://arch.mirror.winslow.cloud/$repo/os/$arch
## Canada
#Server = https://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/$arch
## Canada
#Server = https://mirror.xenyth.net/archlinux/$repo/os/$arch
## Canada
#Server = https://mirror2.evolution-host.com/archlinux/$repo/os/$arch
## Canada
#Server = https://mirror.quantum5.ca/archlinux/$repo/os/$arch
## Canada
#Server = https://mirror.qctronics.com/archlinux/$repo/os/$arch

Re: pacman trying to add AUR to my mirrorlist

Reply #1
Looks like /etc/pacman.d/mirrorlist-arch has all the mirrors (just canadian?) commented out, which makes the error "error: failed to synchronize all databases (no servers configured for repository)" make sense.  Not sure why that would happen, I'm pretty sure it doesn't come that way, although maybe it does.

Look into the aur package rate-mirrors, I find it a good way to rank mirrors.
https://aur.archlinux.org/packages/rate-mirrors-bin

I use this script:
Code: [Select]
❯ cat ratem_hook.sh
#!/usr/bin/bash

tmpfile=$(mktemp)
sudo chown $USER $tmpfile

if [[ "$1" == "arch" ]] then
[[ -f /etc/pacman.d/mirrorlist-arch.pacnew ]] && sudo mv /etc/pacman.d/mirrorlist-arch.pacnew /etc/pacman.d/mirrorlist-arch
sudo -u $USER -i rate-mirrors --save $tmpfile $1
sudo cp $tmpfile /etc/pacman.d/mirrorlist-arch
elif [[ "$1" == "chaotic-aur" ]] then
[[ -f /etc/pacman.d/chaotic-mirrorlist.pacnew ]] && sudo mv /etc/pacman.d/chaotic-mirrorlist.pacnew /etc/pacman.d/chaotic-mirrorlist
sudo -u $USER -i rate-mirrors --save $tmpfile $1
sudo cp $tmpfile /etc/pacman.d/chaotic-mirrorlist
elif [[ "$1" == "artix" ]] then
[[ -f /etc/pacman.d/mirrorlist.pacnew ]] && sudo mv /etc/pacman.d/mirrorlist.pacnew /etc/pacman.d/mirrorlist
sudo -u $USER -i rate-mirrors --save $tmpfile $1
sudo cp $tmpfile /etc/pacman.d/mirrorlist
fi

and ideally add a hook for pacman to run it if artix-mirrorlist or archlinux-mirrorlist get updated.  Works for chaotic-aur as well.

Re: pacman trying to add AUR to my mirrorlist

Reply #2
Code: [Select]
[community]
Include = /etc/pacman.d/mirrorlist-arch

Arch hasn't had a Community repo for over a year or so.  Remove these two lines from your pacman.conf.

Re: pacman trying to add AUR to my mirrorlist

Reply #3
well so i deleted the community lines from pacman.conf and correctly uncomente the server(tbh i just missed that as i was copying the arch server list for 20th time probably)

did
Code: [Select]
sudo pacman-key --populate

and now i am looking at this
Code: [Select]
 sudo pacman -Syu
error: GPGME error: No data
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 extra                   7.9 MiB  3.20 MiB/s 00:02 [######################] 100%
 multilib is up to date
error: GPGME error: No data
error: failed to synchronize all databases (unexpected error)

looks like it connects to these servers fine and downloads, but the gpg signatures arent alright ?

Re: pacman trying to add AUR to my mirrorlist

Reply #4
Are you following this guide?
https://wiki.artixlinux.org/Main/Repositories

I've never had any trouble enabling the arch repositories.

Did you install artix-archlinux-support?

Also, if you are enabling the arch [multilib] I would definitely enable the artix [lib32] and then also install lib32-artix-archlinux-support

Re: pacman trying to add AUR to my mirrorlist

Reply #5

Code: [Select]
 sudo pacman -S artix-archlinux-support
warning: artix-archlinux-support-3-1 is up to date -- reinstalling
resolving dependencies...
looking for conflicting packages...

Packages (1) artix-archlinux-support-3-1

Total Installed Size:  0.00 MiB
Net Upgrade Size:      0.00 MiB

and sure i enabled just the extra arch repository and still im getting the
Code: [Select]
sudo pacman -Syu 
error: GPGME error: No data
:: Synchronizing package databases...
 system is up to date
 world is up to date
 galaxy is up to date
 extra                   7.9 MiB  2.90 MiB/s 00:03 [######################] 100%
error: GPGME error: No data
error: failed to synchronize all databases (invalid or corrupted database (PGP signature))

so ig no extra repo for me, and yes i followed this guide, https://wiki.artixlinux.org/Main/Repositories,

entire pacman.conf
Code: [Select]
  GNU nano 8.0                                                                                        /etc/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 Artix Linux
# packagers with `pacman-key --populate artix`.

#
# 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 gremlins 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.

#[system-gremlins]
#Include = /etc/pacman.d/mirrorlist

[system]
Include = /etc/pacman.d/mirrorlist

#[world-gremlins]
#Include = /etc/pacman.d/mirrorlist

[world]
Include = /etc/pacman.d/mirrorlist

#[galaxy-gremlins]
#Include = /etc/pacman.d/mirrorlist

[galaxy]
Include = /etc/pacman.d/mirrorlist

# If you want to run 32 bit applications on your x86_64 system,
# enable the lib32 repositories as required here.

#[lib32-gremlins]
#Include = /etc/pacman.d/mirrorlist

#[lib32]
#Include = /etc/pacman.d/mirrorlist



# An example of a custom package repository.  See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs



# Arch
[extra]
Include = /etc/pacman.d/mirrorlist-arch

#[multilib]
#Include = /etc/pacman.d/mirrorlist-arch


Re: pacman trying to add AUR to my mirrorlist

Reply #6
Make sure you have the package archlinux-keyring installed.

Lastly, I'm pretty sure you can safely delete the /etc/pacman.d/gnupg folder and run these command:
(although maybe you can't delete this folder, but from memory I'm pretty sure this is safe).

pacman-key --init
pacman-key --populate artix
pacman-key --populate archlinux
pacman-key --refresh-keys

as per here:
https://bbs.archlinux.org/viewtopic.php?pid=1501589#p1501589

Re: pacman trying to add AUR to my mirrorlist

Reply #7
tried that and nothing changed, its alright ig best would be just to reinstall at this point lmao


Re: pacman trying to add AUR to my mirrorlist

Reply #9
hey thank you so much the wiki guide (https://wiki.artixlinux.org/Main/Troubleshooting#Invalid_or_corrupted_packages_.28PGP_signature.29) you sent worked

i did the
Code: [Select]
pacman -Sy archlinux-keyring artix-keyring
 pacman-key --init
 pacman-key --populate archlinux artix
 pacman -Scc
 pacman -Syyu
after this i enabled the extra repository in my mirrorlist and everything went fine n now i got blender finally instaled
again thank you so much, have tried 3 previous times to ask on forums never got anywhere till now,
Thank you so much.

Re: [SOLVED] pacman trying to add AUR to my mirrorlist

Reply #10
This problem sometimes happens when we make updates too far apart.
This has happened to me several times, which is why I remember this wiki page.  :D

Quote
Thank you so much.
You are welcome.  8)