A judge sentenced a North Chicago man to five years in federal prison after he sold nearly 2,000 fentanyl pills and over 100 grams of powder fentanyl in Lake County.