LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-21-2017, 06:52 AM   #1
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Rep: Reputation: 0
Unable to install lsblk package using yum


Dear Linux Experts,

I am trying to install lsblk utility using yum
But unfortunately i am getting error.


PHP Code:
# cd /etc/yum.repos.d
# wget http://yum.oracle.com/public-yum-el5.repo  
--2017-08-21 04:14:47--  http://yum.oracle.com/public-yum-el5.repo  
Resolving yum.oracle.com... 49.44.120.7349.44.120.97  
Connecting to yum
.oracle.com|49.44.120.73|:80... connected.  
HTTP request sentawaiting response... 200 OK  
Length
4886 (4.8K) [text/plain]  
Saving to: `public-yum-el5.repo'  
  
  
100%[=============================================================================>] 4,886       --.-K/s   in 0s       
  
  
2017-08-21 04:14:48 (12.0 MB/s) - 
`public-yum-el5.repo' saved [4886/4886] 

PHP Code:
[root@DGPRIM yum.repos.d]# yum install lsblk  
Loaded pluginssecurity  
el5_latest                                                                                      
1.4 kB     00:00      
el5_latest
/primary                                                                              |  26 MB     00:36      
el5_latest                                                                                                 13710
/13710`  
http://yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/i386/repodata/repomd.xml: [Errno 4] IOError: <urlopen error (-3, 'Temporary failure in name resolution')>  
Trying other mirror.  
Error: Cannot retrieve repository metadata (repomd.xml) for repository: ol5_UEK_latest. Please verify its path and try again 
Why i am getting error ?


PHP Code:
# uname -a
Linux DGPRIM 2.6.18-194.el5 #1 SMP Mon Mar 29 20:06:41 EDT 2010 i686 i686 i386 GNU/Linux 
 
Old 08-21-2017, 07:33 AM   #2
AwesomeMachine
LQ Guru
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524

Rep: Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015Reputation: 1015
Make sure the oracle repo file is actually present in /etc/yum.repos.d. Update the yum metadata.
It doesn't help that the system is ancient. I doubt that any third-party repo is going to work with 4.7.
The other thing is lsblk is not a package. That program is part of util-linux package.
 
Old 08-21-2017, 07:54 AM   #3
Joy Stick
Member
 
Registered: Dec 2015
Distribution: RHEL 4.7
Posts: 127

Original Poster
Rep: Reputation: 0
Hi,

How can i proceed now ?
why it was failure ?


PHP Code:
# cd /etc/yum.repos.d/
[root@DGPRIM yum.repos.d]# ls -l
total 20
-rw-r--r-- 1 root root 10240 Aug 21 04:14 junk.tar
-rw-r--r-- 1 root root  4886 May  5 01:04 public-yum-el5.repo 
PHP Code:
[root@DGPRIM yum.repos.d]# cat public-yum-el5.repo
[el5_latest]
name=Oracle Linux $releasever Latest ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=1

[el5_ga_base]
name=Oracle Linux $releasever GA installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/0/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_u1_base]
name=Enterprise Linux $releasever Update 1 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/1/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_u2_base]
name=Enterprise Linux $releasever Update 2 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/2/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_u3_base]
name=Enterprise Linux $releasever Update 3 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/3/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_u4_base]
name=Enterprise Linux $releasever Update 4 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/4/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_u5_base]
name=Enterprise Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/5/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u5_base]
name=Oracle Linux $releasever Update 5 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/5/base/x86_64/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u6_base]
name=Oracle Linux $releasever Update 6 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/6/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u7_base]
name=Oracle Linux $releasever Update 7 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/7/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u8_base]
name=Oracle Linux $releasever Update 8 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/8/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u9_base]
name=Oracle Linux $releasever Update 9 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/9/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u10_base]
name=Oracle Linux $releasever Update 10 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/10/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_u11_base]
name=Oracle Linux $releasever Update 11 installation media copy ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/11/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_addons]
name=Enterprise Linux $releasever Add ons ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_oracle_addons]
name=Oracle Software addons for Enterprise Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/oracle_addons/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_UEK_latest]
name=Latest Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/UEK/latest/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=1

[ol5_UEK_base]
name=Unbreakable Enterprise Kernel for Oracle Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/UEK/base/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[el5_unsupported]
name=Productivity Applications for Enterprise Linux $releasever ($basearch)
baseurl=http://yum.oracle.com/repo/EnterpriseLinux/EL5/unsupported/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_spacewalk24_client]
name=Spacewalk Client 2.4 for Oracle Linux 5 ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/spacewalk24/client/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=0

[ol5_spacewalk26_client]
name=Spacewalk Client 2.6 for Oracle Linux 5 ($basearch)
baseurl=http://yum.oracle.com/repo/OracleLinux/OL5/spacewalk26/client/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled
=

Last edited by Joy Stick; 08-21-2017 at 08:02 AM.
 
Old 08-21-2017, 09:56 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Joy Stick View Post
Hi,
How can i proceed now ? why it was failure ?
Did you read and understand the error you got? It told you it couldn't contact that particular website when you tried. Either it was down or you're had a network issue. Did you try to put the site into your browser, and see if it comes up??

And again, as AwesomeMachine said...your system is ancient. And as you've been told before, you should not be using RHEL or Oracle, unless you are PAYING FOR THEM. Have you contacted the support you're paying for?? And why even bother with Oracle's repos, when the lsblk utility is already part of RHEL?
https://access.redhat.com/documentat...lesystems.html

....so you can contact the RHEL support you're paying for, since it should already be in the RHEL repos.
 
  


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: DNF (Dandified yum), the next generation of yum package manager (Fork of Yum) for Fedora system LXer Syndicated Linux News 0 08-07-2016 05:12 PM
Cant install Virtual machine in CentOS 6 Cannot find package qemu-kvm in yum install linux_rhca Linux - Newbie 4 10-19-2011 05:37 AM
Unable to install package through yum troelskn Red Hat 5 04-27-2009 08:42 AM
yum package install lensem Linux - Server 5 11-14-2008 03:29 AM
[SOLVED] Use yum to install package. brave heart Red Hat 9 09-06-2007 02:51 AM

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

All times are GMT -5. The time now is 02:04 AM.

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