Fix bugs in the initial configuration

Set up the repository priorities from the beginning, and be really verbose with the debugging output when installing.