title: OpenMPI-bin error after update (K)Ubuntu 18.04 to 20.04
body: <p>I have just upgraded my Kubuntu from 18.04 to 20.04. Unfortunately there is an error that keeps showing up everytime I use apt upgrade or installing something with apt. The error is:</p>
  
  <pre><code>update-alternatives: error: /var/lib/dpkg/alternatives/mpi corrupt: slave link same as main link /usr/bin/mpicc
  </code></pre>
  
  <p>It has been <a href="https://bugs.launchpad.net/ubuntu/+source/openmpi/+bug/1874645" rel="noreferrer">reported</a> and yet has not been patched until the time I write this question.</p>
  
  <p>After more than a month trying various ways to deal with this problem I finally found the solution as you can see below. I hope it is useful for you who met with the same problem.</p>