Why were the majority of African countries controlled by military dictatorships during the 1970's and 1980's?

Military dictatorships were accepted as a means to maintain order in face of increasingly frequent and severe violence.