Package-cleanup problems
I tried to install LEMP on my VPS. Everything is ok and the LEMP running normally.
Now i want to install some php extension (GD2,imagick …) and phpmyadmin. But i always get "package-cleanup" notice.
i tried some ways like this
yum clean all
yum install php-mcrypt php-mbstring php-mysql phpmyadmin
But it's the same
I'm a newbie to linux. I don't know how to solve it. Please help me
PS: Another question … I don't know where to get the lasted repository for Centos 5.3 (32bit) . Now i make a stupid way and delete all repository at /etc/yum.repos.d . How can i get it back ?
My VPS log
[root@li95-9 ~]# yum install phpmyadmin
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.xmission.com
* base: mirror.stanford.edu
* epel: mirrors.kernel.org
* extras: mirrors.usc.edu
* updates: mirrors.xmission.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package phpMyAdmin.noarch 0:2.11.10-1.el5 set to be updated
--> Processing Dependency: php-mcrypt >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php-mbstring >= 4.1.0 for package: phpMyAdmin
--> Processing Dependency: php-mysql >= 4.1.0 for package: phpMyAdmin
--> Running transaction check
---> Package php-mbstring.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mbstring
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt
---> Package php-mysql.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated
---> Package php-mbstring.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mbstring
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
---> Package php-mysql.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mysql
---> Package php-pdo.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-pdo
--> Finished Dependency Resolution
php-mysql-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mysql-5.1.6-24.el5_4.5.i386 (updates)
php-mbstring-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mbstring-5.1.6-24.el5_4.5.i386 (updates)
php-pdo-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-pdo-5.1.6-24.el5_4.5.i386 (updates)
php-mcrypt-5.1.6-15.el5.centos.1.i386 from extras has depsolving problems
--> Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (extras)
Error: Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (extras)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mysql-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-pdo-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mbstring-5.1.6-24.el5_4.5.i386 (updates)
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.
[root@li95-9 ~]# yum install php-mcrypt php-mbstring php-mysql
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: mirrors.xmission.com
* base: mirror.stanford.edu
* epel: mirrors.kernel.org
* extras: mirrors.usc.edu
* updates: mirrors.xmission.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mbstring.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mbstring
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
--> Processing Dependency: libmcrypt.so.4 for package: php-mcrypt
---> Package php-mysql.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mysql
--> Processing Dependency: php-pdo for package: php-mysql
--> Running transaction check
---> Package libmcrypt.i386 0:2.5.8-4.el5.centos set to be updated
---> Package php-mbstring.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mbstring
---> Package php-mcrypt.i386 0:5.1.6-15.el5.centos.1 set to be updated
--> Processing Dependency: php-api = 20041225 for package: php-mcrypt
---> Package php-mysql.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-mysql
---> Package php-pdo.i386 0:5.1.6-24.el5_4.5 set to be updated
--> Processing Dependency: php-common = 5.1.6-24.el5_4.5 for package: php-pdo
--> Finished Dependency Resolution
php-mcrypt-5.1.6-15.el5.centos.1.i386 from extras has depsolving problems
--> Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (extras)
php-mysql-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mysql-5.1.6-24.el5_4.5.i386 (updates)
php-pdo-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-pdo-5.1.6-24.el5_4.5.i386 (updates)
php-mbstring-5.1.6-24.el5_4.5.i386 from updates has depsolving problems
--> Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mbstring-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-api = 20041225 is needed by package php-mcrypt-5.1.6-15.el5.centos.1.i386 (extras)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mysql-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-pdo-5.1.6-24.el5_4.5.i386 (updates)
Error: Missing Dependency: php-common = 5.1.6-24.el5_4.5 is needed by package php-mbstring-5.1.6-24.el5_4.5.i386 (updates)
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.
1 Reply
I'm follow the guide here to update php 5.1 to 5.3
That's why it's not compatibility with another repository . Then i modify it like this
rpm --import http://repo.webtatic.com/yum/RPM-GPG-KEY-webtatic-andy
wget -P /etc/yum.repos.d/ http://repo.webtatic.com/yum/webtatic.repo
yum --enablerepo=webtatic install php-mcrypt php-mbstring php-mysql phpmyadmin