We show that, under the long-tailedness of the densities of normalized Lévy measures, the densities of infinitely divisible distributions on the half line are subexponential if and only if the densities of their normalized Lévy measures are subexponential. Moreover, we prove that, under a certain continuity assumption, the densities of infinitely divisible distributions on the half line are subexponential if and only if their normalized Lévy measures are locally subexponential.