This is a reasonable question, and shows a limitation of how this forum works.
The question where you found your answer is about Windows, but that was only identified in a comment, and never added to the question itself. The answer that solved your problem is for Linux, so even though it's a great answer for Linux, it's not relevant to the actual question. Even making the tagging more specific wouldn't have helped you.
Under the circumstances, the decision to close seems reasonable to me, although I wasn't among those who voted to close.
Perhaps adding a new, very specific, well-defined and well-tagged, question, would be an appropriate resolution, copying in (as an answer) the "irrelevant" answer with proper attribution.
Or, there's a meta question titled "Often referenced questions", where one of the categories is "Installing, updating, restoring, other system operations" with a subcategory "Installing packages". One of the items there addresses Linux systems, with an answer containing the information that helped you, although in a less compact form.