Skip to content

Instantly share code, notes, and snippets.

@joar
Created October 13, 2010 10:03
Show Gist options
  • Save joar/623774 to your computer and use it in GitHub Desktop.
Save joar/623774 to your computer and use it in GitHub Desktop.

Forum Post

http://ubuntuforums.org/showpost.php?p=9964670&postcount=19

Damaged Packages

 php5-cgi
 php5-cli
 libapache2-mod-php5
 php5-mysql
 php5-gd
 php5-suhosin
 php5-curl
 php5-memcache
 php5-mcrypt

Error example

jwandborg@sophie:~/git/php-file-uploads$ sudo aptitude reinstall php5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
The following packages will be REINSTALLED:
  php5-dev
The following partially installed packages will be configured:
  libapache2-mod-php5 php5-cgi php5-cli php5-curl php5-gd php5-mcrypt php5-memcache php5-mysql
  php5-suhosin
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 424 not upgraded.
Need to get 408kB of archives. After unpacking 0B will be used.
Writing extended state information... Done
Get:1 http://http.us.debian.org unstable/main php5-dev 5.3.2-2 [408kB]
Fetched 408kB in 0s (681kB/s)
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
(Reading database ... 41597 files and directories currently installed.)
Preparing to replace php5-dev 5.3.2-2 (using .../php5-dev_5.3.2-2_amd64.deb) ...
Unpacking replacement php5-dev ...
Processing triggers for man-db ...
Setting up libapache2-mod-php5 (5.3.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libapache2-mod-php5 (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up php5-cgi (5.3.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-cgi (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up php5-cli (5.3.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-cli (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-curl:
 php5-curl depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-curl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-gd:
 php5-gd depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-gd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mcrypt:
 php5-mcrypt depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-mcrypt (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-memcache:
 php5-memcache depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-memcache (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mysql:
 php5-mysql depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-mysql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-suhosin:
 php5-suhosin depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-suhosin (--configure):
 dependency problems - leaving unconfigured
Setting up php5-dev (5.3.2-2) ...
Errors were encountered while processing:
 libapache2-mod-php5
 php5-cgi
 php5-cli
 php5-curl
 php5-gd
 php5-mcrypt
 php5-memcache
 php5-mysql
 php5-suhosin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install.  Trying to recover:
Setting up php5-cgi (5.3.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-cgi (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up php5-cli (5.3.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing php5-cli (--configure):
 subprocess installed post-installation script returned error exit status 1
Setting up libapache2-mod-php5 (5.3.2-2) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing libapache2-mod-php5 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of php5-mysql:
 php5-mysql depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-mysql (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-gd:
 php5-gd depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-gd (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-suhosin:
 php5-suhosin depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-suhosin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-curl:
 php5-curl depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-curl (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-memcache:
 php5-memcache depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-memcache (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of php5-mcrypt:
 php5-mcrypt depends on phpapi-20090626; however:
  Package phpapi-20090626 is not installed.
  Package libapache2-mod-php5 which provides phpapi-20090626 is not configured yet.
  Package php5-cli which provides phpapi-20090626 is not configured yet.
  Package php5-cgi which provides phpapi-20090626 is not configured yet.
dpkg: error processing php5-mcrypt (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 php5-cgi
 php5-cli
 libapache2-mod-php5
 php5-mysql
 php5-gd
 php5-suhosin
 php5-curl
 php5-memcache
 php5-mcrypt
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
Reading task descriptions... Done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment