LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-19-2008, 02:38 AM   #1
ashuji
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Rep: Reputation: 0
Question problem with YUM UPDATE


Hi

I am new to this forum and this is my first thread.

I have installed CentOS-5 One a VM on 3Tera GRID with details as below:

Kernel: Linux stg-dns1blue1a1.pgicos-dev.net 2.6.16.33-xenU #2 SMP Tue Aug 21 17:57:55 PDT 2007 i686 i686 i386 GNU/Linux

I am using it as DNS server, but from sometime facing a problem when try to do 'yum -y update'

This command does not return any error but neither update the system, below are the output of command:

[root@stg-dns1blue1a1 ~]# yum -y update

Loading "fastestmirror" plugin
Loading mirror speeds from cached hostfile
* base: centosf3.centos.org
* updates: mirror.linux.duke.edu
* addons: mirror.linux.duke.edu
* extras: mirror.linux.duke.edu
Excluding Packages in global exclude list
Finished
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package openssh-server.i386 0:4.3p2-26.el5_2.1 set to be updated
---> Package initscripts.i386 0:8.45.19.1.EL-1.el5.centos set to be updated
---> Package nss.i386 0:3.12.1.1-3.el5.centos set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Updating:
initscripts i386 8.45.19.1.EL-1.el5.centos updates 1.6 M
nss i386 3.12.1.1-3.el5.centos updates 1.1 M
openssh-server i386 4.3p2-26.el5_2.1 updates 255 k

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 3 Package(s)
Remove 0 Package(s)

Total download size: 2.9 M
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
[root@stg-dns1blue1a1 ~]#

See in the output above, it showed that 2.9MB of update available to download but it did not download them, and if I run 'yum -y update' again it will again give the same output. Everytime I run 'yum -y update' it returns same output. I have tried erase and reinstall YUM rpm, but it did not solve the problem. I have yum working fine on one another machine which is similar this, I copied all YUM packages (/usr) and config (/etc) files from there to this machine and rebooted this machine, even after that it shows same output.

One interesting thing about this is, if I remove all repository files from /etc/yum.repos.d/ and only have rpmforge repository file in it, it works well, but if I have Cent-OS BASE of MEDIA repository files there, it gives the above mentioned problemm.

Please suggest if you have any idean, how to get rid of this problem.

Ashwani Jain
 
Old 11-19-2008, 02:42 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Can you post /etc/yum.conf and the offending repo file?
 
Old 11-19-2008, 02:51 AM   #3
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
I wonder if it could be a problem with using a kernel that predates Cenots5? Centos5 came out with 2.6.18 and you are showing 2.6.16.
 
Old 11-19-2008, 04:11 AM   #4
ashuji
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Lazlow

Thanks for your quick reply, On other machine where YUM update is working fine, same is the kernel version and same is also the version of YUM. i.e. both machcines are identical in terms of OS setup.

Regards

Ashwani Jain
 
Old 11-19-2008, 04:31 AM   #5
ashuji
LQ Newbie
 
Registered: Nov 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Billymayday

Please find below the contents of conf. files in question:

[root@stg-dns1blue1a1 ~]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum
keepcache=1
debuglevel=2
logfile=/var/log/yum.log
pkgpolicy=newest
distroverpkg=redhat-release
tolerant=1
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
metadata_expire=1800

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d

exclude=kernel*
=================================================================================


# cat /etc/yum.repos.d/CentOS-Base.repo
# CentOS-Base.repo
#
# This file uses a new mirrorlist system developed by Lance Davis for CentOS.
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#released updates
[updates]
name=CentOS-$releasever - Updates
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
#baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#packages used/produced in the build but not released
[addons]
name=CentOS-$releasever - Addons
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
#baseurl=http://mirror.centos.org/centos/$releasever/addons/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
#baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
#baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5


==============================================================

# cat /etc/yum.repos.d/CentOS-Media.repo
# CentOS-Media.repo
#
# This repo is used to mount the default locations for a CDROM / DVD on
# CentOS-5. You can use this repo and yum to install items directly off the
# DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
# yum --enablerepo=c5-media [command]
#
# or for ONLY the media repo, do this:
#
# yum --disablerepo=\* --enablerepo=c5-media [command]

[c5-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
file:///media/cdrom/
file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
====================================================

for this repository it works fine on this machine:
(in case this is the only repository file in /etc/yum.repos.d/

]# cat /etc/yum.repos.d/rpmforge.repo
# Name: RPMforge RPM Repository for Red Hat Enterprise 5 - dag
# URL: http://rpmforge.net/
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 1
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1

=========================================================
 
  


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 update problem pin2 Linux - Newbie 3 10-03-2008 12:13 AM
New problem with yum after update! sameetLinux Linux - General 1 09-14-2008 12:21 AM
yum update problem mickeyboa Fedora 2 10-04-2006 01:43 PM
Problem with yum update rickronn Linux - Distributions 2 03-26-2006 08:55 PM
Yum update problem DanielTan Linux - General 2 09-28-2005 04:43 AM

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

All times are GMT -5. The time now is 01:15 PM.

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