Skip to content

archmirror.nebulanet.cc is now a squatter; pacman doesn't handle the error correctly

Got an error about an invalid signature. At first I thought it was because archlinux-keyring was out of date, but I didn't want to do pacman -Syu because more than half the time I do that I end up needing to reboot for one reason or another. I guess I could have downloaded archlinux-keyring manually from the mirror, but regardless, that wasn't the problem. Turns out the file I downloaded was not a .tar.zst like the filename implies, but rather an HTML file. Sure enough, I went to the site in a browser, and there was no longer a mirror hosted there.

This shouldn't really be a problem, right? Isn't the entire point of having multiple mirrors to ensure nothing breaks if a site goes down? Well, the problem is, it gave me the error saying the package is corrupted, asking if I should delete it, but regardless of what I choose, it just exits, and if I try again after deleting the package, it visits the mirrors in the exact same order (including the three that were 404's) and halts on that one again...why? Is there any reason why a single mirror sending the wrong data should be treated as a fatal error, when there's literally hundreds more mirrors on the list that haven't been checked?

I ended up removing that mirror from the list (/etc/pacman.d/mirrorlist) but this doesn't seem like the kind of thing that should be necessary in this situation, even on a distro like Arch.

24 points5 comments
Open on Reddit
About this post
Posted
Archived
Score
24 · 91% up
Kind
Text
ID
klis8e

Author

41
posts
110
comments
29
media
View profile

5 comments

See also my FOSDEM talk about mirrors and resilient infrastructure. What you see is definitely a bug that needs to be fixed.

12 points

Having many mirrors is more to distribute the bandwidth over a lot of servers rather than to prevent stuff from breaking. If everyone synced from the main mirror that the tier 1 mirrors sync from, the server would probably slow to crawl and if they are charged per gb of data moved they might wake up to a really crazy bill.

Anyways I guess that feature could be added to pacman, it's just that nobody ever has. It seems like unnecessary extra complexity when you can just take that server out of your mirrorlist file though, and arch's whole thing is to keep it simple. Adding such a feature would not be super complex but it may not be as easy as it sounds either.

9 points

If automatically trying the next mirror when there's a 404 error isn't too much extra complexity, why should a 200 with bad data be treated any differently?

5 points

Because there may be an underlying problem and this behaviour would just waste bandwidth would be my guess.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.