Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]Need help in emerge sync .
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Sat Mar 23, 2024 6:37 am    Post subject: [Solved]Need help in emerge sync . Reply with quote

I am installing Gentoo in my virtual box. I am following the Gentoo handbook on their website.

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base

When I use the command # emerge sync it shows me

The emerge --sync shows me >>> checking server time stamp .... time out rsync error: received SIGINT, SIGTERM, or SIGHUP (code 20) at rsync .c (713) [Receiver=3.2.7]

>>> Retrying...

Please view the screenshot in the following link

https://ibb.co/pPNNrk3

https://ibb.co/7WyxTZK

Where is the issue and how may I fix it? please guide me.


Last edited by gardenair on Wed Mar 27, 2024 4:35 am; edited 1 time in total
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Sat Mar 23, 2024 7:43 am    Post subject: Reply with quote

make sure you use a mirror close to you: https://www.gentoo.org/support/rsync-mirrors/ https://mirrorstats.gentoo.org/rsync/

The screenshots you made also looks like a sync was successfull. What happends if you advance in the handbook?
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Sat Mar 23, 2024 8:43 am    Post subject: Reply with quote

Thanks for your kind reply. Well i try to understand from the handbook but unable to fix my issue.
Yes it may be due to selecting the mirror which is not close to my region. Please guide me how may I select it.Suppose i am from Asia and china is close to me so how may I select it.which command may I use to switch to close mirrors?

I am on the installation phase in my virtualbox. In host machine I google and found command
Quote:
mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf

Is it the right command which may I select close mirror and proceed the installation process?
Appreciate you.
Thanks
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Sat Mar 23, 2024 11:26 am    Post subject: Reply with quote

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Optional:_Selecting_mirrors

Quote:
Is it the right command which may I select close mirror and proceed the installation process?

Yes, but make sure you use the correct path.

make.conf is a file https://wiki.gentoo.org/wiki//etc/portage/make.conf you can edit by hand. The GENTOO_MIRRORS variable is the correct one https://wiki.gentoo.org/wiki/GENTOO_MIRRORS
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Sat Mar 23, 2024 4:50 pm    Post subject: Reply with quote

Thanks "Banana" for your guidance. Well, I have tried different mirrors but all show the same results as I already pasted the screenshot.
I am middle of the installation process and have spent a lot of time but no success.

https://ibb.co/LPGNQ63

https://ibb.co/CK5xqy1
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Sat Mar 23, 2024 4:57 pm    Post subject: Reply with quote

gardenair wrote:
Thanks "Banana" for your guidance. Well, I have tried different mirrors but all show the same results as I already pasted the screenshot.
I am middle of the installation process and have spent a lot of time but no success.

https://ibb.co/LPGNQ63

https://ibb.co/CK5xqy1

You can just use emerge-webrsync and no need to bother with "emerge --sync" again.
emerge --sync is optional, webrsync will give you a daily snapshot that will be recent enough.
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Sat Mar 23, 2024 5:02 pm    Post subject: Reply with quote

So that mean I may proceed with my installation steps by ignoring it? Need your opinion?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 23, 2024 5:13 pm    Post subject: Reply with quote

gardenair,

Portage mirrors, for ::gentoo and distfile mirrors are two different things.
They get confused because some sponsors off both services from the same servers.

mirrorselect is only for selecting distfile mirrors. It cannot help with mirrors for the ::gentoo repo.

::gentoo repo missers are controlled by the file
Code:
/etc/portage/repos.conf/gentoo.conf

If the file is missing. it defaults to using the mirror at rsync://rsync.gentoo.org/gentoo-portage
That is not actually a mirror itself, its a rotation. That means it passes your request onto a real mirror, which serves it, or not.

It doesn't happen often but sometimes mirrors have problems, in which case, trying again will likely get a different (real) mirror.

There is a list of rsync mirrors on the wibsite.

For your example in China, you should use rsync://rsync.cn.gentoo.org/gentoo-portage/ which is the rotation.
That web page lists two other mirrors in China too. They are not rotations.
_________________
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
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sat Mar 23, 2024 5:15 pm    Post subject: Reply with quote

gardenair,

Yes' you can proceed. Your ::gentoo repo is populated. It may not be as up to date as emerge --sync would hove got you but its adequate.
_________________
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
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Sun Mar 24, 2024 3:55 am    Post subject: Reply with quote

Thanks " Neddy" for the reply. Before going ahead for my Gentoo I want to dig more that why emerge --sync is not working at this phase. It is a fault by Gentoo mirrors or something wrong from my own side ? If i proceed then what effect there will be at the end of installation because at the moment it is not working then after the installation the problem will remain same.
It should be noted that I am installing Gentoo Linux on my VirtualBox . There is no restriction,no firewall . DNS issue in the guest side ? So about about /etc/resol.conf
My own opinion says by using Gentoo as guest in Oracle VirtualBox there will be no issue like firewall or DNS .

As you have mentioned about rsync://rsync.cn.gentoo.org/gentoo-portage/ so how can I use it ? May I add it in by

Code:
nano /etc/portage/make.conf
Back to top
View user's profile Send private message
Banana
Veteran
Veteran


Joined: 21 May 2004
Posts: 1392
Location: Germany

PostPosted: Sun Mar 24, 2024 8:47 am    Post subject: Reply with quote

No, it is in https://wiki.gentoo.org/wiki//etc/portage/repos.conf/gentoo.conf
_________________
My personal space
My delta-labs.org snippets do expire

PFL - Portage file list - find which package a file or command belongs to.
Back to top
View user's profile Send private message
gardenair
n00b
n00b


Joined: 05 Oct 2021
Posts: 46

PostPosted: Sun Mar 24, 2024 9:06 am    Post subject: Reply with quote

It just works...I repeat the same command " # emerge sync " many times and eventually, it works. So there is a big question why does it work now....? What is the magic behind it...? The servers were not working before or something else.

https://ibb.co/SQp9Vfb
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2968

PostPosted: Sun Mar 24, 2024 11:38 am    Post subject: Reply with quote

gardenair wrote:
I repeat the same command " # emerge sync " many times and eventually, it works.

Some of the rsync servers will block you like this, if you connect to them more than once within 24 hours.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


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

PostPosted: Sun Mar 24, 2024 1:54 pm    Post subject: Reply with quote

gardenair,

The ::gentoo repo, which is what emerge --sync updates, contains the instructions and packages available to you.
The master mirror is updated twice an hour. It's up to mirror admins how often they update their mirrors. Many are once a day.

If your emerge --sync fails, you won't have the very latest ::gentoo repo available to you. That won't matter much as Gentoo is a rolling release.
You don't install it and forget it, it needs to be updated at least once a month.

After 6 months updating may not be straight forward. After a year, expect to learn things about Gentoo that you will learn no other way.

If you are sharing an IPv4 connection behind NAT with other Gentoo systems trying to --sync, you may well fall foul of the connection limit.
Look at setting up your own mirror for that situation.
Then your mirror updates once a day and all consumers use that mirror. The outside world only sees one --sync per day.

To use a mirror of your choice, It goes into /etc/portage/repos.conf/ which may be a directory.

I have a file /etc/portage/repos.conf/gentoo.conf which contains

/etc/portage/repos.conf/gentoo.conf:
[DEFAULT]
main-repo = gentoo
clone-depth     = 0
sync-depth      = 0

[gentoo]
location = /var/db/repos/gentoo
sync-type = rsync
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
auto-sync = yes
sync-rsync-verify-jobs = 1
sync-rsync-verify-metamanifest = yes
sync-rsync-verify-max-age = 24
sync-openpgp-key-path = /usr/share/openpgp-keys/gentoo-release.asc
sync-openpgp-keyserver = hkps://keys.gentoo.org
sync-openpgp-key-refresh-retry-count = 40
sync-openpgp-key-refresh-retry-overall-timeout = 1200
sync-openpgp-key-refresh-retry-delay-exp-base = 2
sync-openpgp-key-refresh-retry-delay-max = 60
sync-openpgp-key-refresh-retry-delay-mult = 4
sync-webrsync-verify-signature = yes


You would change the
Code:
sync-uri = rsync://rsync.gentoo.org/gentoo-portage
line to point to another mirror.
_________________
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
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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