package hobbit-client 4.2.0.dfsg-10 failed to install/upgrade: subprocess post-installation script returned error exit status 1

Asked by Emrich Hamman

Binary package hint: hobbit

package hobbit-client 4.2.0.dfsg-10 failed to install/upgrade: subprocess post-installation script returned error exit status 1

ProblemType: Package
Architecture: i386
Date: Wed Sep 3 08:54:09 2008
DistroRelease: Ubuntu 8.04
ErrorMessage: subprocess post-installation script returned error exit status 1
NonfreeKernelModules: nvidia
Package: hobbit-client 4.2.0.dfsg-10
PackageArchitecture: i386
SourcePackage: hobbit
Title: package hobbit-client 4.2.0.dfsg-10 failed to install/upgrade: subprocess post-installation script returned error exit status 1
Uname: Linux 2.6.24-19-generic i686

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu hobbit Edit question
Assignee:
No assignee Edit question
Solved by:
Cesare Tirabassi
Solved:
Last query:
Last reply:
Revision history for this message
Emrich Hamman (ecfhamman) said :
#1
Revision history for this message
Cesare Tirabassi (norsetto) said :
#2

Installation fails with a "hostname: Unknown host" error.
I think that's because you have not entered a valid hostname when you were required.
You have to enter the host name used by the Hobbit client when sending reports to the Hobbit server. This name must match the name used in the bb-hosts file on the Hobbit server.

Revision history for this message
Emrich Hamman (ecfhamman) said :
#3

Thanks
I installed it originally cause I needed a VNC client on my Linux machine.
So I decided to uninstall - now I get this error:

E: hobbit-client: subprocess pre-removal script returned error exit status 1

I'm on a noob status to Linux, but can manage to help myself with a bit of guidance.

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4

The problem is that since installation failed the demon is not running, so it cannot be stopped and removal fails.

We can try to force this but I need you to edit some files manually. If you think you can do it is fine, but be aware that the potential is high for you to make things even worse.
You must open, with su rights, the file /etc/init.d/hobbit-client. If you are on gnome you can do this by opening a terminal and giving this command:

gkesu gedit /etc/init.d/hobbit-client

Once the file is open, go to the section that starts with stop) and modify this line:

start-stop-daemon --exec $DAEMON --pidfile $PIDFILE --stop && echo "$NAME."

So that it reads:

start-stop-daemon --exec $DAEMON --pidfile $PIDFILE --stop --oknodo && echo "$NAME."

Save and exit.
If you try to uninstall now it should work.

Revision history for this message
Emrich Hamman (ecfhamman) said :
#5

Thanks for the feedback.
I tried it but still get the same error when uninstalling - I use the Synaptic Package Manager.

Revision history for this message
Best Cesare Tirabassi (norsetto) said :
#6

OK, then lets do it this way:

Open a terminal
Edit the file /var/lib/dpkg/info/hobbit-client.prerm (eg. gksu gedit /var/lib/dpkg/info/hobbit-client.prerm)
Delete all these lines:

if [ -x "/etc/init.d/hobbit-client" ]; then
        if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
                invoke-rc.d hobbit-client stop || exit $?
        else
                /etc/init.d/hobbit-client stop || exit $?
        fi
fi

Save and retry.

Revision history for this message
Emrich Hamman (ecfhamman) said :
#7

Thanks Cesare Tirabassi, that solved my question.

Revision history for this message
Emrich Hamman (ecfhamman) said :
#8

Thank you very much - that did the trick.
I reckon it may be worth my while reading a Linux for Dummies book at some time.