Stop caring. Seriously.
These people aren’t your friends. You just need to get along well enough to do your jobs without hating each other.
If they are so miserable that they can’t engage in simple social queues then it’s their problem. If they want to be friendly then be friendly. Otherwise fuck em. Move on.
If it were me I would stop greeting people. Stick to myself. Concentrate on what is important which is putting food on the table. Be cool with the people that are actually cool and leave the rest to be miserable.
Anything is possible if you try hard enough