fixed a bug in the installation of apt dependencies