Adapting apt configuration