The advice helped to solve the problem, but the xfun package had to be reinstalled manually. After that, everything worked.