![无法安装或删除软件包 12.10](https://linux22.com/image/832257/%E6%97%A0%E6%B3%95%E5%AE%89%E8%A3%85%E6%88%96%E5%88%A0%E9%99%A4%E8%BD%AF%E4%BB%B6%E5%8C%85%2012.10.png)
由于之前的配置问题,无法安装或卸载软件包。我尝试了 sudo apt-get -f install。没有用。尝试了 sudo apt-get --purge remove php5-xdebug。没有变化。感谢任何帮助。
$ sudo apt-get install php5-xdebug
Reading package lists... Done
Building dependency tree
Reading state information... Done
php5-xdebug is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 10 not upgraded.
3 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-xdebug (2.2.1-1) ...
ERROR: /etc/php5/mods-available/xdebug.ini does not exist
dpkg: error processing php5-xdebug (--configure):
subprocess installed post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of php-codecoverage:
php-codecoverage depends on php5-xdebug; however:
Package php5-xdebug is not configured yet.
答案1
尝试手工制作/etc/php5/mods-available/xdebug.ini
,然后清除包,然后sudo apt-get -f install
。希望对你有用。