Libya is to hold legislative elections on June 25, the unrest-strewn country's interim parliament announced on Thursday.