Nicht selten kommt es durch unterschiedliche Repositories zu Abhängigkeitsproblemen unter CentOS, Fedora, oder Oracle Linux.
So, oder so ähnlich, kann solch ein Problem aussehen.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
[root@localhost ~]# yum install php53u Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: ftp.plusline.de * epel: mirror.fraunhofer.de * extras: mirror.softaculous.com * ius: ius.cu.be * updates: mirror.informatik.hs-fulda.de epel | 3.6 kB 00:00 epel/primary_db | 3.9 MB 00:00 ius | 2.1 kB 00:00 ius/primary_db | 107 kB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php53u.x86_64 0:5.3.28-1.ius.centos5 set to be updated --> Processing Dependency: php53u-common = 5.3.28-1.ius.centos5 for package: php53u --> Processing Dependency: php53u-cli = 5.3.28-1.ius.centos5 for package: php53u --> Processing Dependency: t1lib for package: php53u --> Processing Dependency: libedit for package: php53u --> Running transaction check ---> Package libedit.x86_64 0:2.11-2.20080712cvs.el5 set to be updated ---> Package php53u-cli.x86_64 0:5.3.28-1.ius.centos5 set to be updated ---> Package php53u-common.x86_64 0:5.3.28-1.ius.centos5 set to be updated ---> Package t1lib.x86_64 0:5.1.1-9.el5 set to be updated --> Processing Dependency: libXaw.so.7()(64bit) for package: t1lib --> Running transaction check ---> Package libXaw.x86_64 0:1.0.2-8.1 set to be updated --> Processing Conflict: php53u conflicts php < 5.3 --> Finished Dependency Resolution php53u-5.3.28-1.ius.centos5.x86_64 from ius has depsolving problems --> php53u conflicts with php Error: php53u conflicts with php 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. |
Um das Problem einfach und unkompliziert zu lösen, installieren wir yum-plugin-replace.
1 |
yum install yum-plugin-replace -y |
Das obige Dependency Problem kann nun mit yum replace
behoben werden.
1 |
yum replace php53 --replace-with php53u |
0