MS-Teams Install (Linux)

Preparation

Install Required Packages

sudo apt install software-properties-common

sudo apt install apt-transport-https 

sudo apt install wget 

sudo apt install ca-certificates 

sudo apt install gnupg2

Import GPG Key

wget -O- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor | sudo tee /usr/share/keyrings/ms-teams.gpg

Import Repository

echo 'deb [signed-by=/usr/share/keyrings/ms-teams.gpg] https://packages.microsoft.com/repos/ms-teams stable main' | sudo tee /etc/apt/sources.list.d/ms-teams.list

Install

sudo apt install teams

Deinstall

sudo apt remove teams

If you have no intention of re-installing team the following comands also remove the other configuration changes made as part of the install...

sudo apt autoremove teams* -y

sudo rm /etc/apt/sources.list.d/ms-teams.list

sudo rm /usr/share/keyrings/ms-teams.gpg

Troubleshooting

E: Conflicting values set for option Signed-By regarding source https://packages.microsoft.com/repos/ms-teams/ stable: /usr/share/keyrings/ms-teams.gpg != E: The list of sources could not be read.

cat /etc/apt/sources.list.d/ms-teams.list

cat /etc/apt/sources.list.d/teams.list

Usually the above errors are fixed by commenting out the following entry in teams.list... i.e.

# deb [arch=amd64] https://packages.microsoft.com/repos/ms-teams stable main

thus leaving the following entry in ms-teams.list...

deb [signed-by=/usr/share/keyrings/ms-teams.gpg] https://packages.microsoft.com/repos/ms-teams stable main

Bibliography