The nonzero bulk viscosity signals breaking of the scale invariance. We demonstrate that a disorder in two-dimensional noninteracting electron gas in a perpendicular magnetic field results in the nonzero disorder-averaged bulk viscosity. We derive analytic expression for the bulk viscosity within the self-consistent Born approximation. This residual bulk viscosity provides the lower bound for the bulk viscosity of 2D interacting electrons at low enough temperatures.