LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-08-2016, 12:11 PM   #1
jet1974
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Rep: Reputation: Disabled
Fedora 23 Timeout Issue using DNF


Hi,

I am having issues with dnf its failing for timeout issue. I have tried the following is there anything like yum where you can specify the mirror name since its not using the fastestmirror option.


After updating /etc/dnf/dnf.conf
[main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
fastestmirror=true or fastestmirror=1 --tried both & both failed
skip_if_unavailable=True

Time to access the regular mirror
[osboxes@osboxes ~]$ curl -o /dev/null -s -w %{time_total}\\n https://mirrors.fedoraproject.org
299.327

Time to access a specific mirror
[root@osboxes ~]# curl -o /dev/null -s -w %{time_total}\\n https://mirrorsecondary.math.princeton.edu
0.126

[root@osboxes /]# dnf upgrade
Error: Failed to synchronize cache for repo 'fedora' from 'https://mirrors.fedoraproject.org/metalink?repo=fedora-23&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://mirrors.fedoraproject.org/me...23&arch=x86_64 [Connection timed out after 120001 milliseconds]

[root@osboxes /]# dnf list installed
Error: Failed to synchronize cache for repo 'updates' from 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-f23&arch=x86_64': Cannot prepare internal mirrorlist: Curl error (28): Timeout was reached for https://mirrors.fedoraproject.org/me...23&arch=x86_64 [Connection timed out after 120001 milliseconds]


As per the following thread
https://ask.fedoraproject.org/en/que...mirror-source/

i tried using fastestmirror=1 it failed.
Now how can i enable YUM in Fedora 23 or use DNF with specific mirror.

Thanks in advance
JET1974
 
Old 07-09-2016, 05:08 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
d'oh - ignore me, sorry.

Last edited by syg00; 07-09-2016 at 05:10 AM.
 
Old 07-09-2016, 05:17 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by jet1974 View Post
fastestmirror=true or fastestmirror=1 --tried both & both failed
What do you mean by "failed" ? - any message, or you didn't see any change ?.
I just added "fastestmirror=true" to my dnf.conf and got the following as first message on the next update "determining the fastest mirror (13 hosts).. done.".
 
Old 07-12-2016, 02:27 PM   #4
jet1974
LQ Newbie
 
Registered: Jul 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
DNF repomd.xml failure

dnf.conf
main]
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=true
#fastestmirror=true
fastestmirror=1
skip_if_unavailable=True

after update its unable to download repomd.xml
[root@osboxes dnf]# dnf list installed
Failed to synchronize cache for repo 'lug.mtu.edu_fedora_linux_releases_23_Everything_x86_64_os_repodata_repomd.xml' from 'http://lug.mtu.edu/fedora/linux/releases/23/Everything/x86_64/os/repodata/repomd.xml': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried, disabling.


I tried to reach the following URL's thru browser it was instantaneous but from curl its taking time

[root@osboxes yum.repos.d]# curl -o /dev/null -s -w %{time_total}\\n http://mirror.metrocast.net/fedora/l...ata/repomd.xml
126.475

[root@osboxes yum.repos.d]# curl -o /dev/null -s -w %{time_total}\\n http://lug.mtu.edu/fedora/linux/rele...ata/repomd.xml
126.454
 
Old 07-12-2016, 09:02 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,131

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Something seriously wrong somewhere - that first curl took 1 sec from this side of the world, and the other 0.5
And my link is slllooww as I'm out in the bush.

I was going to suggest a "dnf clean all", but that won't fix curl.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: (Un)bundling, Fedora and Outreachy, Future Budget, Fedora 23 Status, and DNF for building LXer Syndicated Linux News 0 10-15-2015 09:00 AM
[SOLVED] dnf remove repo, dnf command help ? mshlinux Fedora 2 10-01-2015 10:00 PM
Fedora 22 will use DNF instead of yum szboardstretcher Fedora 17 07-27-2015 09:17 PM
[SOLVED] dnf upgrade issue xavi_slacky Fedora 9 07-13-2015 08:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration