有人可以帮助我这个CentOS 5的问题吗?
我试图安装php-imap,我试过了
yum install php-imap
但我得到以下输出:
Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile * base: centos.hostingxtreme.com * epel: mirror.steadfast.net * extras: mirror.team-cymru.org * updates: mirror.beyondhosting.net Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-imap.x86_64 0:5.1.6-44.el5_10 set to be updated --> Processing Dependency: php-common = 5.1.6-44.el5_10 for package: php-imap --> Finished Dependency Resolution php-imap-5.1.6-44.el5_10.x86_64 from updates has depsolving problems --> Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-imap-5.1.6-44.el5_10.x86_64 (updates) Error: Missing Dependency: php-common = 5.1.6-44.el5_10 is needed by package php-imap-5.1.6-44.el5_10.x86_64 (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.
我已经安装了php-common,我运行了“yum install php-common”,得到如下的输出结果
Loaded plugins: fastestmirror, priorities, security Loading mirror speeds from cached hostfile * base: centos.hostingxtreme.com * epel: mirror.steadfast.net * extras: mirror.team-cymru.org * updates: mirror.beyondhosting.net Setting up Install Process Package matching php-common-5.1.6-44.el5_10.x86_64 already installed. Checking for update. Nothing to do
我怎样才能解决这个问题?
我怀疑你在RPM数据库或yumcaching中的某处损坏了某些东西。 我会把它们全部清理出来,重build它们。
首先是RPM db:
rm -f /var/lib/rpm/__db.* rpm --rebuilddb # In later versions, this command changed to rpmdb --rebuilddb
然后yumcaching:
yum clean all
然后将所有内容与远程存储库中的最新内容重新同步:
yum distro-sync
最后,再次尝试安装该软件包。