一、打开终端,编辑更新源
sudo vim /etc/apt/sources.list
二、在文档底端添加以下几行:
deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb-src [trusted=yes] http://old-releases.ubuntu.com/ubuntu/ hardy universe
deb [trusted=yes] http://old-releases.ubuntu.com/ubuntu/ hardy-updates universe
deb-src [trusted=yes] http://old-releases.ubuntu.com/ubuntu/ hardy-updates universe
三、保存文档,在终端输入:
sudo apt update
sudo apt-get install g77
原文链接:http://seanelvidge.com/2017/01/install-g77-on-ubuntu-14-04/