PC crashed during "apt-get install"

Florian Diesch diesch at spamfence.net
Sat Nov 28 22:37:55 UTC 2009


Alan McKay <alan.mckay at gmail.com> writes:

> Hey folks,
>
> I was doing "apt-get install ntop" and something unrelated to this
> activity caused my PC to hang.
>
> Now I can not install it nor remove it  - it is stuck in between
>
> I should mention that I've only been using Ubuntu for about a day now.
>  I've got tonnes of experience with the Fedora / Redhat distros and
> decided it was time I learn something about Debian/Ubuntu.  Looks like
> I'll accomplish that :-)
>
> I've been googling for about a half hour now but cannot find any way
> to correct this :
>
> root at alan-ubuntu:/usr/share/media/videos/Muppets# apt-get install ntop
> Reading package lists... Done
> Building dependency tree
> Reading state information... Done
> ntop is already the newest version.
> 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
> 1 not fully installed or removed.
> After this operation, 0B of additional disk space will be used.
> Setting up ntop (3:3.3-11ubuntu1) ...
> dpkg (subprocess): unable to execute installed post-installation
> script: Exec format error
> dpkg: error processing ntop (--configure):
>  subprocess installed post-installation script returned error exit status 2
> Errors were encountered while processing:
>  ntop
> E: Sub-process /usr/bin/dpkg returned an error code (1)

I guess /var/lib/dpkg/info/ntop.postinst is an empty file.

Run
  echo '#!/bin/sh'| sudo tee /var/lib/dpkg/info/ntop.postinst
  sudo apt-get install --reinstall ntop



   Florian
-- 
<http://www.florian-diesch.de/software/pdfrecycle/>




More information about the ubuntu-users mailing list