system crash ,can't install anything now

Bug #374136 reported by cola
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
synaptic (Ubuntu)
Incomplete
Undecided
Unassigned

Bug Description

Binary package hint: phpmyadmin

Hi,
I was downloading phpmyadmin from syanapatic ,after some time electricity is gone.

Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done
The following partially installed packages will be configured:
  dbconfig-common libgd2-xpm libmcrypt4 libt1-5 php5-gd php5-mcrypt
  php5-mysql phpmyadmin
0 packages upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 0B of archives. After unpacking 0B will be used.
Writing extended state information... Done
Setting up dbconfig-common (1.8.40) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing dbconfig-common (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libgd2-xpm (2.0.36~rc1~dfsg-3ubuntu1) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing libgd2-xpm (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libmcrypt4 (2.5.7-5ubuntu1) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing libmcrypt4 (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libt1-5 (5.1.2-3) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing libt1-5 (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of php5-gd:
 php5-gd depends on libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-xpm is not configured yet.
 php5-gd depends on libt1-5 (>= 5.1.0); however:
  Package libt1-5 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 libmcrypt4; however:
  Package libmcrypt4 is not configured yet.
dpkg: error processing php5-mcrypt (--configure):
 dependency problems - leaving unconfigured
Setting up php5-mysql (5.2.6.dfsg.1-3ubuntu4.1) ...
No apport report written because MaxReports is reached already
                                                              No apport report written because MaxReports is reached already
                                            No apport report written because MaxReports is reached already
                          dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing php5-mysql (--configure):
 subprocess post-installation script returned error exit status 2
No apport report written because MaxReports is reached already
                                                              dpkg: dependency problems prevent configuration of phpmyadmin:
 phpmyadmin depends on php5-mysql | php5-mysqli; however:
  Package php5-mysql is not configured yet.
  Package php5-mysqli is not installed.
 phpmyadmin depends on php5-mcrypt; however:
  Package php5-mcrypt is not configured yet.
 phpmyadmin depends on dbconfig-common; however:
  Package dbconfig-common is not configured yet.
dpkg: error processing phpmyadmin (--configure):
 dependency problems - leaving unconfigured
No apport report written because MaxReports is reached already
                                                              Errors were encountered while processing:
 dbconfig-common
 libgd2-xpm
 libmcrypt4
 libt1-5
 php5-gd
 php5-mcrypt
 php5-mysql
 phpmyadmin
E: Sub-process /usr/bin/dpkg returned an error code (1)
A package failed to install. Trying to recover:
Setting up libt1-5 (5.1.2-3) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing libt1-5 (--configure):
 subprocess post-installation script returned error exit status 2
Setting up libgd2-xpm (2.0.36~rc1~dfsg-3ubuntu1) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing libgd2-xpm (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of php5-gd:
 php5-gd depends on libgd2-xpm (>= 2.0.36~rc1~dfsg); however:
  Package libgd2-xpm is not configured yet.
 php5-gd depends on libt1-5 (>= 5.1.0); however:
  Package libt1-5 is not configured yet.
dpkg: error processing php5-gd (--configure):
 dependency problems - leaving unconfigured
Setting up libmcrypt4 (2.5.7-5ubuntu1) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing libmcrypt4 (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of php5-mcrypt:
 php5-mcrypt depends on libmcrypt4; however:
  Package libmcrypt4 is not configured yet.
dpkg: error processing php5-mcrypt (--configure):
 dependency problems - leaving unconfigured
Setting up php5-mysql (5.2.6.dfsg.1-3ubuntu4.1) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing php5-mysql (--configure):
 subprocess post-installation script returned error exit status 2
Setting up dbconfig-common (1.8.40) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error
dpkg: error processing dbconfig-common (--configure):
 subprocess post-installation script returned error exit status 2
dpkg: dependency problems prevent configuration of phpmyadmin:
 phpmyadmin depends on php5-mysql | php5-mysqli; however:
  Package php5-mysql is not configured yet.
  Package php5-mysqli is not installed.
 phpmyadmin depends on php5-mcrypt; however:
  Package php5-mcrypt is not configured yet.
 phpmyadmin depends on dbconfig-common; however:
  Package dbconfig-common is not configured yet.
dpkg: error processing phpmyadmin (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 libt1-5
 libgd2-xpm
 php5-gd
 libmcrypt4
 php5-mcrypt
 php5-mysql
 dbconfig-common
 phpmyadmin
Reading package lists... Done
Building dependency tree
Reading state information... Done
Reading extended state information
Initializing package states... Done

ProblemType: Bug
Architecture: i386
DistroRelease: Ubuntu 9.04
Package: phpmyadmin 4:3.1.2-1
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SourcePackage: phpmyadmin
Uname: Linux 2.6.29-020629-generic i686

Revision history for this message
cola (gmspro) wrote :
Kees Cook (kees)
security vulnerability: yes → no
visibility: private → public
Revision history for this message
Michal Čihař (nijel) wrote :

Maybe synaptic messed up something? However this is definitely not a bug in phpMyAdmin as several other packages are affected too.

affects: phpmyadmin (Ubuntu) → synaptic (Ubuntu)
Revision history for this message
Jelle Foks (jellefoks) wrote :

When you see, for example:

Setting up dbconfig-common (1.8.40) ...
dpkg (subprocess): unable to execute post-installation script: Exec format error

Then the problem is probably that /var/lib/dpkg/info/dbconfig-common.postinst is not a runnable script (got corrupted by the crash).

I had something like that (in my case, the machine crashed during package installation, and the files ended up being 0 bytes), and ended up manually replacing the postrm and the postinst scripts of the offending packages, with a script that does nothing, then 'dpkg --purge' them to get rid of the packages, then re-install the packages.

dpkg really should allow a better way out of a situation like this (maybe it has, but I don't know how).

haks001 (hakso-sapto)
Changed in synaptic (Ubuntu):
status: New → Incomplete
Revision history for this message
ravipinto (ravipinto) wrote :

Hi all,

Just updating possible workaround. I was in a similar situation with regards to tt-mscorefonts-installer and unrar for Karmic Koala. I manually deleted files related to those packages from /var/lib/dpkg/info. viz.

$ cd /var/lib/dpkg/info
$ ls -l *ttf-mscore*
$ sudo rm *ttf-mscore*
$ ls -l *unrar*
$ sudo rm *unrar*
$ sudo apt-get update
$ sudo apt-get remove ttf-mscorefonts-installer unrar

It seemed to have resolved issue. However, if someone thinks that I have not done the right thing using the above methods, then please let me know.

HTH,
Ravi

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.