LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Yum Command (https://www.linuxquestions.org/questions/linux-newbie-8/yum-command-947626/)

chaw 05-30-2012 01:15 PM

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?

suicidaleggroll 05-30-2012 01:28 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. 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".

chaw 05-30-2012 01:31 PM

Quote:

Originally Posted by suicidaleggroll (Post 4691390)
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.

suicidaleggroll 05-30-2012 01:33 PM

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.

colucix 05-30-2012 01:36 PM

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...

chaw 05-30-2012 01:40 PM

Quote:

Originally Posted by suicidaleggroll (Post 4691397)
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.

colucix 05-30-2012 02:05 PM

Quote:

Originally Posted by chaw (Post 4691407)
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.

chaw 05-30-2012 02:08 PM

[oracle@USSLTC3118V StageR12]$ cat /etc/*-release
Red Hat Enterprise Linux Server release 5.4 (Tikanga)

colucix 05-30-2012 02:20 PM

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).

John VV 05-30-2012 05:37 PM

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 )

kbscores 05-31-2012 03:26 PM

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.

John VV 05-31-2012 04:13 PM

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

kamaleshbv1 05-31-2012 04:17 PM

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 02:34 AM.