The Lie algebras $ \mathfrak{gl}(\lambda)$ and cohomologies of Lie algebras of differential operators