The universal instability in general geometry