Gary nailed yr problem...the tank vent is blocked
The vent on all tanks--water, fuel, waste holding--has two essential functions: it allows air IN to replace contents as they are drawn out, and it allows air displaced by incoming water, fuel or waste to get out. Therefore, it's absolutely essential that all tank vents be kept open, because unless air can be pulled in through the vent to replace the waste (or anything else in ANY container) being pulled out, a vacuum is created in which nothing more can be removed--but in which the suction CAN crack the tank. And a pressurized tank can have equally disastrous consequences--anything from a geyser when the deck fill or deck pumpout cap is removed to a backup in the toilet, to blown out fittings, to a cracked tank. You're lucky that only gasses escape when you remove the vent line from the tank...if the tank were only a little more pressurized, there'd be a sewage eruption. Ever see that happen at a pumpout when the deck pumpout cap is removed? You're lucky THAT didn't happen to you!99% of tank vent blockages occur in two places: the through-hull and both the vent fitting and that end of the hose at the tank. Scrape the thru-hull fitting out with a screwdriver blade...don't worry about destroying any screen...screens cause far more problems than they solve. Every time you pump out and or wash the boat, blast the thru-hull out with water. Remove the vent line from the tank and scrape out both the fitting and that end of the hose.If that doesn't solve your problem, there's a blockage somewhere in the vent line that's not gonna be easy to get out...in which case, the best solution is a new vent line. I also suggest that you check out the link below to learn how your toilet and the rest of your sanitation system is supposed to work and how to maintain 'em.