@karel I do not think your dupe suggestion is sufficient here. It looks like they have multiple problems. Without knowing what they did I fear we can't solve it. But at least we need this one. But python3 is apparently missing... very bad situation
@Zanna That's the first link that I looked at because of the "APT::Update::Post-Invoke-Success" error message, however I rejected that link because there are multiple varieties of possible APT::Update::Post-Invoke-Success messages, and the specific error message in this question has not been successfully answered yet AFAIK.
My decision was to first try to clean up the other package management error messages as much as I could. If the same APT::Update::Post-Invoke-Success error message still persists I will either retract my CV or vote to reopen the question.
anyway I don't know what to do here. I don't think the question is answerable because it looks like before they reached this point they did several ill-advised things without knowing what they were doing and they haven't told us anything about those things
I recommend leaving this question open. I retracted my CV. The last screenshot looks interesting to me, and I believe that this question is answerable.