attempts to install required packages