Ec2 instance on AWS apt- get not working

前端 未结 5 1852
小鲜肉
小鲜肉 2020-12-14 17:21

I have Ec2 instance on AWS with Amazon Ubuntu.

When i try to download any thing, I am unable to do so.

For Ex:

~# apt-get update

0% [Connect         


        
5条回答
  •  青春惊慌失措
    2020-12-14 17:55

    You EC2 instances's Security groups is not configured to let it reach internet. You need to have an Outbound rule for all traffic to 0.0.0.0/0. In EC2-Classic, this is already in place and hence you need not worry. However, if this is in VPC, then you need to add this rule.

    Also, Apart from what is said above, could you check whether any iptables rules causing any issue.

提交回复
热议问题