Can't install sendmail - php dependency problems ???
Moderator: General Moderators
Can't install sendmail - php dependency problems ???
I am running Ubuntu 13.04 - No Windows
My LAMP system works fine. I am trying to install sendmail and get the errors as below.
I'm afraid to re-install PHP w/o knowing what I am doing. Any clues as to how to fix this??
Thanks, R.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up sendmail (8.14.4-2.1ubuntu2) ...
Errors were encountered while processing:
php5-common
php5-cli
libapache2-mod-php5
php5-curl
php5-gd
php5-intl
php5-mysql
php5-pspell
php5-recode
php5-snmp
php5-sqlite
php5-tidy
php5-xmlrpc
php5-xsl
php-pear
php5
E: Sub-process /usr/bin/dpkg returned an error code (1)
My LAMP system works fine. I am trying to install sendmail and get the errors as below.
I'm afraid to re-install PHP w/o knowing what I am doing. Any clues as to how to fix this??
Thanks, R.
dpkg: error processing php5 (--configure):
dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
Setting up sendmail (8.14.4-2.1ubuntu2) ...
Errors were encountered while processing:
php5-common
php5-cli
libapache2-mod-php5
php5-curl
php5-gd
php5-intl
php5-mysql
php5-pspell
php5-recode
php5-snmp
php5-sqlite
php5-tidy
php5-xmlrpc
php5-xsl
php-pear
php5
E: Sub-process /usr/bin/dpkg returned an error code (1)
Re: Can't install sendmail - php dependency problems ???
What command did you run? If you didn't already have sendmail, which would be surprising, then all you needed to do was "apt-get install <preferred sendmail package>" (such as courier, exim4, postfix, qmail, or vanilla sendmail).
Re: Can't install sendmail - php dependency problems ???
rick@rick-Latitude:~$ sudo apt-get install sendmail <=========================
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libopenjpeg2
Use 'apt-get autoremove' to remove it.
Suggested packages:
sendmail-doc rmail
The following NEW packages will be installed:
sendmail
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
Need to get 0 B/3,480 B of archives.
After this operation, 250 kB of additional disk space will be used.
Selecting previously unselected package sendmail.
(Reading database ... 279994 files and directories currently installed.)
Unpacking sendmail (from .../sendmail_8.14.4-2.1ubuntu2_all.deb) ...
Setting up php5-common (5.4.9-4ubuntu2.4) ...
ERROR: pdo module symlink already exists in /etc/php5/conf.d with different content
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.9-4ubuntu2.4); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.9-4ubuntu2.4); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency and so on for the list as above
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
libopenjpeg2
Use 'apt-get autoremove' to remove it.
Suggested packages:
sendmail-doc rmail
The following NEW packages will be installed:
sendmail
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
16 not fully installed or removed.
Need to get 0 B/3,480 B of archives.
After this operation, 250 kB of additional disk space will be used.
Selecting previously unselected package sendmail.
(Reading database ... 279994 files and directories currently installed.)
Unpacking sendmail (from .../sendmail_8.14.4-2.1ubuntu2_all.deb) ...
Setting up php5-common (5.4.9-4ubuntu2.4) ...
ERROR: pdo module symlink already exists in /etc/php5/conf.d with different content
dpkg: error processing php5-common (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-cli:
php5-cli depends on php5-common (= 5.4.9-4ubuntu2.4); however:
Package php5-common is not configured yet.
dpkg: error processing php5-cli (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libapache2-mod-php5:
libapache2-mod-php5 depends on php5-common (= 5.4.9-4ubuntu2.4); however:
Package php5-common is not configured yet.
dpkg: error processing libapache2-mod-php5 (--configure):
dependency and so on for the list as above
Re: Can't install sendmail - php dependency problems ???
How did you install PHP the first time, and what have you done with it since? Maybe you installed from from source packages and then tried to apt-get install it again?
Re: Can't install sendmail - php dependency problems ???
the error indicate you had a problem installing php5-common. Now apt will try to configure it every run. You most likely need to remove /etc/php5/conf.d/pdo.{ini,load} and then run
dpkg-reconfigure php5-common
dpkg-reconfigure php5-common
Re: Can't install sendmail - php dependency problems ???
Since I don't know what I'm doing here I'm being very cautious
As below - Remove pdo.ini in both locations???
Also pdo.load is not found anywhere.
Output from 'Find':
rick@rick-Latitude:/etc/php5/conf.d$ sudo find / -iname pdo.ini
/etc/php5/mods-available/pdo.ini <========================= found 1
/usr/share/php5/common/pdo.ini <========================= found 2
rick@rick-Latitude:/etc/php5/conf.d$ sudo find / -iname pdo.load
rick@rick-Latitude:/etc/php5/conf.d$ <====================== none found
As below - Remove pdo.ini in both locations???
Also pdo.load is not found anywhere.
Output from 'Find':
rick@rick-Latitude:/etc/php5/conf.d$ sudo find / -iname pdo.ini
/etc/php5/mods-available/pdo.ini <========================= found 1
/usr/share/php5/common/pdo.ini <========================= found 2
rick@rick-Latitude:/etc/php5/conf.d$ sudo find / -iname pdo.load
rick@rick-Latitude:/etc/php5/conf.d$ <====================== none found
Re: Can't install sendmail - php dependency problems ???
No, there's a symlink in /etc/php5/conf.d (probably broken), judging from the following error:
ERROR: pdo module symlink already exists in /etc/php5/conf.d with different content
That symlink you need to remove. It's surprising, though, that it's not shown in find output. Can you post the output of ls -lR /etc/php5 ?
ERROR: pdo module symlink already exists in /etc/php5/conf.d with different content
That symlink you need to remove. It's surprising, though, that it's not shown in find output. Can you post the output of ls -lR /etc/php5 ?
Re: Can't install sendmail - php dependency problems ???
Sombody asked before how I installed PHP. Well I did the Ubuntu LAMP installation.
Here is what I got.
rick@rick-Latitude:~$ cd /etc/php5
rick@rick-Latitude:/etc/php5$ ls
apache2 cli conf.d mods-available
rick@rick-Latitude:/etc/php5$ ls -iR <==========================
.:
15469214 apache2 15469218 cli 15469212 conf.d 15469213 mods-available
./apache2:
15469217 conf.d 15467808 php.ini 15469353 php.ini~
./cli:
15469219 conf.d 15469411 php.ini 15469225 php.ini~
./conf.d:
15469252 10-pdo.ini 15469264 20-pdo_mysql.ini 15469254 20-xmlrpc.ini
15469245 20-curl.ini 15469248 20-pdo_sqlite.ini 15469270 20-xsl.ini
15469256 20-gd.ini 15469272 20-pspell.ini 15469276 imagick.ini
15469277 20-intl.ini 15469262 20-recode.ini 15469268 imap.ini
15469221 20-memcache.ini 15469247 20-snmp.ini 15469244 mcrypt.ini
15469453 20-mysqli.ini 15469274 20-sqlite3.ini 15469250 ming.ini
15469266 20-mysql.ini 15469258 20-tidy.ini 15469260 ps.ini
./mods-available:
15469249 curl.ini 15469220 pdo.ini 15469267 sqlite3.ini
15469251 gd.ini 15469259 pdo_mysql.ini 15469271 tidy.ini
15469253 intl.ini 15469269 pdo_sqlite.ini 15469273 xmlrpc.ini
15469246 memcache.ini 15469261 pspell.ini 15469275 xsl.ini
15469257 mysqli.ini 15469263 recode.ini
15469255 mysql.ini 15469265 snmp.ini
rick@rick-Latitude:/etc/php5$
Here is what I got.
rick@rick-Latitude:~$ cd /etc/php5
rick@rick-Latitude:/etc/php5$ ls
apache2 cli conf.d mods-available
rick@rick-Latitude:/etc/php5$ ls -iR <==========================
.:
15469214 apache2 15469218 cli 15469212 conf.d 15469213 mods-available
./apache2:
15469217 conf.d 15467808 php.ini 15469353 php.ini~
./cli:
15469219 conf.d 15469411 php.ini 15469225 php.ini~
./conf.d:
15469252 10-pdo.ini 15469264 20-pdo_mysql.ini 15469254 20-xmlrpc.ini
15469245 20-curl.ini 15469248 20-pdo_sqlite.ini 15469270 20-xsl.ini
15469256 20-gd.ini 15469272 20-pspell.ini 15469276 imagick.ini
15469277 20-intl.ini 15469262 20-recode.ini 15469268 imap.ini
15469221 20-memcache.ini 15469247 20-snmp.ini 15469244 mcrypt.ini
15469453 20-mysqli.ini 15469274 20-sqlite3.ini 15469250 ming.ini
15469266 20-mysql.ini 15469258 20-tidy.ini 15469260 ps.ini
./mods-available:
15469249 curl.ini 15469220 pdo.ini 15469267 sqlite3.ini
15469251 gd.ini 15469259 pdo_mysql.ini 15469271 tidy.ini
15469253 intl.ini 15469269 pdo_sqlite.ini 15469273 xmlrpc.ini
15469246 memcache.ini 15469261 pspell.ini 15469275 xsl.ini
15469257 mysqli.ini 15469263 recode.ini
15469255 mysql.ini 15469265 snmp.ini
rick@rick-Latitude:/etc/php5$
Re: Can't install sendmail - php dependency problems ???
I actually asked for ls -lR (l is a lowecase L). However even what you have posted show there's a file 10-pdo.ini in conf.d
That file you need to remove: rm /etc/php5/conf.d/10-pdo.ini
That file you need to remove: rm /etc/php5/conf.d/10-pdo.ini
Re: Can't install sendmail - php dependency problems ???
hi,
I deleted that file and did dpkg-reconfigure php5-common. I got this error code php5-common is broken or not fully installed.
I then re-installed php5-common and got this error E: Internal Error, No file name for php5-common:amd64.
Does this mean I installed php5 as part of LAMP incorrectly? Can I safely re-install php5 w/o screwing up the rest of LAMP somehow?
Sorry about th Ls -iR, was typo. Here is the result of ls -iR w/o 10-
rick@rick-Latitude:/etc/php5$ ls -iR
.:
15469214 apache2 15469218 cli 15469212 conf.d 15469213 mods-available
./apache2:
15469217 conf.d 15467808 php.ini 15469353 php.ini~
./cli:
15469219 conf.d 15469411 php.ini 15469225 php.ini~
./conf.d:
15469245 20-curl.ini 15469248 20-pdo_sqlite.ini 15469270 20-xsl.ini
15469256 20-gd.ini 15469272 20-pspell.ini 15469276 imagick.ini
15469277 20-intl.ini 15469262 20-recode.ini 15469268 imap.ini
15469221 20-memcache.ini 15469247 20-snmp.ini 15469244 mcrypt.ini
15469453 20-mysqli.ini 15469274 20-sqlite3.ini 15469250 ming.ini
15469266 20-mysql.ini 15469258 20-tidy.ini 15469260 ps.ini
15469264 20-pdo_mysql.ini 15469254 20-xmlrpc.ini
./mods-available:
15469249 curl.ini 15469220 pdo.ini 15469267 sqlite3.ini
15469251 gd.ini 15469259 pdo_mysql.ini 15469271 tidy.ini
15469253 intl.ini 15469269 pdo_sqlite.ini 15469273 xmlrpc.ini
15469246 memcache.ini 15469261 pspell.ini 15469275 xsl.ini
15469257 mysqli.ini 15469263 recode.ini
15469255 mysql.ini 15469265 snmp.ini
rick@rick-Latitude:/etc/php5$
I deleted that file and did dpkg-reconfigure php5-common. I got this error code php5-common is broken or not fully installed.
I then re-installed php5-common and got this error E: Internal Error, No file name for php5-common:amd64.
Does this mean I installed php5 as part of LAMP incorrectly? Can I safely re-install php5 w/o screwing up the rest of LAMP somehow?
Sorry about th Ls -iR, was typo. Here is the result of ls -iR w/o 10-
rick@rick-Latitude:/etc/php5$ ls -iR
.:
15469214 apache2 15469218 cli 15469212 conf.d 15469213 mods-available
./apache2:
15469217 conf.d 15467808 php.ini 15469353 php.ini~
./cli:
15469219 conf.d 15469411 php.ini 15469225 php.ini~
./conf.d:
15469245 20-curl.ini 15469248 20-pdo_sqlite.ini 15469270 20-xsl.ini
15469256 20-gd.ini 15469272 20-pspell.ini 15469276 imagick.ini
15469277 20-intl.ini 15469262 20-recode.ini 15469268 imap.ini
15469221 20-memcache.ini 15469247 20-snmp.ini 15469244 mcrypt.ini
15469453 20-mysqli.ini 15469274 20-sqlite3.ini 15469250 ming.ini
15469266 20-mysql.ini 15469258 20-tidy.ini 15469260 ps.ini
15469264 20-pdo_mysql.ini 15469254 20-xmlrpc.ini
./mods-available:
15469249 curl.ini 15469220 pdo.ini 15469267 sqlite3.ini
15469251 gd.ini 15469259 pdo_mysql.ini 15469271 tidy.ini
15469253 intl.ini 15469269 pdo_sqlite.ini 15469273 xmlrpc.ini
15469246 memcache.ini 15469261 pspell.ini 15469275 xsl.ini
15469257 mysqli.ini 15469263 recode.ini
15469255 mysql.ini 15469265 snmp.ini
rick@rick-Latitude:/etc/php5$
Re: Can't install sendmail - php dependency problems ???
I've never seen errors you're mentioning. At this stage I'd try to purge (not simply remove) all php5 packages, update apt cache and install php5 again.Does this mean I installed php5 as part of LAMP incorrectly? Can I safely re-install php5 w/o screwing up the rest of LAMP somehow?
Re: Can't install sendmail - php dependency problems ???
Welllll,
I purged php5-common and the other php5 files including phpmyadmin. Still getting errors, even when trying to purge files. Re-installed. Other errors similar to previous. Phpmyadmin won't work. Even got a system error.
So - going to go back to square 1 and dump Ubuntu 13.04 and do a fresh new install of 12.10.
Thanks for your time and help people.
I purged php5-common and the other php5 files including phpmyadmin. Still getting errors, even when trying to purge files. Re-installed. Other errors similar to previous. Phpmyadmin won't work. Even got a system error.
So - going to go back to square 1 and dump Ubuntu 13.04 and do a fresh new install of 12.10.
Thanks for your time and help people.
Re: Can't install sendmail - php dependency problems ???
14.04 is latest LTS. Any reason you're rolling back to 12.10? I believe support has ended (18 months, no?)
Re: Can't install sendmail - php dependency problems ???
Also, I don't know if this will be relevant to you or not, but I've had problems when installing LAMP stack via tasksel but never when using aptitude directly.