We recommend using the package manager of your System to install Element Desktop. The following commands will install element desktop. You can enter them on the command line.
sudo apt install -y wget apt-transport-https
sudo wget -O /usr/share/keyrings/element-io-archive-keyring.gpg https://packages.element.io/debian/element-io-archive-keyring.gpg
echo "deb [signed-by=/usr/share/keyrings/element-io-archive-keyring.gpg] https://packages.element.io/debian/ default main" | sudo tee /etc/apt/sources.list.d/element-io.list
sudo apt update
sudo apt install element-desktop
sudo pacman -Sy element-desktop
nix-env -iA nixos.element-desktop
If your distribution supports flatpaks you can install element also from flathub
flatpak install flathub im.riot.Riot