Most bear-prone campgrounds here have installed "bear-proof" garbage containers: takes two hands (and some understanding of picture instructions!) to open.
If a bear becomes accustomed to garbage, it is very hard to get it out of the habit, and they will return again and again, until they are shot.
Last weekend we saw our friend Dierdre at a nearby campground, who is the "Bear Aware" person around here. She was doing a presentation, really a simple message, that must be said over and over. Keep garbage away from bears!
After a while, garbage seems like easy-pickins to the poor creatures, who then become more bold, and want to pry open any "garbage container" to get at it.
Bears who are not accustomed to garbage (and the accompanying humans) tend to scamper off in an encounter (unless protecting cubs or a fresh kill). Bears who are accustomed to garbage will return to the aromatic buffet, cannot be weened off it, and so are put down.
20 years ago, it was a laugh to go down to the dump to watch the bears. Conservation Officers would trap and tag them, only to find the same individuals returning year after year, and getting more and more bold. Then five a year are killed, then 10, then 15, then 20.
So we started putting up smarter garbage containments and stopped killing bears, but just recently.