Hi,

This time I added an entry into the hosts file and tried again.

I am able to create the repository. But failed while installation

[root@Server_ABC ~]# sudo wget -O /etc/yum.repos.d/jenkins.repo 
http://pkg.jenkins-ci.org/redhat/jenkins.repo
--05:31:41--  http://pkg.jenkins-ci.org/redhat/jenkins.repo
Resolving pkg.jenkins-ci.org... 199.193.196.24
Connecting to pkg.jenkins-ci.org|199.193.196.24|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 75 [text/plain]
Saving to: `/etc/yum.repos.d/jenkins.repo'

100%[===============================================================================================================================>]
 
75          --.-K/s   in 0s

05:31:41 (6.74 MB/s) - `/etc/yum.repos.d/jenkins.repo' saved [75/75]





root@Server_ABC ~]# sudo yum install jenkins
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package jenkins.noarch 0:1.599-1.1 set to be updated
--> Finished Dependency Resolution
..........
..........
..........
Total download size: 60 M
Is this ok [y/N]: y
Downloading Packages:
http://pkg.jenkins-ci.org/redhat/jenkins-1.599-1.1.noarch.rpm: [Errno 4] 
IOError: <urlopen error (-2, 'Name or service not known')>
Trying other mirror.


Error Downloading Packages:
  jenkins-1.599-1.1.noarch: failure: jenkins-1.599-1.1.noarch.rpm from 
jenkins: [Errno 256] No more mirrors to try.



I am able to ping the server. I am able to access the same link from our 
Windows environment.

Regards,
Mohamed Sathack



On Thursday, 19 February 2015 21:49:46 UTC+5:30, LesMikesell wrote:
>
> On Thu, Feb 19, 2015 at 5:17 AM, Mohamed Sathack <[email protected] 
> <javascript:>> wrote: 
> > Hi John, 
> > 
> > I am getting error as below 
> > 
> > # sudo wget -O /etc/yum.repos.d/jenkins.repo 
> > http://199.193.196.24/redhat/jenkins.repo 
> > --11:14:54--  http://199.193.196.24/redhat/jenkins.repo 
> > Connecting to 199.193.196.24:80... connected. 
> > HTTP request sent, awaiting response... 301 Moved Permanently 
> > Location: http://ci.jenkins-ci.org/redhat/jenkins.repo [following] 
> > --11:14:54--  http://ci.jenkins-ci.org/redhat/jenkins.repo 
> > Resolving ci.jenkins-ci.org... failed: Name or service not known. 
> > 
> > 
> > Since the domain name is not resolved(not present in hosts file), I am 
> > trying to connect with the help of IP Address. It has been 
> resolved(please 
> > refer first few lines) and then throwing error at last. Due to this, 
> > jenkins.repo is created with '0 kb' as file size. 
>
> Can't you make DNS work on your machine?   If not, yum probably isn't 
> going to work even if you get the repo file installed - and you won't 
> be able to do normal yum updates to maintain the machine.  Your other 
> option is to download the latest rpm package listed in the 'individual 
> package downloads" for RedHat using a machine where DNS works, 
> transfer over to this machine and install with the rpm or yum command. 
>
> -- 
>     Les Mikesell 
>      [email protected] <javascript:> 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/3c718047-e8b9-4dd6-9931-c3fa4fb3c5b3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to