A sterilizing apparatus for sterilizing a hollow prism-shaped carton opening at both ends. The apparatus comprises: a sterilization station, a drying station, and a solution-removing station located between the sterilizing station and the solution-removing station. The solution-removing station has a solution-removing device which rotates intermittently in synchronism with the conveyor means of the sterilizing station and the drying station. The device has a plurality of thin and long mandrels extending in the radial direction and spaced apart at regular intervals. Each mandrel supports a carton and has a nozzle. The aseptic air supplied from an aseptic-air source is applied by the nozzle into the carton.