I had a problem on ubuntu when running "sudo apt-get dist-upgrade" and wanted to report how I solved it. Hopefully this helps anybody with similar problems.
I always got the error message:
Code:
Setting up libxml-sax-perl (0.96+dfsg-2) ...
dpkg (subprocess): unable to execute installed post-installation script: Exec format error
Hi guys!
I appear to have an issue with a broken package. I'm using 12.04 LTS on an MSI netbook and every time I install a new package I get this error:
Setting up isc-dhcp-server (4.1.ESV-R4-0ubuntu5.2) ...
start: Job failed to start
invoke-rc.d: initscript isc-dhcp-server, action "start" failed.
During installation of apt-fast the screen looped and after a while I closed the wind
sudo rm /var/lib/dpkg/lock
sudo dpkg --configure -a
Setting up apt-fast (1.7.2-1~precise1) ...
debconf: DbDriver "config": /var/cache/debconf/config.dat is locked by another process: Resource temporarily unavailable
dpkg: error processing apt-fast (--configure):
subprocess installed post-inst
I'm getting this error when ever I install any packages via apt-get:
hostname: Name or service not known
dpkg: error processing ssmtp (--configure):
subprocess installed post-installation script returned error exit status 1
Setting up libt1-5 (5.1.2-3.4ubuntu1) ...
Setting up php5-gd (5.3.10-1ubuntu3.2) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
Error
When I try to install (or reinstall) smokeping, I have the following:
The following packages will be REINSTALLED:
smokeping
0 packages upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 6 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Setting up smokeping (2.6.7-1) ...
I'm trying to install MySQL 5.5 on Ubuntu 12.04, but I'm stuck with this error:
Setting up mysql-server-5.5 (5.5.24-0ubuntu0.12.04.1) ...
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent co
When I tried to do a upgrade on all my packages, it aborted mid-way and got this error:
Code:
Setting up initscripts (2.88dsf-13.10ubuntu4.1) ...
/var/lib/dpkg/info/initscripts.postinst: 169: update-rc.d: not found
dpkg: error processing initscripts (--configure):
subprocess installed post-installation script returned error exit status 127
Errors were encountered while processing:
start: Job failed to start
invoke-rc.d: initscript mysql, action "start" failed.
dpkg: error processing mysql-server-5.5 (--configure):
subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
mysql-server depends on mysql-server-5.5; however:
Package mysql-server-5.5 is not configured yet.
dpkg: error processin
I get the following error when installing Tomcat7:
Setting up tomcat7 (7.0.26-1ubuntu1.1) ...
chmod: cannot access `/etc/tomcat7/tomcat-users.xml': No such file or directory
dpkg: error processing tomcat7 (--configure):
subprocess installed post-installation script returned error exit status 1
No apport report written because MaxReports is reached already