The example that keeps coming to mind is HPV - it can cause cervical cancer etc. And, since there is an immunization for HPV, the disease is preventable, and to the extent it is the "only" cause of certain cancers, would also prevent those cancers.
So is HPV the "only" virus which causes cancer? Seems unlikely. I just don't know how much research is focused on bacterial or viral origins. Maybe it is not glamorous or mysterious enough to justify funding.
The 2005 nobel in physiology went to Barry Marshal for discovering that stomach ulcers, long a mystery, were caused by Helicobacter pylori bacteria. And in fairness to history, he wasn't even the first person to discover it, just the most recent person in western society.