LinuxQuestions.org
Help answer threads with 0 replies.
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 09-18-2018, 01:03 AM   #1
kamtarias
LQ Newbie
 
Registered: May 2018
Posts: 3

Rep: Reputation: Disabled
YUM [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"


Hi All,

Could you please help me configuring local YUM Server. I have done configuration but getting the subjected error.

Below is the configuration of repo file.

====================================

[root@Srv yum.repos.d]# cat first.repo
[My_Yum_Server]
name=This is my first repo file
baseurl=ftp://192.168.0.201/pub
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release



++++++++===========================

Getting error as below.

==================================

[root@Srv yum.repos.d]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
ftp://192.168.0.201/pub/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
repo id repo name status
My_Yum_Server This is my first repo file 0
repolist: 0
[root@Srv yum.repos.d]#


Please help. stuck here since long.
 
Old 09-18-2018, 06:00 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: CentOS at the time of this writing, but some others over the years too...
Posts: 2,130

Rep: Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968Reputation: 968
Quote:
Originally Posted by kamtarias View Post
Hi All,

Could you please help me configuring local YUM Server. I have done configuration but getting the subjected error.

Below is the configuration of repo file.

====================================

[root@Srv yum.repos.d]# cat first.repo
[My_Yum_Server]
name=This is my first repo file
baseurl=ftp://192.168.0.201/pub
enabled=1
gpgcheck=0
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release



++++++++===========================

Getting error as below.

==================================

[root@Srv yum.repos.d]# yum repolist
Loaded plugins: product-id, refresh-packagekit, security, subscription-manager
Updating certificate-based repositories.
ftp://192.168.0.201/pub/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
repo id repo name status
My_Yum_Server This is my first repo file 0
repolist: 0
[root@Srv yum.repos.d]#
...
First, please use CODE tags when posting configuration and command output.

You are using a private IP on your LAN network for your yum server? You should take note of the error message I've highlighted in bold. It seems like a network problem to me.

Can you ping that IP from a machine that you want to install packages to, that will be coming from your yum server?

Also, if you're using RHEL, then you should be paying for it, or use CentOS instead.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Problem: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found" geoprogrammer Linux - Newbie 3 02-24-2016 07:04 PM
[SOLVED] [Errno 14] PYCURL ERROR 7 - "couldn't connect to host" Trying other mirror user1989 Linux - Networking 6 01-21-2016 11:31 AM
[SOLVED] pycurl error 6 - couldn't resolve host public-yum.oracle.com vjy Linux - Software 5 04-08-2015 07:29 AM
PYCURL ERROR 6 - "Couldn't resolve host 'mirrorlist.centos.org'" adumith Linux - Newbie 5 01-19-2014 11:22 PM
[SOLVED] YUM not working on the client - [Errno 14] PYCURL ERROR 7 - "" infinite_scale Red Hat 3 04-25-2012 10:13 AM

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

All times are GMT -5. The time now is 12:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration