Not to sound racist but what is wrong will all these black majority countries and their total failures
You said it in your question.
Africa has no history of democracy or republicanism. It was a stone age land of tribes and tribal kingdoms. Europeans didnt really care much about educating the general population of such things, and in the end a few lucky native men, whom studies overseas, gained power after independence by default because they were the only ones that weren’t completely clueless.
The power became intoxicating and soon almost every nation on the continent became a one-party strongman dictatorship with many having Marxist and Communist philosophies. After that it just became a slug match between armed thugs launching coups and counter-coups or civil wars to replace one power thug with another in order to loot the country, with sometime a free election mistakenly breaking out. The winner usually killed or overthrown.