亚马逊ec2 ubuntu安装gcc

时间:2014-11-02 02:31:17

标签: ubuntu gcc amazon-ec2

我尝试使用ubuntu

在ec2实例上安装gcc
sudo apt-get install gcc

给了我:

Do you want to continue? [Y/n] 
Err http://us-west-2.ec2.archive.ubuntu.com/ubuntu/ trusty-updates/main linux-libc-dev amd64 3.13.0-36.63
404  Not Found [IP: 91.189.88.149 80]
Err http://security.ubuntu.com/ubuntu/ trusty-security/main linux-libc-dev amd64 3.13.0-36.63
404  Not Found [IP: 91.189.92.201 80]
E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/main/l/linux/linux-libc-dev_3.13.0-36.63_amd64.deb  404  Not Found [IP: 91.189.92.201 80]

E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?

我缺少什么?

1 个答案:

答案 0 :(得分:21)

sudo apt-get update解决了这个问题。