Conditions for a system of linear equations to have no solutions