我正在尝试安装基于 MPI 的分布式仿真支持 (sudo apt-get install openmpi*),但是无法安装。终端显示:
error@ubuntu:~$ sudo apt-get install openmpi*
Reading package lists... Done
Building dependency tree
Reading state information... Done
Note, selecting 'libopenmpi1.6-dbg' for regex 'openmpi*'
Note, selecting 'libmeep-openmpi6' for regex 'openmpi*'
Note, selecting 'libopenmpi1.6-dev' for regex 'openmpi*'
Note, selecting 'libmeep-openmpi-dev' for regex 'openmpi*'
Note, selecting 'libhdf5-openmpi-7' for regex 'openmpi*'
Note, selecting 'meep-openmpi' for regex 'openmpi*'
Note, selecting 'libhdf5-openmpi-7-dbg' for regex 'openmpi*'
Note, selecting 'openmpi1.6-common' for regex 'openmpi*'
Note, selecting 'openmpipython' for regex 'openmpi*'
Note, selecting 'yorick-mpy-openmpi' for regex 'openmpi*'
Note, selecting 'gromacs-openmpi' for regex 'openmpi*'
Note, selecting 'mpqc-openmpi' for regex 'openmpi*'
Note, selecting 'libopenmpi1.3' for regex 'openmpi*'
Note, selecting 'libopenmpi1.6' for regex 'openmpi*'
Note, selecting 'openmpi-checkpoint' for regex 'openmpi*'
Note, selecting 'octave-openmpi-ext' for regex 'openmpi*'
Note, selecting 'libhdf5-openmpi-dev' for regex 'openmpi*'
Note, selecting 'openmpi-libs0' for regex 'openmpi*'
Note, selecting 'openmpi1.6-bin' for regex 'openmpi*'
Note, selecting 'openmpi-mpidoc' for regex 'openmpi*'
Note, selecting 'netpipe-openmpi' for regex 'openmpi*'
Note, selecting 'libhdf5-openmpi-1.8.4' for regex 'openmpi*'
Note, selecting 'libhdf5-openmpi-1.8.6' for regex 'openmpi*'
Note, selecting 'libhdf5-openmpi-1.8.7' for regex 'openmpi*'
Note, selecting 'openmpi1.6-doc' for regex 'openmpi*'
Note, selecting 'openmpi-bin' for regex 'openmpi*'
Note, selecting 'openmpi-dbg' for regex 'openmpi*'
Note, selecting 'openmpi-dev' for regex 'openmpi*'
Note, selecting 'openmpi-doc' for regex 'openmpi*'
Note, selecting 'openmpi-common' for regex 'openmpi*'
Note, selecting 'libopenmpi-dbg' for regex 'openmpi*'
Note, selecting 'libopenmpi-dev' for regex 'openmpi*'
Note, selecting 'openmpi1.6-checkpoint' for regex 'openmpi*'
Note, selecting 'libopenmpi1' for regex 'openmpi*'
Note, selecting 'libopenmpi2' for regex 'openmpi*'
Note, selecting 'libopenmpi-dev' instead of 'openmpi-dev'
Note, selecting 'libopenmpi-dbg' instead of 'openmpi-dbg'
Note, selecting 'libopenmpi1.3' instead of 'openmpi-libs0'
Note, selecting 'openmpi-doc' instead of 'openmpi-mpidoc'
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
libopenmpi1.6 : Conflicts: libopenmpi1.3 but 1.4.5-1ubuntu1 is to be installed
Conflicts: openmpi-libs0
libopenmpi1.6-dbg : Conflicts: libopenmpi-dbg but 1.4.5-1ubuntu1 is to be installed
Conflicts: openmpi-dbg
libopenmpi1.6-dev : Conflicts: libopenmpi-dev but 1.4.5-1ubuntu1 is to be installed
Conflicts: openmpi-dev
openmpi1.6-bin : Conflicts: openmpi-bin but 1.4.5-1ubuntu1 is to be installed
openmpi1.6-checkpoint : Conflicts: openmpi-checkpoint but 1.4.5-1ubuntu1 is to be installed
openmpi1.6-common : Conflicts: openmpi-common but 1.4.5-1ubuntu1 is to be installed
openmpi1.6-doc : Conflicts: openmpi-checkpoint (< 1.6.4-1) but 1.4.5-1ubuntu1 is to be installed
Conflicts: openmpi-doc but 1.4.5-1ubuntu1 is to be installed
Conflicts: openmpi-mpidoc
E: Unable to correct problems, you have held broken packages.
答案1
许多 openmpi 软件包是相互排斥的。您无法像那样将它们全部安装。
另外,请注意,在 Ubuntu 中,ns3 未使用 MPI 支持构建。因此安装这些不会有帮助。