LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Yum Issue - Go Figure! (https://www.linuxquestions.org/questions/linux-software-2/yum-issue-go-figure-833332/)

athomas 09-20-2010 09:10 AM

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.

MensaWater 09-20-2010 09:28 AM

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.

athomas 09-20-2010 09:33 AM

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.

knudfl 09-20-2010 01:14 PM

1 Attachment(s)
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"
.....

athomas 09-20-2010 01:16 PM

I never modified that file... I'd think it would be right as it's system generated.

knudfl 09-20-2010 01:32 PM

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

athomas 09-20-2010 01:58 PM

-snip-

My bad. Hold on.

athomas 09-20-2010 02:00 PM

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.


knudfl 09-20-2010 02:04 PM

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'

...

John VV 09-20-2010 08:24 PM

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

athomas 09-21-2010 07:39 AM

Quote:

Originally Posted by knudfl (Post 4103588)
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 (Post 4103860)
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


John VV 09-21-2010 01:15 PM

i will get back to you later on today ( i will have to boot inst Cent - it is my backup instal )

John VV 09-21-2010 02:57 PM

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


All times are GMT -5. The time now is 04:35 AM.