Linux - NewbieThis 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.
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.
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
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.
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.
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).
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.
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
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 )
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
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 .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.