Getting the below errors when updating. Not getting those with Big Linux or MXArch.
Any ideas on those errors? I’ve searched around but haven’t found anything yet.
:: Synchronizing package databases…
endeavouros is up to date
core is up to date
extra 8.5 MiB 6.09 MiB/s 00:01 [----------------------] 100%
multilib is up to date
chaotic-aur 659.7 KiB 604 KiB/s 00:01 [----------------------] 100% error: failed retrieving file ‘chaotic-aur.db’ from mx-1-mirror.chaotic.cx :
The requested URL returned error: 503 error: failed retrieving file ‘chaotic-aur.db’ from ca-3-mirror.chaotic.cx :
Connection timed out after 10001 milliseconds
Problems with 2 Chaotic-aur mirrors. Looks like they’re offline, maybe just temporarily. I don’t know how many mirrors they have. Did the update complete after those messages? When a mirror fails, pacman will work through configured mirrors until it finds one that works.
Those are dead mirrors. Same thing happened to me yesterday. I edited /etc/pacman.d/chaotic-mirrorlist by commenting out those mirrors. Updated fine afterwords.
I then ran rate-mirrors chaotic-aur | sudo tee /etc/pacman.d/chaotic-mirrorlist and updated again, all was well
You’ll find that error whenever a mirror is unreachable. (Even Arch’s mirrors during the DDoS attacks.) As long as you have multiple mirrors in your list, and at least one is accessible, the update will be fine.
# ==============================================================================
# 2. Ranking Chaotic-AUR mirrorlist
# ==============================================================================
# Function to rank Chaotic-AUR mirrors using rate-mirrors
rank-chaotic() {
echo "Refining Chaotic-AUR mirrors... (this may take a minute)"
# Create a temporary file for the new list
local tmp_list=$(mktemp)
# Run rate-mirrors and output to the temp file
# We use --allow-root because it's usually required for network testing
if rate-mirrors --allow-root --protocol https chaotic-aur > "$tmp_list"; then
# If successful, backup the old list and move the new one into place
sudo cp /etc/pacman.d/chaotic-mirrorlist /etc/pacman.d/chaotic-mirrorlist.bak
sudo mv "$tmp_list" /etc/pacman.d/chaotic-mirrorlist
echo "Done! Mirrorlist updated and backed up to .bak"
else
echo "Error: Mirror ranking failed. Original list preserved."
rm "$tmp_list"
return 1
fi
}