A former CTA mechanic was sentenced to 20 months in prison Thursday for selling hundreds of pounds of volatile improvised explosives to an undercover federal agent who said he wanted to bomb the car of a rival drug dealer and blow up an associate's Subway restaurant for insurance money.