Given a von Neumann algebra M denote by S(M) and LS(M) respectively the algebras of all measurable and locally measurable operators affiliated with M. For a faithful normal semi-finite trace τ on M let S(M, τ) (resp. S0(M, τ)) be the algebra of all τ -measurable (resp. τ -compact) operators from S(M). We give a complete description of all derivations on the above algebras of operators in the ca...