move apt-get to before_install hook