Failed retrieving file while updating system

While updating the system, I had the following issue:

After I ran this command:

sudo pacman -Syyu

and I got the following errors:

:: Proceed with installation? [Y/n] y
:: Retrieving packages…
eos-rankmirrors-2.2.3-2-any.pkg.tar.zst failed to download
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirror.jingk.ai : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirror.jingk.ai : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirrors.tuna.tsinghua.edu.cn : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirror.funami.tech : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from ftp.acc.umu.se : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirror.alpix.eu : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirror.moson.org : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from de.freedif.org : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from ca.gate.endeavouros.com : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from mirror.linux.pizza : The requested URL returned error: 404
error: failed retrieving file ‘eos-rankmirrors-2.2.3-2-any.pkg.tar.zst’ from endeavour.remi.lu : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (failed to retrieve some files)
Errors occurred, no packages were upgraded.

I am a newbie but have been using endeavour os for quite some time. Thanks in advance!

I assume you need to update your mirror list using reflector. You can easily do so in the eos welcome app.

Error 404 means that the data requested by the client cannot be found on the server.

current version:
eos-rankmirrors 2.2.5-1

your client asking for:
eos-rankmirrors-2.2.3-2

So your packages search database is outdated.

try:
sudo pacman -Syy
yay

only EndeavourOS packages fails for user :wink:

so would need:

eos-rankmirrors
to run

Produced the following output:

error: failed retrieving file ‘welcome-3.17.19-1-any.pkg.tar.zst’ from mirror.jingk.ai : The requested URL returned error: 404
error: failed retrieving file ‘eos-translations-1.1.67-1-any.pkg.tar.zst’ from mirror.jingk.ai : The requested URL returned error: 404
error: failed retrieving file ‘eos-bash-shared-1.10.31-1-any.pkg.tar.zst.sig’ from mirror.jingk.ai : The requested URL returned error: 404
warning: too many errors from mirror.jingk.ai, skipping for the remainder of this transaction
error: failed retrieving file ‘inxi-3.3.13.1-1-any.pkg.tar.zst.sig’ from mirror.jingk.ai : The requested URL returned error: 404
warning: failed to retrieve some files
error: failed to commit transaction (unexpected error)
Errors occurred, no packages were upgraded.
→ error installing repo packages

Ahh just read about it. So the welcome app uses reflector simple that is only for arch repo mirrors correct?

Yes, reflector is only for the Arch mirrors.

That being said, this doesn’t look like a mirror issue to me. It looks like the database is out of date.

1 Like

Just learned something thanks…

is outdated

seems you have db files fetched from another mirror but it tries downloading from this one…

try ranking eos mirrors:

sudo eos-rankmirrors

Produced the following output:

Summary
> Extracting /var/cache/pacman/pkg/endeavouros-mirrorlist-4.4-3-any.pkg.tar.zst ...
Ranking EndeavourOS mirrors, please wait ...
######################################################
####                                              ####
###        EndeavourOS Repository Mirrorlist       ###
####                                              ####
######################################################
#### Entry in file /etc/pacman.conf:
###     [endeavouros]
###     SigLevel = PackageRequired
###     Include = /etc/pacman.d/endeavouros-mirrorlist
######################################################
### Tip: Use the 'eos-rankmirrors' program to rank
###      these mirrors or re-order them manually.
######################################################

## Germany
#Server = https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
#Server = https://de.freedif.org/EndeavourOS/repo/$repo/$arch
#Server = https://mirror.moson.org/endeavouros/repo/$repo/$arch

## Sweden
#Server = https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch
#Server = https://mirror.linux.pizza/endeavouros/repo/$repo/$arch

## Canada
#Server = https://ca.gate.endeavouros.com/endeavouros/repo/$repo/$arch

## China
#Server = https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch

## Singapore
#Server = https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
#Server = http://mirror.jingk.ai/endeavouros/repo/$repo/$arch

## France
#Server = https://endeavour.remi.lu/repo/$repo/$arch

## South Korea
#Server = https://mirror.funami.tech/endeavouros/repo/$repo/$arch

# Results of mirror ranking at (UTC) 02/26/2022 02:59:07 PM:
# The following fields are shown for each mirror:
#   mirror:          The mirror address
#   update-level:    Ordinal number of the latest update (larger is newer)
#   fetch-time:      Measures the speed of the mirror (smaller is faster)
#
# mirror                                                             update-level  fetch-time
# ~~~~~~                                                             ~~~~~~~~~~~~  ~~~~~~~~~~
# https://mirror.jingk.ai/endeavouros/repo/$repo/$arch               1303          0.295633
# https://mirror.moson.org/endeavouros/repo/$repo/$arch              1303          0.544949
# https://mirror.funami.tech/endeavouros/repo/$repo/$arch            1303          0.769003
# https://mirror.alpix.eu/endeavouros/repo/$repo/$arch               1303          0.841765
# https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch         1303          0.924534
# https://endeavour.remi.lu/repo/$repo/$arch                         1303          1.153979
# https://de.freedif.org/EndeavourOS/repo/$repo/$arch                1303          1.460453
# https://ca.gate.endeavouros.com/endeavouros/repo/$repo/$arch       1303          1.518902
# https://mirror.linux.pizza/endeavouros/repo/$repo/$arch            1303          2.876716
# https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch  1303          4.856795
# http://mirror.jingk.ai/endeavouros/repo/$repo/$arch                1265          0.260922

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# EndeavourOS mirrorlist:
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Server = https://mirror.jingk.ai/endeavouros/repo/$repo/$arch
Server = https://mirror.moson.org/endeavouros/repo/$repo/$arch
Server = https://mirror.funami.tech/endeavouros/repo/$repo/$arch
Server = https://mirror.alpix.eu/endeavouros/repo/$repo/$arch
Server = https://ftp.acc.umu.se/mirror/endeavouros/repo/$repo/$arch
Server = https://endeavour.remi.lu/repo/$repo/$arch
Server = https://de.freedif.org/EndeavourOS/repo/$repo/$arch
Server = https://ca.gate.endeavouros.com/endeavouros/repo/$repo/$arch
Server = https://mirror.linux.pizza/endeavouros/repo/$repo/$arch
Server = https://mirrors.tuna.tsinghua.edu.cn/endeavouros/repo/$repo/$arch
Server = http://mirror.jingk.ai/endeavouros/repo/$repo/$arch
#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Moving old EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.2022.02.26-20.29.07.
Writing new ranked EndeavourOS mirrorlist to /etc/pacman.d/endeavouros-mirrorlist.
Root

https://mirror.jingk.ai/endeavouros/synctrace.txt

should be updated now :wink:

so simply run full update again:

yay
or:
sudo pacman -Syu and yay

Yup! The problem is solved. Thanks for your time and effort…

1 Like

asian mirrors are always late in the sync…
If you have the jingk mirror on top of the list it should be okay…

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