package openmpi-bin 4.1.2-2ubuntu1 failed to install/upgrade: installed openmpi-bin package post-installation script subprocess returned error exit status 2

Bug #2012286 reported by Kanishka Dhanasekara
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
openmpi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Get this error while upgrading java version on my Ubuntu 22.04 laptop

lsb_release -a:
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy

uname -a
Linux dell-Inspiron-5559 5.15.0-67-generic #74-Ubuntu SMP Wed Feb 22 14:14:39 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

I was trying to upgrade the default-jre installed on my laptop:
current version installed:
java -version:
java version "1.8.0_181"
Java(TM) SE Runtime Environment (build 1.8.0_181-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.181-b13, mixed mode)

apt-cache policy default-jre
default-jre:
  Installed: 2:1.11-72build2
  Candidate: 2:1.11-72build2
  Version table:
 *** 2:1.11-72build2 500
        500 http://us.archive.ubuntu.com/ubuntu jammy/main amd64 Packages
        100 /var/lib/dpkg/status

I try to upgrade java:
sudo apt install default-jre

Get the following error during installation:
>>>>>>
Setting up openmpi-bin (4.1.2-2ubuntu1) ...
update-alternatives: error: /var/lib/dpkg/alternatives/mpi corrupt: slave link same as main link
/usr/bin/mpicc
dpkg: error processing package openmpi-bin (--configure):
 installed openmpi-bin package post-installation script subprocess returned error exit status 2
dpkg: dependency problems prevent configuration of mpi-default-bin:
 mpi-default-bin depends on openmpi-bin; however:
  Package openmpi-bin is not configured yet.

dpkg: error processing package mpi-default-bin (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of libcoarrays-openmpi-dev:amd64:
 libcoarrays-openmpi-dev:amd64 depends on openmpi-bin; however:
  Package openmpi-bin is not configured yet.

dpkg: error processing package libcoarrays-openmpi-dev:amd64 (--configure):
 dependency problems - leaving unconfigured
Setting up libatk-wrapper-java-jni:amd64 (0.38.0-5build1) ...
No apport report written because the error message indicates its a followup error from a previous
 failure.
         No apport report written because the error message indicates its a followup error from a
 previous failure.
>>>>>>>>

Fails the installation with the following error message:

Errors were encountered while processing:
 openmpi-bin
 mpi-default-bin
 libcoarrays-openmpi-dev:amd64
E: Sub-process /usr/bin/dpkg returned an error code (1)

Really appreciate if you could help. Thanks

ProblemType: Package
DistroRelease: Ubuntu 22.04
Package: openmpi-bin 4.1.2-2ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-67.74-generic 5.15.85
Uname: Linux 5.15.0-67-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Mon Mar 20 20:59:16 2023
ErrorMessage: installed openmpi-bin package post-installation script subprocess returned error exit status 2
InstallationDate: Installed on 2016-06-28 (2456 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
Python3Details: /usr/bin/python3.10, Python 3.10.6, python3-minimal, 3.10.6-1~22.04
PythonDetails: N/A
RelatedPackageVersions:
 dpkg 1.21.1ubuntu2.1
 apt 2.4.8
SourcePackage: openmpi
Title: package openmpi-bin 4.1.2-2ubuntu1 failed to install/upgrade: installed openmpi-bin package post-installation script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Kanishka Dhanasekara (k2d2) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in openmpi (Ubuntu):
status: New → Confirmed
Revision history for this message
Gopinath Emmidisetty (gopinathev) wrote :

E: Sub-process /usr/bin/dpkg returned an error code (1)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.