The straight-line (great-circle) distance between Tripoli, Libya and Johannesburg, South Africa is approximately:
Flight time on a direct route (rare; usually connections via Cairo, Addis Ababa, or Doha) would be ~9–10 hours. Overland travel is impractical due to the Sahara, conflict zones, and lack of continuous highways.