Trying to install gcc on ubuntu amazon EC2 instance


I’m trying to install gcc and g++ compiler on my amazon ec2 instance. but when i type the command on the instance

I got stuck when I try to connect the amazon archives. I wait here a little bit:

and then get a bunch of errors about not being able to connect to the archives. Does anyone know the solution? Thanks.



Okay got the answer, I needed to arrange the outbound rules for my security group.

enter image description here

Leave a Reply