There was never a popular upheaval in Lybia, the Islamists were offered to dismember the country by a few European powers (mainly France and the UK) with Arab allies for good optics (Qatar). https://iai.tv/articles/why-they-killed-gaddafi-auid-1757
https://wikileaks.org/clinton-emails/emailid/12659
https://publications.parliament.uk/pa/cm201617/cmselect/cmfa... (p10#20)