How to Install AnyDesk on Ubuntu 26.04, 24.04 and 22.04

Last updated Thursday, April 30, 2026 8:00 am Joshua James 6 min read

Remote support works best when the access tool stays current, starts with the desktop session, and can be updated through normal system maintenance. To install AnyDesk on Ubuntu 26.04 (Resolute), 24.04 (Noble), or 22.04 (Jammy), use the official AnyDesk APT repository for vendor-hosted DEB updates or Flathub when you specifically want Flatpak packaging.

The APT repository is the default path below because it keeps AnyDesk visible to apt and avoids repeat manual downloads. Flatpak remains useful when your desktop already standardizes on Flathub, but the package is community-maintained and carries broad remote-desktop permissions.

Install AnyDesk on Ubuntu

Update Ubuntu and Install Repository Tools

Refresh Ubuntu’s package lists and apply pending updates before adding the AnyDesk repository. This reduces the chance of dependency conflicts during the install.

sudo apt update
sudo apt upgrade -y

If your account cannot use sudo, configure administrator access before continuing. The Ubuntu sudoers guide explains how to grant that permission safely.

Install the tools needed to download the AnyDesk signing key, store it in a binary keyring, and let APT verify HTTPS repository metadata. The command uses curl, which is covered in more detail in the Linux curl command guide.

sudo apt install ca-certificates curl gpg -y

Add the AnyDesk APT Repository

Download the AnyDesk repository key and convert it to a binary keyring under /usr/share/keyrings. The --yes flag lets the command refresh the file cleanly if you rerun it later.

curl -fsSL https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo gpg --dearmor --yes -o /usr/share/keyrings/anydesk.gpg

Create the AnyDesk APT source in DEB822 format. This uses the same repository endpoint documented by AnyDesk, but stores the source in Ubuntu’s modern structured format.

printf '%s\n' \
'Types: deb' \
'URIs: https://deb.anydesk.com' \
'Suites: all' \
'Components: main' \
'Signed-By: /usr/share/keyrings/anydesk.gpg' | sudo tee /etc/apt/sources.list.d/anydesk.sources > /dev/null

Confirm the source file before refreshing APT. The output should match the repository URL, suite, component, and keyring path shown here.

cat /etc/apt/sources.list.d/anydesk.sources
Types: deb
URIs: https://deb.anydesk.com
Suites: all
Components: main
Signed-By: /usr/share/keyrings/anydesk.gpg

AnyDesk currently notes that systems using a key installed before February 2, 2025, should refresh the repository key. Running the key command above updates the article-owned keyring without changing unrelated APT sources.

Install the AnyDesk Package

Update APT so Ubuntu reads the new AnyDesk repository metadata.

sudo apt update

Check the available AnyDesk package before installing it. The relevant output should show https://deb.anydesk.com as the package source; the exact version can change as AnyDesk publishes updates.

apt-cache policy anydesk
anydesk:
  Installed: (none)
  Candidate: 8.0.2
  Version table:
     8.0.2 500
        500 https://deb.anydesk.com all/main amd64 Packages

Install AnyDesk from the official repository.

sudo apt install anydesk -y

Verify that the package is installed and that the AnyDesk service is enabled and running. Package and service checks are more reliable in terminal-only sessions than using anydesk --version, which may not print output over SSH.

dpkg -l anydesk | grep '^ii'
systemctl is-enabled anydesk
systemctl is-active anydesk
ii  anydesk  8.0.2  amd64  The fastest remote desktop software on the market.
enabled
active

The anydesk package installs the desktop launcher, the /usr/bin/anydesk command, and the anydesk.service background service used for incoming connections.

Compare AnyDesk Ubuntu Install Methods

MethodSourceUpdatesBest fit
Official APT repositoryAnyDesk-hosted DEB repositoryapt update and apt upgradeRecommended for most Ubuntu desktops
Flatpak from FlathubCommunity Flathub package, unverifiedflatpak updateSandboxed packaging when you accept the Flathub permissions
Direct Linux downloadAnyDesk Linux download pageManual package or archive replacementOne-off, offline, or controlled deployment workflows

AnyDesk also publishes direct Linux downloads, including DEB and tarball builds, but those are better reserved for offline installs or controlled deployment workflows. For regular Ubuntu desktops, the repository method gives clearer update and removal behavior.

AnyDesk’s current Linux instructions do not use a Launchpad PPA, and Snapcraft currently does not list an AnyDesk snap package. Searches for anydesk ppa or anydesk snap should use the vendor APT repository or the Flathub method instead.

Install AnyDesk from Flathub

Enable Flatpak and Flathub

Install Flatpak from Ubuntu’s repositories if it is not already available.

sudo apt install flatpak -y

For a broader Flatpak setup, desktop integration notes, and removal details, see the Ubuntu Flatpak guide.

Add the Flathub remote. The command keeps the remote at the default system scope, which matches the system install command used later.

sudo flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo

Confirm that Flathub is configured.

flatpak remotes
Name     Options
flathub  system

Check the Flathub AnyDesk Package

Flathub currently lists com.anydesk.Anydesk as an unverified community package that is not officially supported by AnyDesk Software GmbH. The app page also shows a potentially unsafe warning, which is expected for a remote desktop tool that needs display, network, and home-folder access. Check the remote metadata before installing so you know which branch, runtime, and architecture the Flatpak package uses.

flatpak remote-info flathub com.anydesk.Anydesk
AnyDesk - Connect to a computer remotely

        ID: com.anydesk.Anydesk
       Ref: app/com.anydesk.Anydesk/x86_64/stable
    Branch: stable
   Runtime: org.freedesktop.Platform/x86_64/25.08

Install AnyDesk with Flatpak

Install the AnyDesk Flatpak package from Flathub.

sudo flatpak install flathub com.anydesk.Anydesk -y

Verify the installed Flatpak app. The version number may change over time, but the ID, origin, installation scope, and runtime should match the Flathub package.

flatpak info com.anydesk.Anydesk
AnyDesk - Connect to a computer remotely

          ID: com.anydesk.Anydesk
     Version: 8.0.2
      Origin: flathub
Installation: system
     Runtime: org.freedesktop.Platform/x86_64/25.08

Launch and First-Use Checks

Launch from the Terminal

For the APT package, launch AnyDesk from a terminal with the package command.

anydesk

For the Flatpak package, launch the app through Flatpak.

flatpak run com.anydesk.Anydesk

Launch from the Applications Menu

Open the Ubuntu applications menu, search for AnyDesk, and select the launcher. After the first start, the main window shows your AnyDesk address and the field used to connect to a remote desk.

Update AnyDesk

Update the APT repository installation with Ubuntu’s normal package commands.

sudo apt update
sudo apt upgrade

Update the Flatpak installation and any required runtimes with Flatpak.

sudo flatpak update

The APT method updates from AnyDesk’s official repository. The Flatpak method updates from Flathub, but the package remains community-maintained rather than an official AnyDesk support channel.

Remove AnyDesk from Ubuntu

Remove the APT Repository Installation

Purge the AnyDesk package first. This stops the service and removes package-managed files.

sudo apt purge anydesk -y

Remove the AnyDesk source and key files. The extra filenames cover older one-line repository files and extrepo-created sources so duplicate AnyDesk entries do not remain in APT.

sudo rm -f /etc/apt/sources.list.d/anydesk.sources
sudo rm -f /etc/apt/sources.list.d/anydesk-stable.list
sudo rm -f /etc/apt/sources.list.d/extrepo_anydesk.sources
sudo rm -f /usr/share/keyrings/anydesk.gpg
sudo rm -f /etc/apt/keyrings/keys.anydesk.com.asc
sudo rm -f /var/lib/extrepo/keys/anydesk.asc

Refresh APT and confirm that the installed package is gone. The grep filter should print no installed AnyDesk row after removal; the Linux grep command guide explains this pattern if you want more context.

sudo apt update
dpkg -l anydesk | grep '^ii'
apt-cache policy anydesk

If apt-cache policy anydesk still shows https://deb.anydesk.com, another AnyDesk source file remains under /etc/apt/sources.list.d/. Remove the duplicate source before running sudo apt update again.

Preview unused dependencies before removing them. Continue only when the dry run lists packages that are safe to remove from your system.

sudo apt autoremove --dry-run

Run the cleanup interactively after reviewing the preview.

sudo apt autoremove

Optional user data cleanup removes AnyDesk settings for the current account. Skip this command if you plan to reinstall AnyDesk and want to keep local preferences.

rm -rf ~/.anydesk

Remove the Flatpak Installation

Remove the AnyDesk Flatpak app from the same system scope used during installation.

sudo flatpak uninstall com.anydesk.Anydesk -y

Flatpak may offer to remove unused runtimes after the app is gone. Review the list before accepting the cleanup.

sudo flatpak uninstall --unused

Confirm that the Flatpak app is no longer installed.

flatpak list --app | grep com.anydesk.Anydesk

Optional Flatpak user data cleanup removes settings stored by the Flatpak package for the current account.

rm -rf ~/.var/app/com.anydesk.Anydesk

Troubleshoot AnyDesk on Ubuntu

Fix Wayland Session Limits

AnyDesk can connect out from modern Ubuntu desktops, but incoming screen capture and control may depend on your session type. AnyDesk documents Linux incoming sessions for X11, so switch to an Xorg session from the login screen when unattended access or incoming control does not work under Wayland.

On Ubuntu systems that offer multiple sessions, sign out, select the gear icon on the login screen, choose Ubuntu on Xorg, and sign back in. If that option is not available, check your desktop session packages and AnyDesk’s current Linux notes before changing display-server settings.

Repair GPG or Duplicate Source Errors

If sudo apt update reports a signature error, refresh the AnyDesk keyring used by the DEB822 source.

curl -fsSL https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo gpg --dearmor --yes -o /usr/share/keyrings/anydesk.gpg
sudo apt update

If APT reports duplicate AnyDesk targets or conflicting signed-by values, list the AnyDesk source files and keep only one current source.

ls /etc/apt/sources.list.d/*anydesk*

When you are using the DEB822 source from this guide, remove older one-line or extrepo source files, then refresh APT again.

sudo rm -f /etc/apt/sources.list.d/anydesk-stable.list
sudo rm -f /etc/apt/sources.list.d/extrepo_anydesk.sources
sudo apt update

Check Firewall Access

AnyDesk normally makes outbound connections over standard web ports. If direct incoming sessions fail through a restrictive firewall, AnyDesk documents TCP port 6568 for direct connections. LAN discovery uses UDP ports 50001 through 50003, so add that rule only when you use discovery on a trusted local network.

sudo ufw allow 6568/tcp comment "AnyDesk direct TCP"

Add the discovery rule only when you want AnyDesk to find peers on a trusted local network.

sudo ufw allow 50001:50003/udp comment "AnyDesk discovery"

For more firewall rule management, review the Ubuntu UFW guide.

Check the AnyDesk Service

If the desktop app opens but incoming connections fail, inspect the service state.

systemctl status anydesk

Start and enable the service again if it is disabled or inactive.

sudo systemctl start anydesk
sudo systemctl enable anydesk

Conclusion

AnyDesk is ready on Ubuntu after installing from the official APT repository or the Flathub package. Keep the repository method for vendor-hosted updates, use Flatpak when that packaging model fits your desktop, and configure unattended access or firewall rules only for the connection pattern you actually need.

Follow LinuxCapable

Want more LinuxCapable guides in Google?

Add LinuxCapable as a preferred source so Google can show more of our fresh Linux tutorials in Top Stories and From your sources when relevant.

Add LinuxCapable as a preferred source on Google
Search LinuxCapable

Need another guide?

Search LinuxCapable for package installs, commands, troubleshooting, and follow-up guides related to what you just read.

Found this guide useful?

Support LinuxCapable to keep tutorials free and up to date.

Buy me a coffeeBuy me a coffee
Before commenting, please review our Comments Policy.
Formatting tips for your comment

You can use basic HTML to format your comment. Useful tags currently allowed in published comments:

You type Result
<code>command</code> command
<strong>bold</strong> bold
<em>italic</em> italic
<blockquote>quote</blockquote> quote block

Got a Question or Feedback?

We read and reply to every comment - let us know how we can help or improve this guide.

Let us know you are human: