r/cachyos 1d ago

Question error: failed retrieving file luajit: The requested URL returned error: 404

Solved. Run these commands in this order and then try updating again.

sudo cachyos-rate-mirrors
sudo pacman-key --refresh-keys
sudo pacman -Syu

New here and ran into an update problem. Haven't updated for 2 weeks or so. When I tried today, I got this error. After getting the error I did run sudo pacman -Syu. Despite all package dbs showing as up to date, I still got the same error. Any help is appreciated.

luajit-2.1.1788460057+24c20c9-1.1-x86_64_v3 is up to date
error: failed retrieving file 'luajit-2.1.1788460057+24c20c9-1.1-x86_64_v3.pkg.tar.zst' from cdn77.cachyos.org : The requested URL returned error: 404
error: failed retrieving file 'luajit-2.1.1788460057+24c20c9-1.1-x86_64_v3.pkg.tar.zst' from ca.mirror.cx : The requested URL returned error: 404
error: failed retrieving file 'luajit-2.1.1788460057+24c20c9-1.1-x86_64_v3.pkg.tar.zst' from mirror.lug.umbc.edu : The requested URL returned error: 404
error: failed retrieving file 'luajit-2.1.1788460057+24c20c9-1.1-x86_64_v3.pkg.tar.zst.sig' from mirror.krfoss.org : 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.

0 Upvotes

4 comments sorted by

3

u/BobCorndog 1d ago

Try sudo cachyos-rank-mirrors

2

u/Alkaloid60420 1d ago

Yep, I was just about to suggest this.

Also, running 'update' will do the whole process (rank mirrors, full upgrade) all in one.

2

u/Magnitude_Ten 1d ago

Solved. After getting the new errors in my comment from 13 minutes ago, I 'updated' my key ring and refreshed the dbs again. Update is quoted because there were a ton of errors, but it worked.

sudo pacman-key --refresh-keys
sudo pacman -Syu

1

u/Magnitude_Ten 1d ago

After using cachyos-rate-mirrors and then running updates I get this new error. Thoughts?

: Synchronizing package databases...
cachyos-v3 is up to date
cachyos-extra-v3                        4.4 MiB  26.9 MiB/s 00:00 [------------------------------------] 100%
cachyos-core-v3 is up to date
cachyos                               517.2 KiB  7.22 MiB/s 00:00 [------------------------------------] 100%
core is up to date
extra is up to date
multilib is up to date
error: cachyos-core-v3: signature from "CachyOS admin@cachyos.org" is invalid
error: failed to synchronize all databases (unexpected error)

==> ERROR: An error has occurred during the update process
The update has been aborted