Guides 11792 Published by

The passage is a step‑by‑step command‑line tutorial for installing TeamViewer on Ubuntu 22.04 LTS without manually hunting down packages, covering downloading the official .deb file, satisfying its library dependencies, and using dpkg together with apt‑fix‑broken to complete the installation. It then explains how to enable and start the TeamViewer daemon as a systemd service, verify the setup, optionally add the TeamViewer repository for automatic updates, and finally launch the graphical client. Throughout each step, the author provides brief rationales—such as why wget is used, which Qt libraries are required, and the need for fixing broken dependencies—to help users understand the purpose of the commands. A short anecdote about a common dependency error reinforces the importance of running apt‑fix‑broken when installing on upgraded systems.



Install TeamViewer on Ubuntu 22.04 LTS – Quick Command‑Line Guide

What you’ll get out of this

In the next few minutes you’ll have TeamViewer up and running on Jammy Jellyfish without chasing down obscure .deb files or guessing which repository to add. I’ll walk through each terminal command, explain why it matters, and point out a couple of gotchas I’ve run into myself.

1. Grab the official .deb package

TeamViewer provides a ready‑made Debian package for Ubuntu. Downloading directly from their site guarantees you get the latest version that matches your architecture.

wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb -O /tmp/teamviewer.deb

Why this step? wget pulls the file straight to /tmp, keeping your home folder tidy. Using the official URL avoids the “old version in the Ubuntu repo” trap that can leave you with missing features.

2. Install required dependencies

The .deb package expects a few libraries that aren’t part of a minimal server install. Installing them first prevents the dreaded “dependency problems - leaving unconfigured” message.

sudo apt update
sudo apt install -y libqt5gui5 libqt5core5a libqt5widgets5

Why? apt update refreshes the package list, and the explicit libs are the ones I’ve seen break on fresh installs after a kernel upgrade. Skipping this step usually ends with a half‑installed TeamViewer that won’t start.

3. Install the .deb file

Now let’s actually put TeamViewer on the system.

sudo dpkg -i /tmp/teamviewer.deb

If dpkg complains about missing dependencies, just run:

sudo apt --fix-broken install -y

Why? dpkg -i is the low‑level installer; it won’t magically resolve anything for you. The follow‑up apt --fix-broken tells the package manager to fetch whatever is still missing.

4. Enable the TeamViewer daemon

TeamViewer runs a background service that handles incoming connections. You need to start and enable it so it survives reboots.

sudo systemctl enable teamviewerd.service
sudo systemctl start teamviewerd.service

Why? Enabling makes sure the daemon starts automatically after you power on, which is what most users expect when they open the GUI later. Starting it now lets you test that everything works without rebooting.

5. Verify the installation

A quick sanity check saves a lot of head‑scratching later.

teamviewer info

You should see output with your TeamViewer ID, version number, and a line saying “Daemon is running.” If the daemon isn’t up, re‑run the systemctl commands above.

6. (Optional) Add the repository for automatic updates

If you don’t want to manually download new .deb files every few months, add TeamViewer’s apt source. I usually skip this on a workstation that I already patch regularly, but it can be handy.

sudo wget -O /etc/apt/trusted.gpg.d/teamviewer.asc https://download.teamviewer.com/download/linux/signature/TeamViewer2017.asc
echo "deb [arch=amd64] http://linux.teamviewer.com/deb stable main" | sudo tee /etc/apt/sources.list.d/teamviewer.list
sudo apt update

Now sudo apt upgrade will pull in TeamViewer updates along with the rest of your system.

7. Launch the GUI

You can start the graphical client from the menu or via terminal:

teamviewer &

The first launch will ask you to accept the license agreement and optionally set a personal password for unattended access. Follow the prompts—nothing fancy.

A quick note from experience: I once tried installing TeamViewer on an Ubuntu 22.04 VM that had been upgraded from 20.04 without cleaning out old libraries. The dpkg -i step threw a cryptic “cannot install libqt5gui5” error, and the fix was simply running sudo apt --fix-broken install. Saves you a lot of Googling.

That’s it. TeamViewer should now be ready to connect to any other machine, whether you’re helping a friend troubleshoot their printer or pulling remote files from your office PC.