How to Install QElectroTech on Ubuntu 22.04 or 20.04
Ever tried to sketch a schematic in QElectroTech on your fresh Ubuntu install and found yourself staring at a “missing dependency” error? That’s exactly what I ran into after upgrading from 20.10 to 22.04 – the Qt libraries changed, and my old installation broke. Below is a quick, no‑fluff guide that gets you up and running on either 22.04 or 20.04.
Method 1: Install From Ubuntu’s Official Repositories
Ubuntu ships QElectroTech in its universe repository, but the package can lag behind the latest release. If you don’t mind a slightly older version (good enough for most diagrams) this is the quickest route.
sudo apt update sudo apt install qelectrotech
Why does this matter?
- apt update pulls the freshest list of packages, ensuring you get the newest repo‑managed build.
- The package pulls in all required Qt libraries automatically, so you don’t have to hunt for libqt5core5a or similar.
If the installation complains about missing dependencies, it usually means your system’s universe repository is disabled. Enable it with:
sudo add-apt-repository universe
Then rerun the install command.
Method 2: Grab a Flatpak From Flathub
Flatpak bundles everything in one container, so you avoid dependency hell entirely. First, make sure Flatpak is on your machine:
sudo apt install flatpak
Add the Flathub remote (the source of most community‑maintained apps) and install QElectroTech:
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo flatpak install flathub org.qelectrotech.QElectroTech
Running it is a one‑liner, or you can create a launcher from the application menu. The Flatpak version typically runs newer than the Ubuntu repo, so if you need the latest features this is your best bet.
Method 3: Use Snap (If You Prefer Snaps)
Snapcraft offers an official QElectroTech snap that’s auto‑updated. It’s a bit heavier due to confinement but works out of the box:
sudo snap install qelectrotech
A quick sanity check after installation: run qelectrotech --version. If you see something like “QElectroTech 4.3.1” you’re good to go.
Method 4: Manual .deb from the Project Website
When the official Ubuntu repo is too old or a particular bug is fixed only in the latest release, grab the .deb directly:
1. Visit https://qelectrotech.org/download/ and copy the link for the Debian package that matches your architecture (likely amd64).
2. Download it with wget:
wget https://qelectrotech.org/files/qelectrotech-4.3.1_amd64.deb
3. Install, letting apt resolve dependencies:
sudo dpkg -i qelectrotech-4.3.1_amd64.deb || sudo apt-get install -f
The apt-get install -f step is a lifesaver if the .deb pulls in a dependency that isn’t already on your system.
Quick Fixes for Common Pitfalls
- Missing Qt libraries after an update: If you see errors about libQt5Widgets.so.5, run sudo apt install libqt5widgets5.
- Broken icon theme: The latest QElectroTech pulls icons from the adwaita-icon-theme package; install it if your menu looks weird: sudo apt install adwaita-icon-theme.
- Startup crash on Wayland: Ubuntu 22.04 defaults to Wayland, but some Qt apps still misbehave. Log out and switch to an Xorg session by selecting the gear icon at the login screen.
Those are all the hoops you need to jump through. Pick your method based on whether you prefer repo‑managed simplicity, the isolation of Flatpak, or the auto‑updates of Snap.