fix template syntax error.
add verification of user sudo privilege	.
add best mirrors.
update apt cache before update