1

On every Pacman command I get the following error error: failed to synchronize all database (invalid URL for server)

How do I change the URL for the server? I was following this guide. https://youtu.be/JRdYSGh-g3s

If run the command sudo pacman -Sy it outputs this.

screenshot of pacman error messages

This is the output of grep -vP '^\s*#' /etc/pacman.d/mirrorlist | grep .:

contents of mirrorlist

(apologies for the pictures, I do not have a way to copy the text on the screen).

This error occurred after a successful installation. Additionally, I cannot seem to connect to the internet.

9
  • 1
    Please edit your question and tell us what you did. We are not going to watch a 37 minute youtube video! You need to tell us exactly what you did so we can understand the issue. More generally, Arch has some of the best documentation of the Linux world. Please use the official docs and not random youtube videos: wiki.archlinux.org Commented Jun 17, 2022 at 11:05
  • @terdon I was trying to install a gui for my system. I am no longer on the live boot. Everything up to this point seems to be working fine, I guess I messed up somewhere in that part of setting up Pacman. Is it possible to fix it or do I need to start over with the docs instead? Commented Jun 17, 2022 at 11:10
  • Yes, please edit your question and add all this. Tell us what you were doing and at what point you got the error. I have no idea if it can be fixed because I still don't know when this happened. Was it part of the installation? Was it after successfully installing? What did you do to set up pacman? Just add al this to your question so we can understand. My first guess is that you have a bad URL in /etc/pacman.d/mirrorlist. Please also add the output of grep -vP '^\s*#' /etc/pacman.d/mirrorlist | grep . to your question. Commented Jun 17, 2022 at 11:14
  • Alright I will edit my question, and yes it was after a successful installation. Commented Jun 17, 2022 at 11:23
  • 1
    Thanks, @sahil, that's much clearer! So, as others have said, your main issue is that you are not connected to the internet. Please follow the instructions here: wiki.archlinux.org/title/Network_configuration. Or, even better, instead of following random youtube videos, just follow the Arch installation guide: wiki.archlinux.org/title/Installation_guide. Commented Jun 17, 2022 at 11:49

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.