Forum

Huge problem with running upgrade

Brian Zerangue
12 January 2013, 06:39
I followed the upgrade instructions to the letter. And I get the following...

Selecting previously unselected package hiawatha.
(Reading database ... 33131 files and directories currently installed.)
Preparing to replace hiawatha 8.7 (using hiawatha_8.7_i386.deb) ...
/usr/sbin/hiawatha not found.
invoke-rc.d: initscript hiawatha, action "stop" failed.
dpkg: warning: subprocess old pre-removal script returned error exit status 1
dpkg - trying script from the new package instead ...
/usr/sbin/hiawatha not found.
invoke-rc.d: initscript hiawatha, action "stop" failed.
dpkg: error processing hiawatha_8.7_i386.deb (--install):
subprocess new pre-removal script returned error exit status 1
/usr/sbin/hiawatha not found.
invoke-rc.d: initscript hiawatha, action "start" failed.
dpkg: error while cleaning up:
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
hiawatha_8.7_i386.deb

---

I've tried to remove the package as well, and I get,

dpkg: error processing hiawatha (--remove):
Package is in a very bad inconsistent state - you should
reinstall it before attempting a removal.
Errors were encountered while processing:
hiawatha

---

Do you know anyway that I can remove hiawatha and reinstall. My live server is down. Any help would be appreciated.


Hiawatha version: Hiawatha 8.6 (upgrading to 8.7)
Operating System: Ubuntu 12.04 LTS
Brian Zerangue
12 January 2013, 07:14
Nothing would work. Finally, I stumbled across this, local for the following directory...

/var/lib/dpkg/info/

I removed all the files named hiawatha, and this reinstalled. Everything installed OK after that.
Hugo Leisink
12 January 2013, 13:38
From where did you download the package? The best way to do is to create a Debian package yourself via the extra/make_debian_package script.
Brian Zerangue
13 January 2013, 01:30
> From where did you download the package?

http://www.hiawatha-webserver.org/files/hiawatha-8.7.tar.gz

> The best way to do is to create a Debian package yourself via the extra/make_debian_package script.

That's what I did and I got the following error.

I did the same thing on another server that was also running Hiawatha 8.6 with Ubuntu 12.04 LTS as well and upgraded to 8.7 without a hitch.

Weird. There must have been something corrupt on this specific server. I keep rebuilding the script. Then I re-downloaded and nothing worked. It only work until I removed those hiawatha files from /var/lib/dpkg/info/. After I did that, I reinstalled by the same process with creating the Debian package and it installed fine.
Hugo Leisink
13 January 2013, 07:09
Ok. I consider this as an issue on your system and not as a Hiawatha issue.
This topic has been closed.