如何在 Ubuntu 14.04 上安装旧版本的 gcc

如何在 Ubuntu 14.04 上安装旧版本的 gcc

我需要在 Ubuntu 14.04 上安装 gcc 3.0。我尝试编译源代码,但出现错误。可以从存储库安装 gcc 3.0 吗?如何安装?

对我不起作用。apt-get update命令抛出此:

W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/hardy/universe/source/Sources
 404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/hardy/universe/binary-amd64/Packages
 404  Not Found [IP: 91.189.91.13 80]

W: Failed to fetch
http://archive.ubuntu.com/ubuntu/dists/hardy/universe/binary-i386/Packages
 404  Not Found [IP: 91.189.91.13 80]

E: Some index files failed to download. They have been ignored, or
old ones used instead.

相关内容