Hello
After spending some hours on this, the problems on ubuntu are now solved (installation wise at least).
The root cause of the problem is that a lot of the scripts that come with hpasm and hpsmh assume that sh and /bin/sh are bash. The scripts contain a lot of bashishms. On ubuntu (starting from edgy), /bin/sh is a symlink to dash, which is a very fast bourne compatible shell. Needless to say, it doesn't know how to handle bash extensions, and hence, a lot of the scripts will break.
Installing hpmsh is for example impossible since the installation script it self will break and will loop forever.
The correct solution to this problem:
- replace #!/bin/sh into #!/bin/bash for all the scripts that contain bash (probably just safer to replace all)
- replace all 'sh /path/to/script' -invocations with 'bash /path/to/script'. since the scripts themselves are "spaghetti", this will take ages.
The incorrect solution to this problem:
sudo su -
cd /bin
rm sh; ln -s bash sh
exit
All the above reported forum entries stem from the same root cause. dash is not bash.
Some people have reported this as a bug against dash here:
https://bugs.launchpad.net/ubuntu/+source/dash/+bug/61463The bug report contains a lot of useful background information for the interested.
Hope this helps.
ak.