使用iso镜像安装
新建一个虚拟电脑
安装增强功能后可以调整虚拟电脑的分辨率,有的时候安装增强功能才能使用共享文件夹,不用的话可以不装
直接sudo apt-get install mpich(没试过嗷,错了不负责嗷)
使用sudo apt-get install build-essential安装linux自带的程序(.eg g++, gcc, vim)
容易出现问题:
libc6-dev : 依赖: libc6 (= xxx) 但是yyy 正要被安装
依赖: libc-dev-bin (= xxx)
E: 无法修正错误,因为您要求某些软件包保持现状,就是它们破坏了软件包间的依赖关系。
$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.5 LTS
Release: 20.04
Codename: focal
$ sudo cp /etc/apt/sources.list /etc/apt/source.list.back
$ sudo vim /etc/apt/sources.list
#阿里源
deb http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ focal-proposed main restricted universe multiverse
$ sudo apt-get update
$ sudo apt-get upgrade
export MPI_ROOT=/home/你的用户名/mpich
export PATH=$MPI_ROOT/bin:$PATH
export MANPATH=$MPI_ROOT/man:$MANPATH