Added apt-get update and added -qq flag to apt-get for quiet apt-get execution.