It is uncommon to use ought to in a negation. Instead, shouldn’t is usually used.
I can't open the window.
I couldn't swim very fast then.
I wasn't able to come by yesterday.
She may not leave her room.
It might not be true according to this report.
He shouldn’t go there by himself.
You mustn't share my secret.
We don't have to do any homework today.
She ought not to ignore the rules.