LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 05-30-2012, 02:15 PM   #1
chaw
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
Yum Command


Hi,

For installation of Oracle I need to update the rpm's on my system.
This is one of the rpm:
make-3.81-1.1.x86_64

This is what I get as output:
=====================================
[root@USSLTC3118V /]# yum list make
Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
No route to host
file:///mnt/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/Server/repodata/repomd.xml'
Trying other mirror.
Installed Packages
make.x86_64 1:3.81-3.el5 installed
====================================
[root@USSLTC3118V /]# yum install make
Loaded plugins: rhnplugin, security
There was an error communicating with RHN.
RHN support will be disabled.
Error communicating with server. The message was:
No route to host
file:///mnt/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/Server/repodata/repomd.xml'
Trying other mirror.
Setting up Install Process
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Nothing to do


Any idea why am I getting this error?
 
Old 05-30-2012, 02:28 PM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
Looks like you or somebody else set up a local repository for yum, which apparently does not exist anymore. You can find and disable it in /etc/yum.repos.d/.

It also appears that the machine does not have internet access, so it can't access the RHN to check there. You should probably look into why the machine can't access the RHN, and once that's fixed you can update everything with "yum update".

Last edited by suicidaleggroll; 05-30-2012 at 02:30 PM.
 
Old 05-30-2012, 02:31 PM   #3
chaw
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
Looks like you or somebody else set up a local repository for yum, which apparently does not exist anymore. You can find and disable it in /etc/yum.repos.d/.

It also appears that the machine does not have internet access, so it can't access the RHN to check there.
Thanks for a quick reply.
Is there a fast and easy way to check if the machine has internet access?
I am accessing the machine remotely via putty.
 
Old 05-30-2012, 02:33 PM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,258

Rep: Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
You can try pinging the google servers:
Code:
ping google.com
If that works, everything should be good to go. If it doesn't work, you can try pinging the IP directly:
Code:
ping 74.125.227.131
If that works, but google.com didn't, then you have internet access, but there's a DNS error that's preventing name resolution.
 
Old 05-30-2012, 02:36 PM   #5
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
This is not an error related to the make installation. Notice these lines:
Code:
Installed Packages
make.x86_64 1:3.81-3.el5 installed
and
Code:
Package 1:make-3.81-3.el5.x86_64 already installed and latest version
Nothing to do
The first coming from yum list tells you about the presence of the package make in the already installed software. The second from yum install tells you the package make is already installed and up-to-date, hence nothing to do (since it's already done).

Instead the actual error is:
Code:
file:///mnt/Server/repodata/repomd.xml: [Errno 5] OSError: [Errno 2] No such file or directory: '/mnt/Server/repodata/repomd.xml'
This one is related to a local repository that yum expect to be mounted under the /mnt directory of your system. To avoid this error in the future you should edit the file under /etc/yum.repos.d that contains the definition of the local repository and change the line
Code:
enabled=1
to
Code:
enabled=0
This disables the repo permanently. If you want to retrieve packages from it (provided the repo is available under the specified path) you can enable it directly from the yum command:
Code:
yum --enablerepo=named_repo install something
where named_repo should be the real name of the repository as registered by yum. Lastly, I notice from the posted output that you're running a Red Hat system but there is no available connection to Red Hat Network, RHN. This may be due to a broken internet connection or simply to the fact you're running your machine off-line (that may justify the usage of a local repository).

Edit: not seen previous answers before posting...

Last edited by colucix; 05-30-2012 at 02:37 PM.
 
Old 05-30-2012, 02:40 PM   #6
chaw
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
You can try pinging the google servers:
Code:
ping google.com
If that works, everything should be good to go. If it doesn't work, you can try pinging the IP directly:
Code:
ping 74.125.227.131
If that works, but google.com didn't, then you have internet access, but there's a DNS error that's preventing name resolution.
I was able to ping google and yum update gave me the following message:


......
---> Package python-pyblock.x86_64 0:0.26-4.el5 set to be updated
---> Package squashfs-tools.x86_64 0:3.0-4 set to be updated
--> Processing Conflict: rhn-client-tools conflicts up2date
--> Finished Dependency Resolution
rhn-client-tools-0.4.20-9.el5.noarch from installed has depsolving problems
--> rhn-client-tools conflicts with up2date
Error: rhn-client-tools conflicts with up2date
You could try using --skip-broken to work around the problem
You could try running: package-cleanup --problems
package-cleanup --dupes
rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.
 
Old 05-30-2012, 03:05 PM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by chaw View Post
Error: rhn-client-tools conflicts with up2date
Which version of Red Hat Enterprise are you running on? This error make me think at a pre-RHN release, maybe RHEL4.
 
Old 05-30-2012, 03:08 PM   #8
chaw
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
[oracle@USSLTC3118V StageR12]$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
 
Old 05-30-2012, 03:20 PM   #9
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
I don't remember is Red Hat 5 did come with yum installed, but nowadays up2date is deprecated in favor of yum. You can try to run
Code:
package-cleanup --problems
as suggested by the posted message or directly uninstall up2date (provided yum is well configured as it appears).
 
Old 05-30-2012, 06:37 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
from the top post and in your output
Quote:
RHN support will be disabled.
that right there is one of the VERY BIGGEST issues

RHEL 5.4 ( you say) is not free
you need to pay for the "license" a yearly support contract
also 5.4 is a bit on the old side in the 5 series . 5.8 is the current

so for 5.4 you MUST have a long term support contract for the bug and security fixes backported back to 5.4


you need to register this install with red hat and buy the required support contract

without it you are going to have all kinds of NOT fixable problems
http://www.redhat.com/support/customer-portal.html

also Oracles database ( not free )is meant to be ran on Oracles OWN version of red hat
the Oracles " unbreakable linux " -- also not free .

as to WHY "up2date" in installed ?????
that is a RHEL3 and RHEL4 program , so WHY is it on a RHEL5.4 install?????

i would contact your red hat tech rep
you ARE paying them the
- desktop - $49-$299/year ( std 1 year $299 IS RECOMMENDED )
- server- $349-$1299 / per year ( std 1 year $799 IS RECOMMENDED )
 
Old 05-31-2012, 04:26 PM   #11
kbscores
Member
 
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Blog Entries: 9

Rep: Reputation: 32
run:

Code:
rhn_register
If you can't register and you don't want to pay service fees rhn can be disabled in /etc/yum/pluginconf.d/rhnplugin.conf.

In this file change:
Code:
enabled=1
to

Code:
enabled=0
You also will probably want to disable the service from running by doing :

Code:
[root] # service rhnsd stop
and

Code:
[root] # chkconfig rhnsd off
You will also need to find a new repository to connect to. We use a local repository here -- but there are tons of free ones on the net.
 
Old 05-31-2012, 05:13 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
it you are going to that extent on a unlicensed RHEL

PORT/Migrate it it CentOS !!!!!!
your life will be VERY MUCH easier and the NEVER ENDING headache of trying to use a UNLICENSED copy of RHEL will end

see the wiki
http://wiki.centos.org/HowTos/MigrationGuide
 
Old 05-31-2012, 05:17 PM   #13
kamaleshbv1
LQ Newbie
 
Registered: Apr 2011
Posts: 29

Rep: Reputation: 0
Looks like you didn't register your system with the red hat satellite server for licensing ..New packages installation can only be done when you register your version .

issue command: rhn_register and paste the o/p
 
  


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
yum install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
YUM command varadrajan Red Hat 3 02-16-2010 06:26 PM
Yum command mickeyboa Fedora 2 11-22-2008 08:10 PM
YUM Command linuxjamil Linux - Newbie 1 05-16-2008 10:11 AM
yum.conf - extract files from a DVD. How define repo location and what is yum command emuub Linux - Software 2 06-17-2007 08:28 AM


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