This is from https://www.nationsonline.org/oneworld/african_languages.htm.
Country - - - Official and national Languages - - - Other spoken Languages
ARABIC
Algeria - - - Arabic, Berber languages, four dialects (by constitutional amendment)
Comoros - - - Arabic, French - - - Shikomoro (a blend of Swahili and Arabic).
Egypt - - - Arabic - - - English and French widely understood by educated classes.
Libya - - - Arabic - - - Italian, English, all are widely understood in the major cities.
Mauritania - - - Arabic - - - Hassaniya Arabic, Pulaar, Soninke, Wolof, French
Morocco - - - Arabic - - - Berber dialects, French often the language of business, government, and diplomacy.
Sudan/South Sudan - - - Arabic - - - Nubian, Ta Bedawie, diverse dialects of Nilotic, Nilo-Hamitic, Sudanic languages, English; note: program of "Arabization" in process
Tunisia - - - Arabic (and the languages of commerce) - - - French (commerce)
Western Sahara - - - - - - Hassaniya Arabic, Moroccan Arabic
Botswana - - - Setswana (national language with minor differences in dialects), English is the official business language and it is widely spoken in urban areas.
Eritrea - - - Tigrinya (Tigrigna), Arabic, English - - - Tigré (second major language), Afar, Bedawi, Kunama, other Cushitic languages.
Ethiopia - - - Amharic - - - Tigrinya, Oromo, Gurage, Somali, Arabic, 80 other local languages, English (major foreign language taught in schools)
Somalia - - - Somali - - - Arabic, Italian, English
(See also below: Tanzania, Uganda, Mali, Chad & Djibouti)
ENGLISH
(See also above: Egypt, Libya, Botswana, Eritrea, Ethiopia, Somalia; & below see: Equatorial Guinea)
Lesotho - - - Sesotho (southern Sotho), English - - - Zulu, Xhosa.
South Africa - - - 11 official languages, including Afrikaans, English, isiNdebele, Pedi, Sesotho (Sotho), siSwati (Swazi), Xitsonga (Tsonga), Tswana, Tshivenda (Venda), isiXhosa, isiZulu
Tanzania, United Republic of - - - Kiswahili (Swahili), Kiunguju (name for Swahili in Zanzibar), English (primary language of commerce, administration, and higher education) - - - Arabic (widely spoken in Zanzibar), Gogo, Haya, Makonde, Nyakyusa, Nyamwezi, Sukuma, Tumbuka, many other local languages.
Gambia, The - - - English - - - Mandinka, Wolof, Fula, other indigenous vernaculars.
Ghana - - - English - - - African languages (including Akan, Adangme, Moshi-Dagomba, Ewe, and Ga)
Kenya - - - English, Kiswahili - - - numerous indigenous languages.
Malawi - - - English, Nyanja (Chichewa, Chewa) - - - Lomwe, Tumbuka, Yao, other languages important regionally.
Nigeria - - - English - - - Hausa, Yoruba, Igbo (Ibo), Fulani, Ijaw, Ibibio and about 250 other indigenous languages spoken by the different ethnic groups.
Saint Helena - - - English
Zambia - - - English - - - major vernaculars: Bemba, Kaonda, Lozi, Lunda, Luvale, Nyanja, Tonga, and about 70 other indigenous languages.
Zimbabwe - - - English - - - Chishona (Shona), Sindebele (Ndebele), numerous but minor tribal dialects like: Sotho and Nambya, Shangani, Venda, Chewa, Nyanja, and Tonga.
Swaziland - - - English (government business conducted in English), siSwati - - -
Sierra Leone - - - English (regular use limited to literate minority) - - - Mende (principal vernacular in the south), Temne (principal vernacular in the north), Krio (English-based Creole a first language for 10% of the population but understood by 95%)
Uganda - - - English (used in courts of law and by most newspapers and some radio broadcasts) - - - Ganda (Luganda; most widely used of the Niger-Congo languages, preferred for native language publications), other Niger-Congo languages, Nilo-Saharan languages, Acoli, Swahili, Arabic
Liberia - - - English 20% - - - some 20 ethnic group languages, of which a few can be written and are used in correspondence.
Namibia - - - English 7% - - - Afrikaans common language of most of the population and about 60% of the white population, German 32%, indigenous languages: Oshivambo, Herero, Nama.
Cameroon - - - English, French - - - 24 major African language groups.
Mauritius - - - English, French - - - Creole, Hindi, Urdu, Hakka, Bhojpuri
Seychelles - - - English, French - - - Creole
Rwanda - - - Rwanda (Kinyarwanda, Bantu vernacular) French, English - - - Kiswahili (Swahili) used in commercial centers.
FRENCH
(See also above: Comoros, Egypt, Mauritania, Morocco, Cameroon, Mauritius, Seychelles & Rwanda; & below see Equatorial Guinea.)
Berber languages, four dialects (by constitutional amendment) - - - French - - -
Benin - - - French - - - Fon and Yoruba (most common vernaculars in south), tribal languages (at least six major ones in north).
Burkina Faso - - - French - - - Native African languages belonging to Sudanic family spoken by 90% of the population.
Democratic Republic of the Congo - - - French - - - Lingala (a lingua franca trade language), Kingwana (a dialect of Kiswahili or Swahili), Kikongo, Tshiluba.
Congo, Republic of the - - - French - - - Lingala and Monokutuba (lingua franca trade languages), many local languages and dialects (of which Kikongo is the most widespread).
Côte d'Ivoire - - - French - - - 60 native dialects with Dioula the most widely spoken.
Gabon - - - French - - - Bantu languages like Fang, Myene, Nzebi, Bapounou/Eschira, Bandjabi.
Mali - - - French - - - Bambara (Bamanakan), Arabic and numerous dialects of Dogoso, Fulfulde, Koyracini, Senoufou, and Mandinka/Malinké (Maninkakan), Tamasheq are also widely spoken.
Niger - - - French - - - Hausa, Djerma
Réunion - - - French - - - Creole widely used
Senegal - - - French - - - Wolof, Pulaar, Jola, Mandinka
Guinea - - - French (spoken by 15-20%) - - - Eight national languages, Soussou (Susu, in coastal Guinea), Peulh (Fulani, in Northrn Guinea), Maninka (Upper Guinea), Kissi (Kissidougou Region), Toma and Guerze (Kpelle) in rain forest Guinea; plus various ethnic groups with their own language.
Togo - - - French (the language of commerce) - - - Ewe and Mina (the two major African languages in the south), Kabye (Kabiye) and Dagomba (the two major African languages in the north)
Chad - - - French, Arabic - - - Sara (in south), more than 120 different languages and dialects.
Djibouti - - - French, Arabic - - - Somali, Afar
Madagascar - - - French, Malagasy - - -
Central African Republic - - - French, Sangho (lingua franca and national language) - - - Banda, Gbaya and other tribal languages.
Burundi - - - Kirundi, French - - - Swahili (along Lake Tanganyika and in the Bujumbura area).
PORTUGUESE
Angola - - - Portuguese - - - Narrow Bantu like Umbundu and other African languages.
Cape Verde - - - Portuguese - - - Kabuverdianu (Crioulo) (a blend of Portuguese and West African words).
Guinea-Bissau - - - Portuguese - - - Crioulo (a mixture of Portuguese and African), other African languages.
São Tomé and Príncipe - - - Portuguese - - -
Mozambique - - - Portuguese (spoken by 27% of population as a second language) - - - Makhuwa, Tsonga, Lomwe, Sena, numerous other indigenous languages.
SPANISH
Equatorial Guinea - - - Spanish, French - - - pidgin English, Fang, Bubi, Ibo.