UN Secretary General Ban Ki-moon, on a surprise visit to the Libyan capital, called Saturday for all sides in the conflict-plagued country to stop fighting.