Let's see... How about a a couple cans of pepper spray and maybe a shotgun loaded with rock salt?
Seriously, raccoons are clever, destructive little creatures and can definitely get violent if there are enough of them. But they're not bulletproof or pain proof. I bet a squirt of pepper spray in the faces of a pack of five would discourage them and send them looking for less uncongenial company. I'm pretty sure that, if that didn't work, my revolver would work while loaded with any ammunition I have, even the wimpy .38 sp roundnose target ammunition I usually practice with. Since I keep it loaded with .38 +p loads for self defense....
Keeping raccoons out of your trashcans, however, is a much more difficult task. :/ About twenty years ago I was sharing a house with a roommate. The house had a small creek next to it, and a family of raccoons moved into the bank. The babies were the cutest little things imaginable, but we ended up having to pile stones and bricks on and around the trashcans to keep the coons out of them.
One night, at about 2:30 AM, my roommate woke me with a loud, terrified scream. By the time I managed to wake up, grab a robe, and scramble up to her part of the house, she was standing by the cat's bowls, shaking and pointing at the cat door. The big daddy raccoon had come in and been chomping away at the cat food. She told me she'd gotten up to go to the bathroom, seen this *enormous* cat (hers was a delicate little Siamese), and then screamed. The coon showed its teeth, so she kicked it hard in the mouth. She said it made a noise something between a grunt and a sneeze and then *sauntered* out the cat door. But it did leave.
The following week, she had the city animal control come out, capture, and relocate them.