debian wheezy/sid 上有 php5-mysqlnd 吗?

debian wheezy/sid 上有 php5-mysqlnd 吗?

我正在尝试在全新安装的 Wheezy 上安装 php5-mysqlnd(/etc/debian_version 将其称为 wheezy/sid),但遇到了一个问题:

root@debian:/var/www/lottery1# apt-get install php5-mysqlnd
Reading package lists... Done
Building dependency tree       
Reading state information... Done
php5-mysqlnd is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? Y
Setting up php5-mysqlnd (5.4.0-3) ...
ucfr: Attempt from package php5-mysqlnd  to take /etc/php5/mods-available/mysql.ini away from package php5-mysql
ucfr: Aborting.
dpkg: error processing php5-mysqlnd (--configure):
 subprocess installed post-installation script returned error exit status 4
Processing triggers for libapache2-mod-php5 ...
configured to not write apport reports
                                      Reloading web server config: apache2.
Errors were encountered while processing:
 php5-mysqlnd
E: Sub-process /usr/bin/dpkg returned an error code (1)

似乎与 php5-mysql 包存在某种冲突,但即使删除(使用 --purge)php5-mysql 包后仍然出现此错误。

有什么想法吗?我正在尝试运行大量使用 mysqli_result::fetch_all() 的 Web 工具。

谢谢!

答案1

因此,在删除 php5-mysql 后,我必须强制删除 php5-mysqlnd,然后我必须清除 php5-mysql,然后我必须清除 php5-mysqlnd,然后我才能安装 php5-mysqlnd。

dpkg --remove --force-remove-reinstreq php5-mysqlnd
dpkg --purge php5-mysql 
dpkg --purge php5-mysqlnd 

只有一次dpkg -l | grep php5-mysql没有输出,我才能apt-get install php5-mysqlnd让它工作。

相关内容