Blackarch.db failed to download

I am facing an error while updating :confused:
this is what I'm getting:

sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur 1242.4 KiB 53.9 KiB/s 00:23 [------------------------------------] 100%
blackarch.db failed to download
error: failed retrieving file 'blackarch.db' from mirrors.fossho.st : The requested URL returned error: 503
error: failed to synchronize all databases (failed to retrieve some files)

what is the error and how can I fix this ?

2 Likes

Probably try running the

upd

alias command to update ur mirrors.

On a second though 503 HTTP error means that "server is not ready to handle the request". It doesn't hurt to update your mirror's once in a while tho.

1 Like

still getting the same error

upd
[sudo] password :
[2021-07-05 20:23:44] WARNING: failed to rate http(s) download (https://arch.mirror.square-r00t.net/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-07-05 20:23:53] WARNING: failed to rate http(s) download (https://archlinux.mailtunnel.eu/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-07-05 20:24:01] WARNING: failed to rate http(s) download (https://mirror.f4st.host/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-07-05 20:24:10] WARNING: failed to rate http(s) download (https://mirror.lty.me/archlinux/community/os/x86_64/community.db): Download timed out after 5 second(s).
[2021-07-05 20:24:20] WARNING: failed to rate http(s) download (https://mirror.chaoticum.net/arch/community/os/x86_64/community.db): Download timed out after 5 second(s).
File: /etc/pacman.d/mirrorlist
################################################################################
################# Arch Linux mirrorlist generated by Reflector #################
################################################################################

With: reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirro

rlist

When: 2021-07-05 14:54:20 UTC

From: https://www.archlinux.org/mirrors/status/json/

Retrieved: 2021-07-05 14:53:36 UTC

Last Check: 2021-07-05 14:43:00 UTC

Server = https://arch.mirror.square-r00t.net/$repo/os/$arch
Server = https://archlinux.mailtunnel.eu/$repo/os/$arch
Server = https://mirror.f4st.host/archlinux/$repo/os/$arch
Server = https://mirror.lty.me/archlinux/$repo/os/$arch
Server = https://mirror.chaoticum.net/arch/$repo/os/$arch
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur 1242.4 KiB 117 KiB/s 00:11 [------------------------------------] 100%
blackarch.db failed to download
error: failed retrieving file 'blackarch.db' from mirrors.fossho.st : The requested URL returned error: 503
error: failed to synchronize all databases (failed to retrieve some files)

upd wont affect BlackArch mirrors (also no Chaotic-AUR, just plain Arch mirrors). The best way to handle their mirrors is to do it manually, eg. by editing /etc/pacman.d/blackarch-mirrorlist (couldnt verify that its really there, but it should) and commenting the Fosshost mirror.

3 Likes

I am getting this error:

/etc/pacman.d/blackarch-mirrorlist
bash: /etc/pacman.d/blackarch-mirrorlist: Permission denied

I'm running this as a root user

This wont get you anywhere. Imagine you told me the path only. Now how do I know what to do with this file? :eyes: Instructions unclear! :grin:

2 Likes

I think you should run:
sudo micro /etc/pacman.d/blackarch-mirrorlist
and comment that mirror

2 Likes

which mirror, I see alot

mirrors.fossho.st
I think
Server = https://mirrors.fossho.st/blackarch/$repo/os/$arch

1 Like

I comment that mirror which u told but still getting the same error:

sudo pacman -Syu
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
multilib is up to date
chaotic-aur is up to date
blackarch.db failed to download
error: failed retrieving file 'blackarch.db' from mirrors.fossho.st : The requested URL returned error: 503
error: failed to synchronize all databases (failed to retrieve some files)

That's strange.
Are you sure you saved the change?

Yess after making the changes, I did Ctrl + S to save and it showed changes are saved then I Ctrl + Q

I've never seen that file, my only last idea would be to check if that mirror appears more than once, eg also as http

should I restore the oldest snapshot which was taken when I installed garuda on my system? I still have that one

Can you upload both your /etc/pacman.conf file and /etc/pacman.d/blackarch-mirrorlist file somewhere?

3 Likes

I am getting this now:

/etc/pacman.d/blackarch-mirrorlist
Failed to execute process '/etc/pacman.d/blackarch-mirrorlist'. Reason:
exec: unknown error (errno was 8)
The file '/etc/pacman.d/blackarch-mirrorlist' is marked as an executable but could not be run by the operating
system.

Don't execute the file? You want to read the content and upload it somewhere, like bin.garudalinux.org, not execute it.

2 Likes

Just to try and help make things clear:

Change the permissions back to U:RW G:R O:R
sudo chmod 644 /etc/pacman.d/blackarch-mirrorlist

in your pacman.conf make sure the line looks like this:

[blackarch]
Include = /etc/pacman.d/blackarch-mirrorlist

Hope this helps, Best Spidey!

2 Likes

Another desperate try...
I see here

that there are at the end:

WW|https://mirrors.fossho.st/blackarch/$repo/os/$arch Fosshost
WW|https://mirrors.fosshost.org/blackarch/$repo/os/$arch|Fosshost

Please make sure that you have commented the first one (mirrors.fossho.st) and not the second one (mirrors.fosshost.org). Maybe try also commenting both...