Libya doesn't have many mentions in the Bible but either allied itself with Egypt or relied on Egypt for protection as Ezekiel 30:5 indicated.
Libyans and Egyptians attacked Jerusalem during the reign of King Rehoboam (2 Chronicles 12:3).
Cross-referencing King James & NIV passages, Libya appears to also have been called Put (Ezekiel 30:5 and 38:5, and Nahum 3:9).
2 Chronicles 16:8 referred to the 2 Chronicles 12 attack and Isaiah 66:19 corresponded to the Jewish Diaspora when the Assyrians & Babylonians conquered Israel & Judah.
During the Assyrian & Babylonian attacks on Egypt, Libya appeared to have been spared. But, the Persians and Romans later claimed Libyan lands as part of their empires. While the Jeremiah 46:9 prophesy could have foretold the Persians, the Ezekiel 38:5 and Daniel 11:43 prophesies appeared to have foretold the Greek and Roman empires.
In Acts 2:10, there was a reference regarding people from Libya as well as several other Middle Eastern locations during Pentecost.
The Libyan town/city mentioned in the Bible is Cyrene.
Matthew 27:32 - Simon from Cyrene is forced to carry Jesus' cross
prior to the crucifixion
Acts 6:9 - Jews of Cyrene & others mentioned as opposing the Gospel
before Stephen was stoned as a martyr