
I got it solved by manually removing and reinstalling older packages too.
I'm sorry about the cross-post, but I was getting rather desperate after many hours of trying. I wasn't able to post an update with the solution unfortunately - I'm not sure why, but I couldn't post here.