$ apt-cache search MPI | grep -w MPI will list (on MY system) 47MPI related packages.
$ apt-cache search MPI | grep -w MPI| awk '{print $1}' | xargs dpkg -l 2>/dev/null will show you which ones you have installed on your system.
You can achieve "(uninstall and install mpi)" by feeding the package names to sudo apt install --reinstall.
However, in the Ubuntu world, "uninstall and reinstall" never fixes the problem. Never.
If you've messed up the configuration of a package, you can use dpkg-reconfigure to reconfigure an already installed package. Read man dpkg-reconfigure.
$ apt-cache search MPI | grep -w MPI
will list (on MY system) 47MPI
related packages.$ apt-cache search MPI | grep -w MPI| awk '{print $1}' | xargs dpkg -l 2>/dev/null
will show you which ones you have installed on your system.You can achieve "(uninstall and install mpi)" by feeding the package names to
sudo apt install --reinstall
.However, in the Ubuntu world, "uninstall and reinstall" never fixes the problem. Never.
If you've messed up the configuration of a package, you can use
dpkg-reconfigure
to reconfigure an already installed package. Readman dpkg-reconfigure
.If it's some other problem, read https://askubuntu.com/help/how-to-ask