Libya is a country in Northern Africa.
You need an invitation for a visa. Unfortunately foreigners alone are often regarded as spies. So hitchhiking will get the person who gave you the invitation in trouble. There are checkpoints when entering and leaving most cities.