在使用中国镜像源后无法使用apt-get安装gfortran4.6,如下图所示
2.解决方案
只需将以下几行添加到我的 /etc/apt/sources.list 文件中即可满足我的需求
deb http://archive.ubuntu.com/ubuntu trusty main restricted universe multiverse deb http://security.ubuntu.com/ubuntu trusty-security main restricted universe multiverse
然后我可以使用以下命令更新和安装 gfortran-4.6:
sudo apt-get update sudo apt-get install gfortran-4.6
查看已安装的多版本gfortan可以看到gfortran4.6已成功安装:
参考:How to install gfortran-4.6 or gcc-4.6 on ubuntu 20.04 - Ask Ubuntuhttps://askubuntu.com/questions/1247962/how-to-install-gfortran-4-6-or-gcc-4-6-on-ubuntu-20-04



