Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Portage picking poor mirror
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Kellerkalt
n00b
n00b


Joined: 22 Dec 2020
Posts: 50

PostPosted: Thu Apr 24, 2025 3:44 am    Post subject: Portage picking poor mirror Reply with quote

[Administrator note: this post, and the first response, were originally attached to the solved topic rsync error: received SIGINT, SIGTERM [slvd]. It looks like this is a different problem, and solved topics get less attention, so I split this out. This post had no title, so I picked one. -Hu]

I keep defaulting to http://www.uls.co.za/ when trying to go to other mirrors but they time out. Why would portage choose South Africa over and over when I'm in North America? I'd like to avoid it if at all possible.
Back to top
View user's profile Send private message
Banana
Moderator
Moderator


Joined: 21 May 2004
Posts: 2024
Location: Germany

PostPosted: Thu Apr 24, 2025 11:45 am    Post subject: Reply with quote

What is the content of your /etc/portage/repos.conf/gentoo.conf?
_________________
Forum Guidelines

PFL - Portage file list - find which package a file or command belongs to.
My delta-labs.org snippets do expire
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55279
Location: 56N 3W

PostPosted: Thu Apr 24, 2025 3:38 pm    Post subject: Reply with quote

Kellerkalt,

There are two sorts of mirrors.
rsync mirrors, which go into /etc/portage/repos.conf/gentoo.conf

The default entry is
Code:
sync-uri = rsync://rsync.gentoo.org/gentoo-portage

but being in Europe, I use
Code:
sync-uri = rsync://rsync.europe.gentoo.org/gentoo-portage

Neither are actually mirrors, they are rotations. When you emerge --sync, these rotations pass you on to a real mirror. This spreads the load.
The default is actually the North American rotation.

You can find the status of individual rsync mirrors.
There is also a list of rotations and there members.
You may choose a single mirror if you wish but mirrors sometimes have problems, so a rotation is safer, unless it only has a single member of course.

That gets your ::gentoo repo updated.

Then there are source code mirrors that are listed in GENTOO_MIRRORS in make.conf.
Use
Code:
mirrorselect
to audition them all and put the fastest 5 into make.conf
Again, mirrors come and go, so using a single mirror is not a good idea,
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
logrusx
Advocate
Advocate


Joined: 22 Feb 2018
Posts: 3013

PostPosted: Thu Apr 24, 2025 7:55 pm    Post subject: Re: Portage picking poor mirror Reply with quote

Kellerkalt wrote:


I keep defaulting to http://www.uls.co.za/ when trying to go to other mirrors but they time out. Why would portage choose South Africa over and over when I'm in North America? I'd like to avoid it if at all possible.


You're not the first user to have that problem and I personally have never had such a problem as I tend to find a good performing mirror and stick with it.

I recommend doing the same.

Best Regards,
Georgi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum