Install and configure sudo by default.
Ensure mirror is specified correctly (with single quotes), and that it at least contains '$repo' in the URL.