Spain's acting premier on Wednesday lost a parliamentary confidence vote for a second term after he failed to win enough support from the opposition.