www.centos.org Forum Index CentOS 5 - General Support yum Dependency problem
|
Bottom Previous Topic Next Topic |
| |
|
|
|---|
| Poster | Thread | Rated: 2 Votes |
|---|
|
yum Dependency problem | #1 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/5/5
From
Posts: 21
|
Hello everybody
I am relatively new to the forum and start my first steps with Centos 5.3 Have done my first yum update and it seems to complete well but after i notice kernel packages didnt update, so i have done that separately. Now running yum update again and i get this error : # yum update Loaded plugins: fastestmirror, priorities Loading mirror speeds from cached hostfile * extras: ftp.dei.uc.pt * updates: ftp.dei.uc.pt * base: ftp.dei.uc.pt * addons: ftp.dei.uc.pt 59 packages excluded due to repository priority protections Setting up Update Process Resolving Dependencies --> Running transaction check ---> Package file.x86_64 0:4.17-15.el5_3.1 set to be updated --> Processing Dependency: /usr/share/magic.mime for package: httpd --> Finished Dependency Resolution httpd-2.2.3-22.el5.centos.x86_64 from installed has depsolving problems --> Missing Dependency: /usr/share/magic.mime is needed by package httpd-2.2.3-22.el5.centos.x86_64 (installed) Error: Missing Dependency: /usr/share/magic.mime is needed by package httpd-2.2.3-22.el5.centos.x86_64 (installed) # ls -all /usr/share/magic.mime lrwxrwxrwx 1 root root 15 May 7 21:39 /usr/share/magic.mime -> file/magic.mime Leaving some more information about my system x86_64 # uname -rmi 2.6.18-128.1.10.el5 x86_64 x86_64 #less /etc/yum.conf [main] cachedir=/var/cache/yum keepcache=0 debuglevel=2 logfile=/var/log/yum.log distroverpkg=redhat-release tolerant=1 exactarch=1 obsoletes=1 gpgcheck=1 plugins=1 # Note: yum-RHN-plugin doesn't honor this. metadata_expire=1h installonly_limit = 5 # PUT YOUR REPOS HERE OR IN separate files named file.repo # in /etc/yum.repos.d #less Centos-Base.repo [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 priority=1 #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 priority=1 #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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #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 What can be suggested ? #yum remove httpd #yum install httpd Have seen this options but dont know how to use it package-cleanup --problems package-cleanup --dupes package-cleanup --cleandupes thanks |
||
Posted on: 2009/5/9 11:08
|
|||
|
Re: yum Dependency problem | #2 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 7826
|
The first and easiest thing to try is "yum clean all && yum update".
I notice you are using the priorities plugin and have not set one for [extras]. It will default to 99 which may or may not be what you want. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/5/9 11:13
|
|||
|
Re: yum Dependency problem | #4 |
|
|---|---|---|---|
|
Regular Board Member
![]()
Joined: 2006/6/3
From
Posts: 127
|
FWIW, I ran into the same thing this morning on my i386, and just ran:
# yum clean packages # yum clean headers # yum clean metadata # yum clean dbcache (And then) # yum clean all Then all went well. (That's probably overkill, but that's just the way I am.) |
||
Posted on: 2009/5/9 14:34
|
|||
|
Re: yum Dependency problem | #5 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 7826
|
Quote:
Won't hurt anything if you just like to type but as the argument "all" implies, "yum clean all" does all of the above. From the man page:If you want overkill, just "yum clean all<CR><UP-Arrow><CR>". ![]() |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/5/9 16:00
|
|||
|
Re: yum Dependency problem | #6 |
|
|---|---|---|---|
|
Regular Board Member
![]()
Joined: 2006/6/3
From
Posts: 127
|
Quote:
Point taken, Phil. I'll cast aside my paranoia in the future :0 |
||
Posted on: 2009/5/9 17:10
|
|||
|
Re: yum Dependency problem | #7 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/9/3
From California, US
Posts: 5182
|
|||
Posted on: 2009/5/9 19:27
|
|||
|
Re: yum Dependency problem | #8 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/5/5
From
Posts: 21
|
Hi again
#yum clean all # yum update It just worked like a charm, first try. Thanks I can see this ................. 59 packages excluded due to repository priority protections Setting up Update Process No Packages marked for Update Please tell me if are these packages important ? Leaving one more time CentOS-Base.repo [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 priority=1 #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 priority=1 #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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 priority=1 #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=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 #contrib - packages by Centos Users [contrib] name=CentOS-$releasever - Contrib mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo =contrib #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ gpgcheck=1 enabled=0 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5 Thanks again |
||
Posted on: 2009/5/10 8:37
|
|||
|
Re: yum Dependency problem | #9 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 7826
|
Quote:
You will have to decide that for yourself based on your needs and preferences, but based on your repo config, assuming no other repos are involved/enabled, and after a full update, here's how to see what you are not updating from each: OR to get the global list of excluded updates: |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/5/10 16:16
|
|||
|
Re: yum Dependency problem | #10 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/5/5
From
Posts: 21
|
Hi
Thanks you for all that command possibilities but for example now i'am trying to install vlc package # yum install vlc Total size: 52 M Is this ok [y/N]: y Downloading Packages: Package gsm-1.0.12-3.el5.kb.x86_64.rpm is not signed or before was this one Package SDL_image-1.2.5-4.el5.kb.x86_64.rpm is not signed I can see all packages at /var/cache/yum/kbs-CentOS-Testing/packages but i think none of them is signed ? question is that secure to manually install ? or can i get signed ones from elsewhere ? thanks |
||
Posted on: 2009/5/10 18:33
|
|||
|
Re: yum Dependency problem | #11 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 7826
|
Not sure why Karanbir still seems to only have unsigned/testing packages, but gsm and vlc are available as signed packages from RPMforge.
Recommended reading: http://wiki.centos.org/TipsAndTricks/MultimediaOnCentOS |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/5/11 11:43
|
|||
|
Re: yum Dependency problem | #12 |
|
|---|---|---|---|
|
Peeking in the Member Window
![]()
Joined: 2009/5/5
From
Posts: 21
|
Thanks to lead me to the right way
I see now i forget to disabled this [kbs-CentOS-Testing] name=CentOS.Karan.Org-EL$releasever - Testing gpgcheck=1 gpgkey=http://centos.karan.org/RPM-GPG-KEY-karan.org.txt .......................... enabled=0 ......................... baseurl=http://centos.karan.org/el$releasever/extras/testing/$basearch/RPMS/ Now yum doesnt search those Testing packages and all of them exists on rpmforge Thanks one more time |
||
Posted on: 2009/5/11 12:39
|
|||
|
Re: yum Dependency problem | #13 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 7826
|
You may want to review
http://wiki.centos.org/PackageManagement/Yum/Priorities and make sure you have priorities properly configured for all repos. It is possible to leave repos enabled but give them a lower priority (higher number) than the repo you want packages to come from. You can also use a combination of exclude and includepkgs directives to yum. See "man yum.conf". |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/5/11 12:44
|
|||
|
Re: yum Dependency problem | #14 |
|
|---|---|---|---|
|
Newbie
![]()
Joined: 2009/2/4
From Arad, Romania
Posts: 1
|
you don't need "yum clean all"
"yum clean metadata" is enough i like to keep packages in cache, just in case... |
||
Posted on: 2009/5/12 0:18
|
|||
|
Re: yum Dependency problem | #15 |
|
|---|---|---|---|
|
Moderator
![]()
Joined: 2006/12/13
From Tidewater, Virginia, North America
Posts: 7826
|
A matter of opinion and sometime of fact. If you have corrupted packages you don't want to keep them. At least
No doubt "yum clean all" is occasionally overkill, but it is also the most robust approach. @AdiB: Welcome to the CentOS fora. |
||
|
_________________
Phil Recommended reading: FAQ & Readme first ; Search hint: google "your topic site:centos.org"; Smart Questions |
|||
Posted on: 2009/5/12 1:12
|
|||
Top Previous Topic Next Topic |
|



Topic options
Print Topic
Threaded
Newest First
2 Votes
O_ctopus





but as the argument "all" implies, "yum clean all" does all of the above. From the man page:


You cannot start a new topic.
You can view topic.