Ubuntu repository installation manual doesn't work



since I don't know how to send an improvement feedback to TeamViewer team, I'm putting it here:

This page does contain information that doesn't work on Ubuntu 22.04 (anymore?):

This line:

wget -O - https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | apt-key add -

should be this (see gpg command in the middle):

curl -L https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | gpg --dearmor | sudo apt-key add -

Source: https://askubuntu.com/questions/1286665/cant-get-gpg-key-for-teamviewer-repo/1321660#1321660




  • dpanter
    dpanter Posts: 2 ✭✭

    apt-key has now been deprecated. Keys should be placed in /etc/apt/trusted.gpg.d/ instead.

    I added the key in Debian sid this way.

    curl -fsSL https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/teamviewer.gpg > /dev/null

  • OliverGrs
    OliverGrs Posts: 1 Staff member 🤠


    thanks for the hints. That's right apt-key is deprecated and we are restructuring things a bit:

    • Our deb package is creating a keyring during installation/update that contains the before mentioned key and should cover further changes when updating the deb package.
    • For compatibility reasons we install the keyring to /usr/share/keyrings/teamviewer-keyring.gpg and reference it in our installed sources.list
    • In the page you mentioned we have it now noted where our keyring will be located after installation.

    With this information a simple manual roll-out could be done by copying the sources.list and the mentioned keyring file. On newer systems one could of course put the keyring into /etc/apt/trusted.gpg.d but then keyring updates may not come automatically when updating the deb package.