LinuxQuestions.org
Review your favorite Linux distribution.
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 08-13-2012, 10:56 PM   #1
newbie14
Member
 
Registered: Sep 2011
Posts: 620

Rep: Reputation: Disabled
Yum upgrade having problem


Dear All,
I tried to run yum -y upgrade and I got this error towards the end. I tried yum -y upagrade --skip-broken still same. Any resolution to this issue?

Quote:
Error: Percona-XtraDB-Cluster-shared conflicts with Percona-Server-shared-51
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
 
Old 08-14-2012, 12:58 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,461

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
first of all you REALLY DO NOT want to use the "-y" option
"-y" is the say yes TO EVERYTHING and do NOT show what it is
JUST DO IT!!!


it is not a wise option to use
unless you know 100% EXACTLY what the outcome is going to be

second
what Operating system is this ?
"yum upgrade"
all by it's self will not work !

RHEL has it's own procedure
CentOS has a slightly different one
ScientivicLinux REQUIRES a new "6x" repo file installed FIRST
Fedora -- well is using "preupgrade" or the install dvd
 
Old 08-14-2012, 01:03 AM   #3
newbie14
Member
 
Registered: Sep 2011
Posts: 620

Original Poster
Rep: Reputation: Disabled
Dear John,
Sorry I ran yum -y update not upgrade. The OS is centos 6.2 final. So what should I do now?
 
Old 08-14-2012, 01:26 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,461

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
cent 6.2
well there is your answer
6.2 is no longer supported
there are NO updates for it

please install CentOS 6.3

also if you have any third party repos installed they CAN cause a conflict
"yum-priorities" plugin IS required if you are using repos besides the base cent updates and extras


if it has been longer than 1 month sence the last update you can bring it "up to date" with the FINAL 6.2
IF only the cent6 "security" "updates" , "extras" are the ONLY installed repos
Code:
su -
yum clean all
rpm --rebuilddb
yum clean all
yum update
the two "clean all" are for a known problem that some times causes yum to fail unless that rpm command is ran
if other non standard repos ARE installed ?????
it is a "crap shoot"
for a list run this
Code:
su -
yum repolist all
that will output ALL the installed repos and if they are ON or OFF

however from this
Quote:
Percona-XtraDB-Cluster-shared conflicts with Percona-Server-shared-51
i am guessing that you DO have a problem
those two programs are looking like they are from TWO DIFFERENT sources
uninstall "Percona-Server-shared-51" if possible or "Percona-XtraDB-Cluster-shared" if possible
uninstall one of them

to see the information on each use the yum info command
Code:
su -
yum info Percona-XtraDB-Cluster-shared
then update
 
Old 08-14-2012, 01:42 AM   #5
newbie14
Member
 
Registered: Sep 2011
Posts: 620

Original Poster
Rep: Reputation: Disabled
Dear John,
I did this

yum clean all
rpm --rebuilddb
yum clean all
yum update

and it got stuck again so then I run this
Quote:
yum repolist all
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
* base: mirrors.hostemo.com
* extras: mirrors.hostemo.com
* updates: mirrors.hostemo.com
repo id repo name status
base CentOS-6 - Base enabled: 6,346
c6-media CentOS-6 - Media disabled
centosplus CentOS-6 - Plus disabled
contrib CentOS-6 - Contrib disabled
debug CentOS-6 - Debuginfo disabled
extras CentOS-6 - Extras enabled: 4
percona CentOS 6 - Percona enabled: 40
updates CentOS-6 - Updates enabled: 429
repolist: 6,819
Should I run yum remove Percona-XtraDB-Cluster-shared or disabled the percona repo?
 
Old 08-14-2012, 01:49 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,316

Rep: Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578Reputation: 3578
Just disable or exclude the "percona.repo".

Then you can update all "CentOS original" packages.
 
Old 08-14-2012, 01:54 AM   #7
newbie14
Member
 
Registered: Sep 2011
Posts: 620

Original Poster
Rep: Reputation: Disabled
Dear John,
Thank you I have gone to the yum.repos.d and disabled via its file and the updates are working well now. How often do you suggest to run yum update and which option is best to run?
 
Old 08-14-2012, 03:40 AM   #8
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,461

Rep: Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604Reputation: 2604
you might want to look through the Cent wiki
and the section on third party repos
http://wiki.centos.org/

http://wiki.centos.org/AdditionalResources/Repositories

and the yum-Priorities plugin
http://wiki.centos.org/PackageManagement/Yum/Priorities

one of the two ( in that error) ARE a incompatible rpm

unfortunately though that plugin is VERY easy to configure
deciding on just WHAT repo to set at a lower Priority is a "guessing game" sometimes

but a good educated guess is to set "percona CentOS 6" at 150
and leave the rest at the default 99


as above you can disable that repo
for one time only or for good
see
Code:
yum --help 
/* and the manual page */
man yum 
--------- for example -----------
yum --disablerepo=percona update


BUT 6.2 is at End Of Life
it is time to install CentOS 6.3
you do need to upgrade

http://wiki.centos.org/Manuals/ReleaseNotes/CentOS6.3
 
  


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 install flash ... yum: command not found ... which yum ... /usr/bin/yum tg3793 Fedora 8 04-13-2011 12:25 PM
problem after yum yum yum (delicious) alaios Fedora 3 01-14-2009 03:34 AM
upgrade problem via yum neo_cool_XIIK Fedora 4 12-02-2007 07:47 PM
yum repository problem after system upgrade xpucto Fedora 2 11-24-2007 07:27 AM
Yum Problem - /var/cache/yum/base/primary.xml.gz:1 ice99 Linux - Software 0 12-15-2005 02:08 PM

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

All times are GMT -5. The time now is 10:43 AM.

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