How Could Jesus Live a Sinless Life?
One, because the incarnate Son of God was born of a virgin, conceived through ‘the overshadowing’ of the Holy Spirit (Luke 1. 34-35), not through a human father and therefore had no corrupted (or sin) nature (although He did come into the world with a fully human nature). He was true flesh, but His flesh was uncorrupted.
Two, on His human side, He depended wholly on the power of the Holy Spirit immeasurably in Him (John 3.34) for all His headings, as it were. Taking His cues from the Spirit, He unfailingly conformed to the will of His Father. Sin is the polar opposite of obedience to God.