BEIRUT, Lebanon — Tammam Salam, scion of a prominent political family, was officially named the new prime minister of Lebanon on Saturday after receiving a string of endorsements from the country’s warring factions over the past few days.

Mr. Salam, 68, was named to the post by the Lebanese president after he garnered 124 of the 128 votes in Parliament. A Sunni whose father, Saeb Salam, served six times as prime minister between 1952 and 1973, Mr. Salam will head a new government that many hope will overcome a dangerous political stalemate that last month led to the resignation of his predecessor.

Lebanon’s government is based on a delicate sectarian system, in place since the end of the civil war in 1990, that is meant to balance power among the country’s multiple sects. The formula requires that the president be a Maronite Christian, the prime minister a Sunni Muslim and the Parliament speaker a Shiite Muslim.

Eager to present himself as an independent, Mr. Salam emphasized at a news conference on Saturday that he would not bow to pressure from any group and intended to establish a national unity government made up of technocrats.