我正在尝试安装 iRedMail 邮件服务器,但是当我运行安装脚本时,收到以下错误消息:
The following packages have unmet dependencies:
php5-common: Conflicts: php5-mhash
php5-mhash: Depends: phpapi-20060613
Depends: php5-common (= 5.2.6.dfsg.1-3ubuntu4.5) but 5.3.2-1ubuntu4.2 is to be installed
E: Broken packages
我不太清楚这是什么意思。我试过重新安装 php5-common,但没什么效果。
完整日志如下。丹,谢谢你的帮助
。
< INFO > Installing package(s): apache2 apache2-mpm-prefork apache2.2-common libapache2-mod-php5 libapache2-mod-auth-mysql php5-cli php5-imap php5-gd php5-mcrypt php5-mysql php5-ldap php5-mhash php-pear postfix postfix-pcre awstats mysql-server-5.1 mysql-client-5.1 postfix-ldap slapd ldap-utils libnet-ldap-perl postfix-policyd dovecot-imapd dovecot-pop3d amavisd-new libcrypt-openssl-rsa-perl libmail-dkim-perl clamav-freshclam clamav-daemon spamassassin altermime libmail-spf-perl python-ldap libapache2-mod-wsgi python-mysqldb python-ldap python-jinja2 python-netifaces python-webpy python-ldap bzip2 acl patch cron tofrodos php-net-ldap2 phpldapadmin phpmyadmin Reading package lists... Done Building dependency tree Reading state information... Done apache2 is already the newest version. apache2-mpm-prefork is already the newest version. apache2-mpm-prefork set to manually installed. apache2.2-common is already the newest version. apache2.2-common set to manually installed. libapache2-mod-php5 is already the newest version. libapache2-mod-php5 set to manually installed. php5-gd is already the newest version. php5-gd set to manually installed. php5-mcrypt is already the newest version. php5-mcrypt set to manually installed. php5-mysql is already the newest version. mysql-server-5.1 is already the newest version. mysql-server-5.1 set to manually installed. mysql-client-5.1 is already the newest version. mysql-client-5.1 set to manually installed. bzip2 is already the newest version. acl is already the newest version. cron is already the newest version. phpmyadmin is already the newest version. Some packages could not be installed. This may mean that you have requested an impossible situation or if you are using the unstable distribution that some required packages have not yet been created or been moved out of Incoming. The following information may help to resolve the situation: The following packages have unmet dependencies: php5-common: Conflicts: php5-mhash php5-mhash: Depends: phpapi-20060613 Depends: php5-common (= 5.2.6.dfsg.1-3ubuntu4.5) but 5.3.2-1ubuntu4.2 is to be installed E: Broken packages < ERROR > Installation failed, please check the terminal output.
答案1
您应该清理一下sources.list
文件。看来 PHP 5.2.6 和 5.3.2 之间存在一些软件包冲突。
从您的中删除非官方软件包源后sources.list
,再次运行aptitude update
并启动 iRedmail 安装脚本。