Can't update through pacman or yay

i get the message if i type yay -Syu
:: Synchronizing package databases…
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 12676 100 12676 0 0 26039 0 --:–:-- --:–:-- --:–:-- 26082
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:02:14 --:–:-- 0
curl: (28) Failed to connect to ca.gate.endeavouros.com port 443 after 134649 ms: Could not connect to server
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:01 --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0curl: (6) Could not resolve host: endeavour.remi.lu
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (7) Failed to connect to mirror.linux.pizza port 443 after 78 ms: Could not connect to server
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:00:09 --:–:-- 0curl: (6) Could not resolve host: mirrors.tuna.tsinghua.edu.cn
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- --:–:-- --:–:-- 0
curl: (22) The requested URL returned error: 404
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:–:-- 0:02:16 --:–:-- 0
curl: (28) Failed to connect to ftp.rz.tu-bs.de port 443 after 136658 ms: Could not connect to server
error: failed to synchronize all databases (error invoking external downloader)
→ error refreshing databases - exit status 1

it also happen with pacman
i have already updated the mirror list multiple time and also #community in .conf

You may need to grab/refresh the current keyrings. This can be done by using the following:

pacman-key --init

pacman-key --populate

pacman -Sy archlinux-keyring && pacman -Su

after trying sudo pacman-key --populate i get
==> Appending keys from archlinux.gpg…
==> Appending keys from endeavouros.gpg…
==> Locally signing trusted keys in keyring…
→ Locally signed 7 keys.
==> Importing owner trust values…
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: setting ownertrust to 4
gpg: inserting ownertrust of 4
gpg: setting ownertrust to 4
==> Updating trust database…
gpg: Note: third-party key signatures using the SHA1 algorithm are rejected
gpg: (use option “–allow-weak-key-signatures” to override)
gpg: marginals needed: 3 completes needed: 1 trust model: pgp
gpg: depth: 0 valid: 1 signed: 12 trust: 0-, 0q, 0n, 0m, 0f, 1u
gpg: depth: 1 valid: 12 signed: 101 trust: 0-, 0q, 0n, 12m, 0f, 0u
gpg: depth: 2 valid: 78 signed: 21 trust: 78-, 0q, 0n, 0m, 0f, 0u
gpg: next trustdb check due at 2025-06-16

and afterward the same error

Which mirrorlists have you been updating? The arch or endeavouros mirror lists?

It looks like there is something wrong with one of them. You shouldn’t get 404s when updating the databases.

Open the Welcome App and try through that…

1 Like
eos-update

Or run these commands

reflector --protocol https --verbose --latest 25 --sort rate | sudo tee /etc/pacman.d/mirrorlist

eos-rankmirrors --verbose

sudo pacman -Syyu && yay -Syyu

1 Like

@MichelN, close to what I woud do in this situation. Except I’d use yay to update since pacman won’t update any possible AUR packages.

UPDATE ARCH MIRRORS:
sudo reflector --protocol https --verbose --latest 25 --sort rate --save /etc/pacman.d/mirrorlist

UPDATE EOS MIRRORS:
eos-rankmirrors --verbose

ATER UPDATING EOS and ARCH MIRRORLISTS, UPDATE SYSTEM:
yay -Syyu

1 Like

Thanks for fixing my error :slight_smile:

1 Like

I would recommend against running reflector with sudo. It is safer to use something like tee

reflector --protocol https --verbose --latest 25 --sort rate | sudo tee /etc/pacman.d/mirrorlist

That way you don’t run the reflector process as root.

1 Like

Never knew that. I’ve always done it with sudo. What is tee?

It reads data from stdin and writes it somewhere else.

In this case, we are using it to escalate only the process writing the data.

3 Likes

Is having -yy necessary after updating the mirrorlist? I thought -y is sufficient to sync database to the new servers.

1 Like

@dalto, I just gave it a shot with tee. I get an error…

❯ tee reflector --protocol https --verbose --latest 25 --sort rate --save /etc/pacman.d/mirrorlist
tee: unrecognized option '--protocol'
Try 'tee --help' for more information.
❯

You put it in the wrong place. See my command above.

1 Like

Gottcha. One of my moments of stupidity. :joy:

3 Likes

I have a BrokenPipeError with pipe tee, so I use this :

–save /tmp/mirrorlist && sudo cp /tmp/mirrorlist /etc/pacman.d/mirrorlist

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.