Fix dependencies and remove the un-necessary repos.