LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 04-23-2013, 04:13 AM   #1
KuimFieg
Member
 
Registered: Sep 2011
Location: France
Distribution: Debian Squeeze
Posts: 32

Rep: Reputation: Disabled
yum update broken dependencies


Hi all,

I'm running a CentOS 6.4 server with iRedMail.

This is my first experience with CentOS. (I'm more Debian focused).

After a year of service, I now have a dependency problem when updating the system.

I did enable an extra repo long ago (EPEL) because I needed additional software.

Anyways here is the output of yum update

Code:
Setting up Update Process
Resolving Dependencies
--> Running transaction check
---> Package clamav.x86_64 0:0.97.7-1.el6 will be updated
---> Package clamav.x86_64 0:0.97.7-1.el6.rf will be an update
---> Package clamav-db.x86_64 0:0.97.7-1.el6 will be updated
---> Package clamav-db.x86_64 0:0.97.7-1.el6.rf will be an update
---> Package clamd.x86_64 0:0.97.7-1.el6 will be updated
---> Package clamd.x86_64 0:0.97.7-1.el6.rf will be an update
--> Processing Dependency: /etc/clamd.d for package: amavisd-new-2.8.0-4.el6.noarch
--> Finished Dependency Resolution
Error: Package: amavisd-new-2.8.0-4.el6.noarch (@epel)
           Requires: /etc/clamd.d
           Removing: clamd-0.97.7-1.el6.x86_64 (@epel)
               Not found
           Updated By: clamd-0.97.7-1.el6.rf.x86_64 (iRedMail)
               Not found
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
There's obviously a problem with 2 conflicting repos. I tried enabling yum priorities to no avail.

If anyone with experience with this matter and could point me in the right direction it'd be much appreciated.
 
Old 04-23-2013, 06:42 AM   #2
eggshell
LQ Newbie
 
Registered: Jan 2012
Posts: 11

Rep: Reputation: Disabled
I would try simply disabling the repo not required for the install and re-enabling it there after. You can achieve this by editing the repo file it self:

vi /etc/yum.repo.d/someRepoName

## Change
enabled=1

## To
enabled=0
 
Old 04-23-2013, 07:29 AM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
This shows you've also enabled rpmforge
Code:
 Updated By: clamd-0.97.7-1.el6.rf.x86_64 (iRedMail)
You really need to install/setup http://wiki.centos.org/PackageManagement/Yum/Priorities to control updates or you'll get a broken system.

Last edited by chrism01; 04-24-2013 at 03:42 AM. Reason: typo
 
Old 04-23-2013, 07:58 AM   #4
KuimFieg
Member
 
Registered: Sep 2011
Location: France
Distribution: Debian Squeeze
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thanks for the replies,

Disabling iRedMail repo gives me no update. Disabling Epel repo still gives me the same conflict messages.

The ".rf" packages are actually provided by iRedMail which gives a complete mail server setup from the start. I actually enable the Epel repo only later on to get rdiff-backup !

Code:
yum list installed | grep '@epel' | wc -l
30
So I have about 30 packages including clam* and amavisd-new which have been updated accidently from the wrong repo. Any advice on how to handle the issue ?

I've setup priorities but for the moment I still can't update my system properly.
 
Old 04-24-2013, 01:23 AM   #5
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
I think you'll have to 'yum remove ...' the pkgs and re-install, now you've got priorities setup.
Incidentally, watch out as yum can get carried away with removals.
It may be better to just try that and see what it wants to do, then manually remove the rpms instead of saying yes to yum.
See 'rpm -e ..'

Depending on how bad this is, it could be quite a job.
 
Old 04-24-2013, 02:57 AM   #6
KuimFieg
Member
 
Registered: Sep 2011
Location: France
Distribution: Debian Squeeze
Posts: 32

Original Poster
Rep: Reputation: Disabled
Thumbs up

Ok thanks for the tip.

As this is a live server, I might just try to let the next version bump resolve the conflict. I haven't messed up core packages so I hope that might do the trick.

Thanks again
 
Old 04-24-2013, 03:43 AM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5
Posts: 16,086

Rep: Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995Reputation: 1995
In that case I'd disable all but the official repos first and good luck
 
  


Reply

Tags
broken, dependency, yum


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
yum update issue - broken packages?? nivantha Linux - Software 2 10-19-2010 11:48 AM
yum update fails for dependencies Four Fedora 12 12-15-2007 04:45 PM
Excluding dependencies from yum update paddyjoy Linux - Newbie 2 05-18-2006 05:45 PM
Yum Update - Error: Missing Dependencies? gandalf2041 Fedora 8 09-07-2005 07:07 PM
yum cannot resolve dependencies to update peregrine2 Linux - Software 0 07-19-2004 10:42 AM


All times are GMT -5. The time now is 11:53 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration