Install Draw.io on Ubuntu 22.04 LTS – Fast, Simple, No Fuss
If you’re hunting for a quick way to get Draw.io up and running on Ubuntu 22.04 LTS, you’ve landed in the right place. The steps below will have you clicking “File => New” in no time, whether you like snaps, flatpaks, or plain .deb packages.
Snap Installation of Draw.io on Ubuntu 22.04
Snap is the easiest route: it bundles everything you need and keeps the app auto‑updated.
sudo snap install drawio --classic
Why this matters: The `--classic` flag gives Draw.io full access to your system, which the desktop version needs to read/write files anywhere. Snap’s confinement guarantees no rogue code sneaks in, and you’re always on the latest stable release without touching apt.
I once had a broken copy of Draw.io after a kernel upgrade that kept launching but never opening any diagrams. Re‑installing with `sudo snap install drawio --classic` fixed it instantly—no more “cannot find module” errors.
Flatpak Alternative
If you prefer flatpaks, the process is almost identical:
flatpak install flathub org.diagramsnet.DiagramsNet
Then launch from your app drawer. Flatpak pulls the same binaries as Snap but stores them in a different location (`/var/lib/flatpak`). Good if you’re already using flatpaks for other apps.
Downloading the .deb Package
Sometimes you want an offline installer or the absolute latest pre‑release version. Grab it from GitHub’s releases:
wget https://github.com/jgraph/drawio-desktop/releases/download/v23.7.0/Draw.io-23.7.0-linux.deb sudo dpkg -i Draw.io-23.7.0-linux.deb sudo apt-get install -f # fixes missing dependencies, if any
Why this matters: Using a .deb means you can hand‑carry the installer on a USB stick or deploy it across multiple machines with `dpkg`. It also gives you full control over the exact version—useful when debugging compatibility issues.
I once shipped a .deb to a friend who was stuck on an older Ubuntu version that didn’t support snaps. The install was smooth, and we avoided any repository headaches.
Post‑Installation Tips
- Open Draw.io from the Activities menu; it should remember your last workspace.
- If you want to set a default editor for certain file types, right‑click the file => Properties => Open With => Set as default.
- Keep an eye on updates: Snap and Flatpak handle them automatically. For .deb installs, check GitHub releases or run `sudo apt update && sudo apt upgrade` if you added the official Diagrams.Net repo.
That’s all there is to it—no extra libraries, no fiddly compilation steps.