Not sure that would work in this case, `apt -y` would tell apt to skip confirmations, packages can still do their own confirmation. Also, NONINTERACTIVE=true (or what it is) I don't think would have worked either, as Oracle famously do their own thing.