You can generate barcodes with GS1datadriver
You will have to purchase a membership and there is an annual renewal fee.
You can purchase UPC bar codes from some third party sellers. One I've used is ez upc:
They just give you some image files (.jpg & .eps, I think) of the bar codes that you can add to your packaging, print on labels, etc.