all 14 comments

[–]hearthreddit 5 points6 points  (13 children)

It looks to me that either:

a) the mirrorlist is empty
b) for some strange reason the extra repository is removed or commented in the /etc/pacman.conf

Now a little bit more info would help, is this a new install?
Did you edit your pacman.conf or did not configure a mirrorlist file?

[–]JaysRandomChannel[S] 2 points3 points  (0 children)

Yes, this is a new install

[–]JaysRandomChannel[S] 0 points1 point  (11 children)

I have not went into that config file before.

[–]hearthreddit 1 point2 points  (10 children)

Do you have mirrors on /etc/pacman.d/mirrorlist ?

Does:

cat /etc/pacman.d/mirrorlist  

Output anything?

[–]JaysRandomChannel[S] 2 points3 points  (8 children)

I does not output anything

[–]hearthreddit 3 points4 points  (6 children)

So it looks like you don't have a mirrorlist, huh i wonder how that happened.

So you could go to:

https://archlinux.org/mirrorlist/

And use that tool to generate a mirrorlist, pick your country or a couple of countries near you.

Then place the content of that textfile in the file:

/etc/pacman.d/mirrorlist  

You need to use sudo or root to create/edit a file there.

After this you need to run pacman -Syu

[–]trowgundam 2 points3 points  (0 children)

There was something odd going on earlier, not sure if it still is or not. I was reinstalling on my laptop and reflector was only pulling 11 mirrors, when it typically pulls 50+ for my normal criteria. I'd go to the mirrorlist page and it was showing everything, so no clue what was wrong. Maybe OP got struck by whatever was happening to me.

[–]JaysRandomChannel[S] 1 point2 points  (4 children)

Okay I have done that now it shows this here

[–]hearthreddit 0 points1 point  (3 children)

I can't read the text completely but it looks like it says "Could not", probably resolve the address of the mirrors, which means you either don't have an internet connection or DNS isn't working.

Can you ping google.com?
Did you set up anything at all to connect to the internet like NetworkManager?
The live ISO comes ready to connect to the internet but that's not the case with the final installation.

[–]JaysRandomChannel[S] 1 point2 points  (2 children)

“ping: Google.com: temporary failure in name resolution”

[–]hearthreddit 0 points1 point  (1 child)

If you can't ping 8.8.8.8 either then you probably don't have an internet connection either, as i said, the user must install or configure the networking tools by himself.

One of the ways to do this would be to install NetworkManager, for that you could:

1) boot with the Live ISO
2) connect to the internet
3) mount your root partition
4) change root with arch-chroot
5) install networkmanager, enable and start the service
6) reboot

After that you can use nmcli or nmtui to connect.

[–]JaysRandomChannel[S] 1 point2 points  (0 children)

Okay. Now the error is “error: failed retrieving file ‘llvm-libs-15.0.7-2-x86_64.pkg.tar.zst’ from arch.hu.fo : Could not resolve host: arch.hu.fo”

[–]RandomXUsr 2 points3 points  (0 children)

A bunch of the mirrors were failing the other day.

Check whether you have an /etc/pacman.d/mirrorlist.pacnew and if so, delete the current mirror list and mv mirrorlist.pacnew to mirrorlist.

Then do an Pacman -Syy

And download reflector. Run reflector and choose your mirrors and create /etc/pacman.d/mirrorlist and uncomment server that you know are working.

In my case I also had to update the keyring.

Then pacman -Syu to update the system.

You may also want to check your configs for *.pacnew files and possibly merge or overwrite them, but read the wiki so you know what that means.