LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-20-2010, 08:10 AM   #1
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Rep: Reputation: 15
Yum Issue - Go Figure!


Yum won't update my system, here is my repo file:

Code:
# CentOS-Base.repo
#
# 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.
#
#


#released updates
[updates]
name=CentOS-5 - Updates
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=updates
#baseurl=http://mirror.centos.org/centos/5/updates/i386/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

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

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

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-5 - Plus
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=centosplus
#baseurl=http://mirror.centos.org/centos/5/centosplus/i386/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5

#contrib - packages by Centos Users
[contrib]
name=CentOS-5 - Contrib
mirrorlist=http://mirrorlist.centos.org/?release=5&arch=i386&repo=contrib
#baseurl=http://mirror.centos.org/centos/5/contrib/i386/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Using the GUI Yum frontend, and "yum update" in terminal, it complains that it can't resolve dependencies.
 
Old 09-20-2010, 08:28 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
Can you post the yum command you used and its output - we might be able to give hints if it is a true dependency issue.

A couple of gotchas I've seen that you might want to look at.
1) Most RHEL5/CentOS5 systems are running the yum-updatesd daemon by default. This can interfere with command line yum runs. Running "service yum-updatesd stop" and retrying your yum CLI might resolve your issue.

2) The yum cache sometimes gets confused so running "yum clean all" to clear the cache often helps. Note that if you have set yum to keep all rpms and headers it downloads this will delete them (not the installed packages themselves - just the files that were used to install them.) If you want to save those rpm bundles you need to copy them from the /var/cache/yum/* directories to another location prior to the yum cleaning.
 
Old 09-20-2010, 08:33 AM   #3
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
It's telling me to run a package-cleanup, but none of those commands seem to work, and yum-utils isn't a package as far as my PC is concerned, I did a search and nothing turned up. Did the yum clean all and yum makecache, no change.
 
Old 09-20-2010, 12:14 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Where is your main repo ? ?
Code:
[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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
Without this part, no yum / Package Manager will work.

Also, you have ""?release=5&arch=i386&repo""
instead of "?release=$releasever&arch=$basearch&repo"
.....
Attached Files
File Type: txt CentOS-Base.repo.txt (2.2 KB, 9 views)
 
Old 09-20-2010, 12:16 PM   #5
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
I never modified that file... I'd think it would be right as it's system generated.
 
Old 09-20-2010, 12:32 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Well, it's not "system generated" :

We'll simply ask "To which package does this file belong" →
rpm -qf /etc/yum.repos.d/CentOS-Base.repo

The reply is : centos-release-5-5.el5.centos

Suggest : install centos-release....
# rpm -Uvh centos-release-5-5.el5.centos.i386.rpm
( Or # rpm -Uvh --force centos-release-5-5.el5.centos.i386.rpm ,
... if 'rpm' says "already installed". I.e. --force will replace the buggy file.)


P.S. : Could this bug origin from a CentOS live cd ?
..

Last edited by knudfl; 09-20-2010 at 12:58 PM.
 
Old 09-20-2010, 12:58 PM   #7
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
-snip-

My bad. Hold on.
 
Old 09-20-2010, 01:00 PM   #8
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Code:
  --> Missing Dependency: libXt-devel is needed by package xulrunner-devel-1.9.2.9-1.el5.i386 (updates)
xulrunner-devel-1.9.2.9-1.el5.i386 from updates has depsolving problems
  --> Missing Dependency: libjpeg-devel is needed by package xulrunner-devel-1.9.2.9-1.el5.i386 (updates)
Error: Missing Dependency: libXt-devel is needed by package xulrunner-devel-1.9.2.9-1.el5.i386 (updates)
Error: Missing Dependency: libjpeg-devel is needed by package xulrunner-devel-1.9.2.9-1.el5.i386 (updates)
 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 09-20-2010, 01:04 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Reply to post # 7 ( Which before your edit said : No such file .. ).
The blue text centos-release-5-5.el5.centos.i386.rpm
is a direct link to the package : You will have to download it.

And : cd <location-of-downloaded-package>/ ; su ;
... and then 'rpm -Uvh --force centos-release-5-5.el5.centos.i386.rpm'

...

Last edited by knudfl; 09-20-2010 at 01:09 PM.
 
Old 09-20-2010, 07:24 PM   #10
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
this may also be a repo incompatibility issue
but the spinets of output you have posted make it imposable to tell

it is VERY VERY VERY easy to have incompatible rpm's installed .That is why there are the two yum plugins " priorities" and "protect base"

posting the FULL command and output would help and also the output of this
Code:
yum repolist all
also "yum-utils " needs to be installed it is not on the install disk

and the text in the first post is a INCOMPLETE *.repo file
not everything is there that SHOULD be there

use the link in the above post to reinstall the base centOS repo file
 
Old 09-21-2010, 06:39 AM   #11
athomas
Member
 
Registered: May 2009
Location: Eastern Shore, MD, USA
Distribution: CentOS 5.5
Posts: 184

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by knudfl View Post
Reply to post # 7 ( Which before your edit said : No such file .. ).
The blue text centos-release-5-5.el5.centos.i386.rpm
is a direct link to the package : You will have to download it.

And : cd <location-of-downloaded-package>/ ; su ;
... and then 'rpm -Uvh --force centos-release-5-5.el5.centos.i386.rpm'

...
Yeah that's why I snipped that, had a brain fart.

Quote:
Originally Posted by John VV View Post
this may also be a repo incompatibility issue
but the spinets of output you have posted make it imposable to tell

it is VERY VERY VERY easy to have incompatible rpm's installed .That is why there are the two yum plugins " priorities" and "protect base"

posting the FULL command and output would help and also the output of this
Code:
yum repolist all
also "yum-utils " needs to be installed it is not on the install disk

and the text in the first post is a INCOMPLETE *.repo file
not everything is there that SHOULD be there

use the link in the above post to reinstall the base centOS repo file
Installed from which repo? I do a yum search for it, and it turns up nothing.


Also:
Code:
yum repolist all
Loaded plugins: fastestmirror
repo id                       repo name                             status
addons                        CentOS-5 - Addons                     enabled:   0
c5-media                      CentOS-5 - Media                      disabled
centosplus                    CentOS-5 - Plus                       enabled: 103
contrib                       CentOS-5 - Contrib                    enabled:   0
extras                        CentOS-5 - Extras                     enabled: 335
updates                       CentOS-5 - Updates                    enabled: 554
repolist: 992

Last edited by athomas; 09-21-2010 at 06:40 AM.
 
Old 09-21-2010, 12:15 PM   #12
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
i will get back to you later on today ( i will have to boot inst Cent - it is my backup instal )
 
Old 09-21-2010, 01:57 PM   #13
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
?? have you fixed the centos-base.repo ?
-- the top part of mine -- you are missing the [base] part
Code:
# CentOS-Base.repo
#
# 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=file:///etc/pki/rpm-gpg/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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5
.... more lines of code...
from your above post YOU DID NOT
you are missing the BASE
when i run "yum repolist i have the BASE listed
Quote:
base CentOS-5 - Base enabled: 3,434


a yum search for "yum-utils" gives you no output?
Code:
su -
yum search yum-utils
should give you something like this
Quote:
============================== Matched: yum-utils ==============================
yum-NetworkManager-dispatcher.noarch : NetworkManager dispatcher plugin to help
: yum, when changing networks
yum-aliases.noarch : Yum plugin to enable aliases filters
yum-allowdowngrade.noarch : Yum plugin to enable manual downgrading of packages
yum-changelog.noarch : Yum plugin for viewing package changelogs before/after
: updating
yum-downloadonly.noarch : Yum plugin to add downloadonly command option
yum-fastestmirror.noarch : Yum plugin which chooses fastest repository from a
: mirrorlist
yum-filter-data.noarch : Yum plugin to list filter based on package data
yum-kernel-module.noarch : Yum plugin to handle kernel-module-foo type of kernel
: module
yum-keys.noarch : Yum plugin to deal with signing keys
yum-kmod.noarch : Yum plugin to handle fedora kernel modules.
yum-list-data.noarch : Yum plugin to list aggregate package data
yum-merge-conf.noarch : Yum plugin to merge configuration changes when
: installing packages
yum-priorities.noarch : plugin to give priorities to packages from different
: repos
yum-protect-packages.noarch : Yum plugin to prevents Yum from removing itself
: and other protected packages
yum-protectbase.noarch : Yum plugin to protect packages from certain
: repositories.
yum-refresh-updatesd.noarch : Tell yum-updatesd to check for updates when yum
: exits
yum-security.noarch : Yum plugin to enable security filters
yum-tmprepo.noarch : Yum plugin to add temporary repositories
yum-tsflags.noarch : Yum plugin to add tsflags by a commandline option
yum-updateonboot.noarch : Run yum update on system boot
yum-upgrade-helper.noarch : Yum plugin to help upgrades to the next distribution
: version
yum-utils.noarch : Utilities based around the yum package manager
yum-verify.noarch : Yum plugin to add verify command, and options
yum-versionlock.noarch : Yum plugin to lock specified packages from being
: updated
?
 
  


Reply



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 tg0000 Fedora 8 04-13-2011 11:25 AM
Yum Issue tuftystick Linux - Newbie 3 01-20-2009 05:51 AM
Issue with YUM?? your_shadow03 Linux - Newbie 1 09-16-2008 07:04 AM
yum issue edudirectories Linux - Software 1 02-27-2006 10:10 AM
[HELP] I can't figure out my sound issue, and I've searched for answers. 1wicked_element Linux - Newbie 14 08-08-2004 10:09 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:11 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
Open Source Consulting | Domain Registration