Skip to content

Instantly share code, notes, and snippets.

@KiaraGrouwstra
Last active January 9, 2020 11:56
Show Gist options
  • Save KiaraGrouwstra/83135db59e8112d6c0f1df78a882a56e to your computer and use it in GitHub Desktop.
Save KiaraGrouwstra/83135db59e8112d6c0f1df78a882a56e to your computer and use it in GitHub Desktop.
fix arch mirrors
cat 404.log | sed "s|error: failed retrieving file '.*\?' from \(.*\?\) : The requested URL returned error: 404|\1|g" | uniq -u | while read mirror; sudo sed -i "s|\(Server = http://$mirror/archlinux/\$repo/os/\$arch\)|#\1|g" /etc/pacman.d/mirrorlist; end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment