在Debian上更新Fortran版本,通常使用GNU Fortran编译器(gfortran),可按以下步骤操作:
Ctrl + Alt + T
组合键快速打开。sudo apt update
。sudo apt install gfortran
。gfortran --version
命令查看版本信息。若需安装特定版本的gfortran,可添加相应PPA,如sudo add-apt-repository ppa:ubuntu-toolchain-r/tests
,再执行sudo apt update
和sudo apt install gfortran-<版本号>
。