common: move package installs to packages

Attempting to install packages in the apt manifest is a bad idea, since
it runs during stage => first.