Smear spam all over the interior of your cabinets, that should keep the mice away because mice hate spam just like everyone else.
The answer to this question is that you can try filling up the gaps and holes of the pipe inside your kitchen, especially those present in the wooden region or in the walls. Blocking is the best solution to this problem but for making your kitchen mouse free completely, you should look for other solutions too.