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).

-- 
system crash ,can't install anything now
https://bugs.launchpad.net/bugs/374136
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to