A Roanoke man was sentenced to seven years in prison Monday for a variety of drug and firearm offenses, including selling a so-called “ghost gun” that by design is difficult to trace to a crime.