My foreign partner is depressed from staying here

Title says it all, and he have been trying to get a job for 2,5 years. Can't go back because of the war in Ukraine. I try to help him in all possible ways, like physical activity, eat well by cooking and of course looking to relocate us to Oslo. (the only place he felt more or less at home). He has never been so discriminated, gotten cold shoulders and isolated in any other country he lived in before, and it's very sad to see your family member suffering. We live in an old house in a small town where people don't want to talk to us, well, if "talk" they talk to me who is Norwegian.
I don't see it improving despite all of our efforts, and we are jailed here for now until the war ends.
I'd love to hear some advice or similar experiences from others.