View previous topic :: View next topic |
Author |
Message |
bagas Apprentice
Joined: 29 Jun 2018 Posts: 209
|
Posted: Sun Apr 14, 2024 12:54 pm Post subject: emerge --sync error sync. |
|
|
Hello.
I don’t use ipv6, I have no use for it!
How to fix problem?
Quote: | # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
>>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
rsync: [Receiver] safe_read failed to read 1 bytes: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(282) [Receiver=3.2.7]
>>> Retrying...
>>> Starting retry 1 of 1 with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org
Action: sync for repo: gentoo, returned code = 1 |
_________________ BSD, Linux systems blog |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1896
|
Posted: Sun Apr 14, 2024 2:08 pm Post subject: |
|
|
If you don't use IPv6, overall the recommendation is to edit /etc/gai.conf and uncomment the precedence lines. All of them changing the final key to 100 instead of 10 as the example shows. |
|
Back to top |
|
|
bagas Apprentice
Joined: 29 Jun 2018 Posts: 209
|
Posted: Sun Apr 14, 2024 5:36 pm Post subject: |
|
|
grknight wrote: | If you don't use IPv6, overall the recommendation is to edit /etc/gai.conf and uncomment the precedence lines. All of them changing the final key to 100 instead of 10 as the example shows. |
Thanks.
I did this.
Code: | /etc/gai.conf
precedence ::ffff:0:0/96 100 |
_________________ BSD, Linux systems blog |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1896
|
Posted: Sun Apr 14, 2024 7:30 pm Post subject: |
|
|
You need this to say: Code: | precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 100 |
If a single one is uncommented, each key must also be uncommented with a value. |
|
Back to top |
|
|
bagas Apprentice
Joined: 29 Jun 2018 Posts: 209
|
Posted: Mon Apr 15, 2024 8:04 am Post subject: |
|
|
grknight wrote: |
If a single one is uncommented, each key must also be uncommented with a value. |
Code: | precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20 |
Why uncomment them? _________________ BSD, Linux systems blog |
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1896
|
Posted: Mon Apr 15, 2024 12:42 pm Post subject: |
|
|
bagas wrote: | grknight wrote: |
If a single one is uncommented, each key must also be uncommented with a value. |
Code: | precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20 |
Why uncomment them? |
Because glibc's getaddressinfo call will not work properly otherwise. The defaults are only in effect if nothing is set at all here for precedence. |
|
Back to top |
|
|
bagas Apprentice
Joined: 29 Jun 2018 Posts: 209
|
Posted: Sat Apr 27, 2024 12:20 pm Post subject: |
|
|
grknight wrote: | bagas wrote: | grknight wrote: |
If a single one is uncommented, each key must also be uncommented with a value. |
Code: | precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20 |
Why uncomment them? |
Because glibc's getaddressinfo call will not work properly otherwise. The defaults are only in effect if nothing is set at all here for precedence. |
Code: | # emerge --sync
>>> Syncing repository 'gentoo' into '/usr/portage'...
* Using keys from /usr/share/openpgp-keys/gentoo-release.asc
* Refreshing keys via WKD ... [ ok ]
>>> Starting rsync with rsync://89.238.71.6/gentoo-portage...
rsync: [Receiver] safe_read failed to read 1 bytes: Connection reset by peer (104)
rsync error: error in rsync protocol data stream (code 12) at io.c(282) [Receiver=3.2.7]
>>> Retrying...
>>> Starting retry 1 of 1 with rsync://[2a00:1828:a00d:ffff::6]/gentoo-portage
rsync error: error in socket IO (code 10) at clientserver.c(139) [Receiver=3.2.7]
>>> Retrying...
!!! Exhausted addresses for rsync.gentoo.org
Action: sync for repo: gentoo, returned code = 1
|
Code: | # egrep -v '^#|^$' /etc/gai.conf
precedence ::1/128 50
precedence ::/0 40
precedence 2002::/16 30
precedence ::/96 20
precedence ::ffff:0:0/96 100 |
What to do in this case? _________________ BSD, Linux systems blog |
|
Back to top |
|
|
|