Easily fixed through voluntary association in the interest of everyone. Stuff could work along the lines of everyone who wants to benefit from thing x must contribute to thing x when it comes to essential but undesirable jobs. You want sewage? You sign up for sewage. Everybody who does, has a week assigned where they must do the necessary maintainance for that utility. In practice, since so many people want sewage, it would end up once every few years. Moreover, these associations could federate and make it so that contributing to those that are shorthanded could exempt you from others. Say, you have the necessary electrical knowledge to work on that system but hate maintaining sewage. You could work on that celebration day when nobody wants to work and in exchange you are exempt from sewage duty.
If someone doesn't want to contribute in any way to society, that person won't benefit from society. It's another thing if someone cannot do anything, but those people are very few. Even those who are bed bound can contribute in some ways.