Ubuntu 12.04 发现没有安装g77

系统安装、升级讨论
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
回复
Left hand
帖子: 7
注册时间: 2013-06-26 9:53
系统: Ubuntu

Ubuntu 12.04 发现没有安装g77

#1

帖子 Left hand » 2014-09-20 22:54

Ubuntu 12.04 发现没有安装g77, 安装了gcc, g++,gfortran 版本为 4.6.3。
在网上搜索了安装方法,
********************************************************************************************************
1. 在/etc/apt/source.list中最后头添加如下源(以root的身份,或用 sudo):
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe

2. 安装aptitude

sudo apt-get install aptitude

3. 然后执行如下:

sudo aptitude update
sudo aptitude install g77
*****************************************************************************************************
但是我在第3步 sudo aptitude update的时候最后出现:
W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found

W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found

W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found

W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... 6/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
sudo apt-get install g77 时显示没有g77安装包:
******************************************************************************************
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package g77 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'g77' has no installation candidate
******************************************************************************************************
不知道咋办?请大家帮忙啊!!! :em51
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Ubuntu 12.04 发现没有安装g77

#2

帖子 poloshiao » 2014-09-21 0:12

W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
1. http://hu.archive.ubuntu.com/ubuntu/dists/ 沒有 hardy 子目錄了
2. 現有套件庫 沒有 g77 套件
http://packages.ubuntu.com/search?suite ... chon=names
在/etc/apt/source.list中最后头添加如下源(以root的身份,或用 sudo):
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
3. 不可以在 Ubuntu 12.04 的 /etc/apt/source.list 直接加 hardy 的來源庫
會使得 Ubuntu 變得不穩定
4. http://askubuntu.com/a/243700/198920
Left hand
帖子: 7
注册时间: 2013-06-26 9:53
系统: Ubuntu

Re: Ubuntu 12.04 发现没有安装g77

#3

帖子 Left hand » 2014-09-21 14:11

poloshiao 写了:
W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
1. http://hu.archive.ubuntu.com/ubuntu/dists/ 沒有 hardy 子目錄了
2. 現有套件庫 沒有 g77 套件
http://packages.ubuntu.com/search?suite ... chon=names
在/etc/apt/source.list中最后头添加如下源(以root的身份,或用 sudo):
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
3. 不可以在 Ubuntu 12.04 的 /etc/apt/source.list 直接加 hardy 的來源庫
會使得 Ubuntu 變得不穩定
4. http://askubuntu.com/a/243700/198920
谢谢你的帮助,4里面的方法也并不是安装g77的啊,我现在需要安装g77,一个模式要调用g77
Left hand
帖子: 7
注册时间: 2013-06-26 9:53
系统: Ubuntu

Re: Ubuntu 12.04 发现没有安装g77

#4

帖子 Left hand » 2014-09-21 16:16

Left hand 写了:
poloshiao 写了:
W: Failed to fetch http://hu.archive.Ubuntu.com/ubuntu/dis ... ce/Sources 404 Not Found
1. http://hu.archive.ubuntu.com/ubuntu/dists/ 沒有 hardy 子目錄了
2. 現有套件庫 沒有 g77 套件
http://packages.ubuntu.com/search?suite ... chon=names
在/etc/apt/source.list中最后头添加如下源(以root的身份,或用 sudo):
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy universe
deb http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
deb-src http://hu.archive.Ubuntu.com/ubuntu/ hardy-updates universe
3. 不可以在 Ubuntu 12.04 的 /etc/apt/source.list 直接加 hardy 的來源庫
會使得 Ubuntu 變得不穩定
4. http://askubuntu.com/a/243700/198920
谢谢你的帮助,4里面的方法也并不是安装g77的啊,我现在需要安装g77,一个模式要调用g77
问题已解决,参照http://askubuntu.com/questions/346278/really-need-g77-on-ubuntu-12-04-cant-install需要安装g77安装包,这里有https://github.com/nmz787/ProteinShop。
poloshiao
论坛版主
帖子: 18279
注册时间: 2009-08-04 16:33

Re: Ubuntu 12.04 发现没有安装g77

#5

帖子 poloshiao » 2014-09-21 16:31

http://conquer-ur-computer.blogspot.tw/ ... buntu.html
g77 offline installation for all Ubuntu and Debian versions
回复