Here’s a way I suggest to chase/keep the bears away.
1. Buy a bottle of liquid ammonia.
2. Buy a good spray bottle.
Dilute the ammonia 50/50 with water and fill the spray bottle. Pour some of the solution in your garbage can. If your can is leaking pour the ammonia in a small container and place the container on the bottom of the can preferably with the lid on it that you punch full of holes.
If the bear is into your bird feeder spray some ammonia in his direction.
Save the rest of the ammonia in a tightly closed container for future use.
And that’s it. Good luck.