In this paper, we generalize the anomaly cancellation formulas given by Alvarez-Gaum and Witten (1983), Liu (1995) and Han and Zhang (2004)[1],[2],[7] to the cases where an auxiliary bundle W and a complex line bundle are involved with no conditions on the first Pontryagin forms being assumed.