I upgraded check_mk from 1.6.p24 to 2.0.0p6 but get an error

Hi,

try to move the checks to an other location and try to run update again. If that works, you should analyse the checks step by step if needed as clone or the build-in will work for you.

Cheers,
Christian