Maybe this helps:

The openmpi-bin.postinst uses
update-alternatives --query mpi | grep --silent libmpi

this returns Exit-Code 1 (which is tested one line below.

Since "set -e" is set, the scrips breaks here.

Workaround is:
# Delete old non-multi-arch aware mpi
set +e
 update-alternatives --query mpi | grep --silent libmpi
if [ $? -eq 0 ] ; then
  update-alternatives --remove-all mpi
fi
set -e

this runs.

Reply via email to