Ignorance is not having knowledge about something.
For example, "Public ignorance about Covid 19 is a serious problem."
It means that the public doesn't have correct information about the virus and that it's a problem.
In your sentence, "cocksure" means to be too confident about something. It isn't a good quality.
The writer tells us that being confident with incorrect facts or being confident with no knowledge of the facts is bad. Instead, we are told to be thoughtful and questioning about matters.