autoinstall: apt components based on Debian/Ubuntu

Use different apt components in the installer depending on
Debian/Ubuntu.

Change-Id: Ibfa8833f22caac3ba7a1ce21860826d1065557eb