A general solution of the ripple-averaged kinetic equation