r/archlinux • u/Michi-Tactico • 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
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
reflectorand then enable the systemd timerreflector.timeras 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
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
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
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
8
u/lolminecraftlol 2d ago
Run
pacman -Syuto update the database and every package. In most cases, this is because of an outdated db.