The principle that ignorance of the law is no excuse (US) seems reasonable - but it also seems to rely on the presumption that all laws are readily available and understandable, because otherwise the government would be requiring you to comply with something you can’t know or can’t understand.
I don’t believe this presumption is accurate. There are so many different sources of laws (federal, state, local, and others) that even just finding a relevant law is beyond the grasp of some people, and even if you can, many laws are written in “legalese” that can be difficult to interpret.
You can hire a lawyer to answer your questions, but there are two problems with this: One is that it limits legal knowledge to very wealthy people, and the other is that lawyers can be wrong, and if your lawyer gives you bad advice (e.g. you commit a crime because the lawyer said it was not a crime), this is not a defense.
The government doesn’t offer any official channels for legal advice, and in fact even general discussions (like StackExchange) often specifically bar legal advice because it is so difficult and risky to provide.
Why doesn’t the government have any obligation to provide something like a hotline where you can just call and ask if something is legal? It already provides public defenders, which seems to be an admission that the law is beyond the grasp of ordinary people - but you only get a public defender when you have already been accused of a crime.
If the government says, “You are responsible for knowing X, and you are responsible for complying with X,” why doesn’t the government have any obligation to tell you what X is in a way that the general public can actually use?
Please note that this question is not asking for legal advice. It is asking why there aren’t better sources for legal advice.