Deepti...you are using the S3 bucket of: us-east-1.ec2.us-east-1.ec2.archive.ubuntu.com.s3.amazonaws.com
Which should be: us-east-1.ec2.archive.ubuntu.com.s3.amazonaws.com
Note the extra "us-east-1.ec2." in the URL's from the error logs. If you remove that, it should work for you.
Deepti...you are using the S3 bucket of: 1.ec2.us- east-1. ec2.archive. ubuntu. com.s3. amazonaws. com
us-east-
Which should be: 1.ec2.archive. ubuntu. com.s3. amazonaws. com
us-east-
Note the extra "us-east-1.ec2." in the URL's from the error logs. If you remove that, it should work for you.