Qaddafi was not a serious pan-Africanist, and the rest of Africa knew that. He was sometimes an Arab nationalist, sometimes an Islamic nationalist, sometimes an African nationalist, sometimes a socialist, and his only consistent ideological position was military dictatorship. He provided a venue for the founding of the AU, but both it and its predecessor organization are/were based in Ethiopia. The US intervention in Libya didn’t go very well, but it’s silly to pretend that Qaddafi was a hero by any measure.