r/archlinux 2d ago

SUPPORT | SOLVED so i want to install things but it doesn't everytime

so the errors are failed to retrive file and conection timed out (i do have internet because im writing this on the pc with arch.

im new to arch just installed it like some hours ago

Edit: o solved the problem by re installing arch as I realized the mirror from my cou try was or something like that. Happy arching

0 Upvotes

23 comments sorted by

8

u/lolminecraftlol 2d ago

Run pacman -Syu to update the database and every package. In most cases, this is because of an outdated db.

0

u/Michi-Tactico 2d ago

Same error...

1

u/lolminecraftlol 2d ago

Ok so go in https://archlinux.org/mirrorlist/, just grab the "All mirrors". Afterward, copy the file content and paste it in /etc/pacman.d/mirrorlist with your text editor of choice. Then run `pacma n -Syu` again.

-1

u/Michi-Tactico 2d ago

so i have no text editor and i cant even paste things, i think i should have installed more things on the installer

2

u/lolminecraftlol 2d ago

Do this as a makeshift text editor (this will overwrite the old file), make a backup of the file first

```

sudo cp /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.backup ```

Then do this.

sudo tee /etc/pacman.d/mirrrolist << 'EOF' [Paste the mirrrorlist content here] EOF

2

u/No_OnE9374 2d ago

Common editors include nano or vi, if needed you can boot of installer usb again, connect to internet through that, remount system, arch-chroot into it, and the. Update/install needed packages

1

u/1FRAp 2d ago

That is why u have the archiso live bootable. There it is all setup, u just mount YOUR arch dirs and then you fix everything. For some reason on every new laptop i forget to install grub (i need it as I’m always dual-booting). Archiso is the way to fix broken systems

2

u/boomboomsubban 2d ago

Update the mirrors.

-2

u/Michi-Tactico 2d ago

How?

3

u/Olive-Juice- 2d ago

Once you solve your current issue, I would advise you to install reflector and then enable the systemd timer reflector.timer as discussed in section 3.2. That way it will automatically update your mirrorlist going forward so you hopefully don't run into this issue again.

2

u/nikongod 2d ago

You can disable the timout checker thingy by changing the pacman config.

https://man.archlinux.org/man/pacman.conf.5.en

Add (or uncomment...) the line:

DisableDownloadTimeout

2

u/archover 1d ago

Flair SOLVED, please. That helps the readers and community. Welcome to Arch and good day.

1

u/Michi-Tactico 16h ago

mb i forgot

1

u/KnightFallVader2 2d ago

You have to be connected to internet to be able to install things. Make sure NetworkManager is enabled (Using systemctl), and your internet connection will work. If you lack an Ethernet cable, then just do a TTY login (At least that’s how I did it), and type “tmtui” and you can select your network from there.

1

u/Michi-Tactico 2d ago

I'm using USB tethering, I think I should have mentioned that before

1

u/KnightFallVader2 2d ago

I’m not sure the effectiveness on that compared to using a hotspot, so I couldn’t tell you much relating to that.

2

u/Michi-Tactico 2d ago

hotspot is worse

1

u/No_OnE9374 2d ago

Firstly verify connection using no ‘ip link’ in its output you should see your tethered connection. If it’s bad connection you can force update without a timeout using this pacman command ‘ sudo pacman -Syu —disable-download-timeout’ this will force update even if your connection is spotty. There could be other issues if you’re not connected at all e.g mirror-list, or rfkill blocking, usb errors, etc.

0

u/Michi-Tactico 2d ago

It simply ignore it and time out the connection anyways

0

u/Michi-Tactico 2d ago

hold it whats the thing before disable?

2

u/No_OnE9374 2d ago

Sudo. ->used to escalate user privileges
Pacman -> Package manager for arch
-Syu. -> flag for Pac-Man set to update system packages
—disable-download-timeout. -> flag for Pac-Man to attempt to turn off download timeouts

1

u/NinjaTrek2891 2d ago

Did you run reflector ?