View previous topic :: View next topic |
Author |
Message |
gardenair n00b
Joined: 05 Oct 2021 Posts: 46
|
Posted: Sat Mar 23, 2024 6:37 am Post subject: [Solved]Need help in emerge sync . |
|
|
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 |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1393 Location: Germany
|
|
Back to top |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 46
|
Posted: Sat Mar 23, 2024 8:43 am Post subject: |
|
|
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 |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1393 Location: Germany
|
|
Back to top |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 46
|
Posted: Sat Mar 23, 2024 4:50 pm Post subject: |
|
|
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 |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2968
|
Posted: Sat Mar 23, 2024 4:57 pm Post subject: |
|
|
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 |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 46
|
Posted: Sat Mar 23, 2024 5:02 pm Post subject: |
|
|
So that mean I may proceed with my installation steps by ignoring it? Need your opinion? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat Mar 23, 2024 5:13 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sat Mar 23, 2024 5:15 pm Post subject: |
|
|
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 |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 46
|
Posted: Sun Mar 24, 2024 3:55 am Post subject: |
|
|
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 |
|
|
Banana Veteran
Joined: 21 May 2004 Posts: 1393 Location: Germany
|
|
Back to top |
|
|
gardenair n00b
Joined: 05 Oct 2021 Posts: 46
|
Posted: Sun Mar 24, 2024 9:06 am Post subject: |
|
|
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 |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 2968
|
Posted: Sun Mar 24, 2024 11:38 am Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54270 Location: 56N 3W
|
Posted: Sun Mar 24, 2024 1:54 pm Post subject: |
|
|
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 |
|
|
|