We have discussed in the past connections between the kinot on tisha ba-av/YK and the sin of selling yosef. I recently saw the Abarbanel that connects the bringing of the two "seerim" (goats) on Yom Kippur as a kappara for the sin of selling yosef -- Eli Turkel