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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-30-2012, 01:15 PM
|
#1
|
LQ Newbie
Registered: May 2012
Posts: 4
Rep: 
|
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?
|
|
|
05-30-2012, 01:28 PM
|
#2
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
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 01:30 PM.
|
|
|
05-30-2012, 01:31 PM
|
#3
|
LQ Newbie
Registered: May 2012
Posts: 4
Original Poster
Rep: 
|
Quote:
Originally Posted by suicidaleggroll
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.
|
|
|
05-30-2012, 01:33 PM
|
#4
|
LQ Guru
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573
|
You can try pinging the google servers:
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.
|
|
|
05-30-2012, 01:36 PM
|
#5
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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
to
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 01:37 PM.
|
|
|
05-30-2012, 01:40 PM
|
#6
|
LQ Newbie
Registered: May 2012
Posts: 4
Original Poster
Rep: 
|
Quote:
Originally Posted by suicidaleggroll
You can try pinging the google servers:
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.
|
|
|
05-30-2012, 02:05 PM
|
#7
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
Quote:
Originally Posted by chaw
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.
|
|
|
05-30-2012, 02:08 PM
|
#8
|
LQ Newbie
Registered: May 2012
Posts: 4
Original Poster
Rep: 
|
[oracle@USSLTC3118V StageR12]$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
|
|
|
05-30-2012, 02:20 PM
|
#9
|
LQ Guru
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509
|
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).
|
|
|
05-30-2012, 05:37 PM
|
#10
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,710
|
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 )
|
|
|
05-31-2012, 03:26 PM
|
#11
|
Member
Registered: Oct 2011
Location: USA
Distribution: Red Hat
Posts: 259
Rep:
|
run:
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:
to
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.
|
|
|
05-31-2012, 04:13 PM
|
#12
|
LQ Muse
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,710
|
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
|
|
|
05-31-2012, 04:17 PM
|
#13
|
LQ Newbie
Registered: Apr 2011
Posts: 29
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 09:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|