Two Omaha men were sentenced to several years in prison for their roles in pharmacy burglaries across central Nebraska.