The ETA only applies to foreign nationals who are legally admissible to enter Australia, either as a first-timer or a returnee. Hence, you need to have a clean record and a valid passport to obtain an ETA and enter the country.
Read more at https://blog.traveleta.com.au/what-to-do-if-i-have-previously-been-denied-deported-detained-a-visa-to-australia on January 27, 2017
