Refine dependancy for apt key and sources.