You are not logged in.

#1 2023-07-26 19:46:36

Seacat17
Member
Registered: 2023-05-13
Posts: 68

(Don't mind it)Permament sollution for "Operation too slow" error

I have a terrible internet and it tends to fail very often. This means that some connections can be broken.

When I update my system sometimes I'm unable to download huge files because "operation too slow" error shows up. And I can't just use --disable-download-timeout because this will make it freeze at 0b/s at some point and there will be no way to restart the process.

However, I noticed that if the connection was interrupted, I can launch pacman -Syu again and it will continue from where it stopped.

Can Pacman do this automatically? Like, 3 retries to reconnect before assuming that the connection is dead.

Last edited by Seacat17 (2023-08-04 12:01:42)


Born to lose

Offline

#2 2023-07-26 20:45:07

mpan
Member
Registered: 2012-08-01
Posts: 1,396
Website

Re: (Don't mind it)Permament sollution for "Operation too slow" error

In general the best solution is to provide a properly working internet connection. I do not know, what is your situation, but reliability issues in the underlying layer are causing a lot of trouble.

Other than that, there is XferCommand option in pacman.conf. You may set arbitrary executable as your download tool, including a script ensuring proper downloads. Since by default pacman is tightly bound to curl and some features depend on curl, you will lose them.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

#3 2023-07-27 10:24:10

Seacat17
Member
Registered: 2023-05-13
Posts: 68

Re: (Don't mind it)Permament sollution for "Operation too slow" error

Well, my internet is something I can't make better.

But for some reason Pacman is able to reconnect and resume downloads, right? The only problem is that I have to do this manually. Which means I can't just type "sudo pacman -Syu" and leave my computer to update itself.


Born to lose

Offline

#4 2023-07-27 10:29:05

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,612

Re: (Don't mind it)Permament sollution for "Operation too slow" error

Do you have parallel downloads enabled (uncommented and set to a number above 1) in pacman.conf ?

Last edited by Lone_Wolf (2023-07-27 10:30:16)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2023-07-27 10:30:08

Seacat17
Member
Registered: 2023-05-13
Posts: 68

Re: (Don't mind it)Permament sollution for "Operation too slow" error

Lone_Wolf wrote:

Do you have parallel downloads enabled in pacman.conf ?

Nope. Because if one of them fails - others will fail too.


Born to lose

Offline

#6 2023-07-27 10:33:02

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,612

Re: (Don't mind it)Permament sollution for "Operation too slow" error

Maybe checkupdates from pacman-contrib can reduce the problem.

It allows to download updates outside of pacman.. https://man.archlinux.org/man/checkupdates.8 for details


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2023-07-27 10:40:08

Seacat17
Member
Registered: 2023-05-13
Posts: 68

Re: (Don't mind it)Permament sollution for "Operation too slow" error

****, I'M SORRY, I misstouched two times I hate myself


Born to lose

Offline

#8 2023-07-27 15:59:04

mpan
Member
Registered: 2012-08-01
Posts: 1,396
Website

Re: (Don't mind it)Permament sollution for "Operation too slow" error

Seacat17 wrote:

Well, my internet is something I can't make better.

For this reason I proposed an alternative solution.


Sometimes I seem a bit harsh — don’t get offended too easily!

Offline

Board footer

Powered by FluxBB