package openmpi-bin 4.0.3-0ubuntu1 failed to install/upgrade: installed openmpi-bin package pre-removal script subprocess returned error exit status 2

Bug #1874645 reported by Aditya Mathur
78
This bug affects 15 people
Affects Status Importance Assigned to Milestone
openmpi (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

It happened during installation.

ProblemType: Package
DistroRelease: Ubuntu 20.04
Package: openmpi-bin 4.0.3-0ubuntu1
ProcVersionSignature: Ubuntu 5.4.0-26.30-generic 5.4.30
Uname: Linux 5.4.0-26-generic x86_64
ApportVersion: 2.20.11-0ubuntu27
Architecture: amd64
CasperMD5CheckResult: skip
Date: Fri Apr 24 13:34:45 2020
DuplicateSignature:
 package:openmpi-bin:4.0.3-0ubuntu1
 Removing openmpi-bin (4.0.3-0ubuntu1) ...
 update-alternatives: error: /var/lib/dpkg/alternatives/mpi corrupt: slave link same as main link /usr/bin/mpicc
 dpkg: error processing package openmpi-bin (--remove):
  installed openmpi-bin package pre-removal script subprocess returned error exit status 2
ErrorMessage: installed openmpi-bin package pre-removal script subprocess returned error exit status 2
InstallationDate: Installed on 2020-04-23 (0 days ago)
InstallationMedia: Ubuntu 18.04.4 LTS "Bionic Beaver" - Release amd64 (20200203.1)
Python3Details: /usr/bin/python3.8, Python 3.8.2, python3-minimal, 3.8.2-0ubuntu2
PythonDetails: /usr/bin/python2.7, Python 2.7.18rc1, python-is-python2, 2.7.17-4
RelatedPackageVersions:
 dpkg 1.19.7ubuntu3
 apt 2.0.2
SourcePackage: openmpi
Title: package openmpi-bin 4.0.3-0ubuntu1 failed to install/upgrade: installed openmpi-bin package pre-removal script subprocess returned error exit status 2
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Aditya Mathur (ady98) wrote :
tags: removed: need-duplicate-check
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
kaklik (kakonajakub) wrote :

It happens to me during the upgrade of Ubuntu 20.04 LTS to Ubuntu 22.04 LTS. My system has installed openmpi-bin (4.1.2-2ubuntu1).

A had run the pre-removal script manually with following result:

  $ sudo sh -x /var/lib/dpkg/info/openmpi-bin.prerm remove
  + set -e
  + [ remove = remove ]
  + update-alternatives --remove mpirun /usr/bin/mpirun.openmpi
  + update-alternatives --remove mpi /usr/bin/mpicc.openmpi
  update-alternatives: error: /var/lib/dpkg/alternatives/mpi corrupt: slave link same as main link /usr/bin/mpicc

[That solution](https://stackoverflow.com/questions/62464085/openmpi-bin-error-after-update-kubuntu-18-04-to-20-04) fixes the situation

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.