LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Yum upgrade having problem (https://www.linuxquestions.org/questions/linux-software-2/yum-upgrade-having-problem-4175421942/)

newbie14 08-13-2012 09:56 PM

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

John VV 08-13-2012 11:58 PM

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

newbie14 08-14-2012 12:03 AM

Dear John,
Sorry I ran yum -y update not upgrade. The OS is centos 6.2 final. So what should I do now?

John VV 08-14-2012 12:26 AM

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

newbie14 08-14-2012 12:42 AM

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?

knudfl 08-14-2012 12:49 AM

Just disable or exclude the "percona.repo".

Then you can update all "CentOS original" packages.

newbie14 08-14-2012 12:54 AM

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?

John VV 08-14-2012 02:40 AM

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


All times are GMT -5. The time now is 08:53 AM.