In this paper we consider the well-posedness of the compressible Prandtl boundary layer for the Navier–Stokes–Poisson equations with nonslip boundary condition and obtain the linear stability of the approximate solution constructed by boundary layer expansion.