Public bug reported: I entered
sudo apt-get install apache2 php5 libapache2-mod-php5 mysql-server php5-mysql into a teminal window and the following output shows the problem: ... Setting up mysql-server-core-5.5 (5.5.31-0ubuntu0.13.04.1) ... Setting up mysql-server-5.5 (5.5.31-0ubuntu0.13.04.1) ... AppArmor parser error for /etc/apparmor.d/usr.sbin.mysqld in /etc/apparmor.d/usr.sbin.mysqld at line 9: Could not open 'abstractions/mysql' mysql start/running, process 24664 Setting up php5-common (5.4.9-4ubuntu2.1) ... Not replacing deleted config file /etc/php5/mods-available/pdo.ini ERROR: /etc/php5/mods-available/pdo.ini does not exist dpkg: error processing php5-common (--configure): subprocess installed post-installation script returned error exit status 2 dpkg: dependency problems prevent configuration of php5-cli: php5-cli depends on php5-common (= 5.4.9-4ubuntu2.1); however: Package php5-common is not configured yet. dpkg: error processing php5-cli (--configure): dependency problems - leaving unconfigured Setting up apache2.2-bin (2.2.22-6ubuntu5) ... No apport report written because the error message indicates it's a follow-up error from a previous failure. Setting up apache2-utils (2.2.22-6ubuntu5) ... Setting up apache2.2-common (2.2.22-6ubuntu5) ... dpkg: dependency problems prevent configuration of libapache2-mod-php5: libapache2-mod-php5 depends on php5-common (= 5.4.9-4ubuntu2.1); however: Package php5-common is not configured yet. dpkg: error processing libapache2-mod-php5 (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent configuration of php5-mysql: php5-mysql depends on phpapi-20100525; however: Package phpapi-20100525 is not installed. Package libapache2-mod-php5filter which provides phpapi-20100525 is not installed. Package libapache2-mod-php5 which provides phpapi-20100525 is not configured yet. Package php5-cli which provides phpapi-20100525 is not configured yet. Package libphp5-embed which provides phpapi-20100525 is not installed. php5-mysql depends on php5-common (= 5.4.9-4ubuntu2.1); however: Package php5-common is not configured yet. dpkg: error processing php5-mysql (--configure): dependency problems - leaving unconfigured dpkg: dependency problems prevent cNo apport report written because the error message indicates it's a follow-up error from a previous failure. No apport report written because MaxReports has already been reached No apport report written because MaxReports has already been reached onfiguration of php5: php5 depends on libapache2-mod-php5 (>= 5.4.9-4ubuntu2.1) | libapache2-mod-php5filter (>= 5.4.9-4ubuntu2.1) | php5-cgi (>= 5.4.9-4ubuntu2.1) | php5-fpm (>= 5.4.9-4ubuntu2.1); however: Package libapache2-mod-php5 is not configured yet. Package libapache2-mod-php5filter is not installed. Package php5-cgi is not installed. Package php5-fpm is not installed. php5 depends on php5-common (>= 5.4.9-4ubuntu2.1); however: Package php5-common is not configured yet. dpkg: error processing php5 (--configure): dependency problems - leaving unconfigured Processing triggers for ureadahead ... Setting up mysql-server (5.5.31-0ubuntu0.13.04.1) ... Processing triggers for ufw ... Setting up apache2-mpm-prefork (2.2.22-6ubuntu5) ... egrep: /etc/apache2/mods-enabled/*.load: No such file or directory * Starting web server apache2 Syntax error on line 189 of /etc/apache2/apache2.conf: Invalid command 'Order', perhaps misspelled or defined by a module not included in the server configuration Action 'start' failed. The Apache error log may have more information. [fail] invoke-rc.d: initscript apache2, action "start" failed. Setting up apache2 (2.2.22-6ubuntu5) ... Errors were encountered while processing: php5-common php5-cli libapache2-mod-php5 php5-mysql php5 E: Sub-process /usr/bin/dpkg returned an error code (1) I have been trying for a number of days to install mySQL and associated files to run a website from my PC to no avail. Everything else works well, but this problem keeps rearing its head. ProblemType: Package DistroRelease: Ubuntu 13.04 Package: php5-common 5.4.9-4ubuntu2.1 ProcVersionSignature: Ubuntu 3.8.0-25.37-generic 3.8.13 Uname: Linux 3.8.0-25-generic x86_64 NonfreeKernelModules: nvidia ApportVersion: 2.9.2-0ubuntu8.1 Architecture: amd64 Date: Sat Jun 15 16:10:15 2013 ErrorMessage: subprocess installed post-installation script returned error exit status 2 InstallationDate: Installed on 2013-06-07 (8 days ago) InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424) MarkForUpload: True SourcePackage: php5 Title: package php5-common 5.4.9-4ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: php5 (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-package raring -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to php5 in Ubuntu. https://bugs.launchpad.net/bugs/1191329 Title: package php5-common 5.4.9-4ubuntu2.1 failed to install/upgrade: subprocess installed post-installation script returned error exit status 2 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/php5/+bug/1191329/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs